-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsender.php
45 lines (39 loc) · 1022 Bytes
/
sender.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php $site1 = $_GET["site"]; ?>
<?php $site = $site1; ?>
<?php
$id_file = fopen("whitelist.txt", "r");
$fichier = fgets($id_file);
$id_file2 = fopen("listwithoutspace.txt", "r");
$fichier2 = fgets($id_file2);
if (preg_match('#' . preg_quote($site) . '#', $fichier)) {
$message = "This Site Is Whitelisted";
} elseif (preg_match('#' . preg_quote($site) . '#', $fichier2)) {
echo "This Site Is Already Blocked";
} else {
$file = fopen("list.txt", "a");
fwrite($file, "||");
fwrite($file, "$site");
fwrite($file, "^" . PHP_EOL);
fclose($file);
$file2 = fopen("listwithoutspace.txt", "a");
fwrite($file2, "#");
fwrite($file2, "$site");
fwrite($file2, "#");
fclose($file2);
$message = "Thank You For Your Participation";
}
?>
<center>
<br><br>
<! --thx github for the backup -->
<link rel="stylesheet" type="text/css" href="style.css">
<?php
$file = 'withlist.txt';
$searchfor = '$site1';
?>
<h1>
<?php
echo "$message";
?>
</h1>
</center>