- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
unction Checkbutton ($url) {
global $code;
$url_0 = substr($url, 7);
$url_1 = explode(".", $url_0);
$v = count($url_1) - 2;
$b = count($url_1) - 1;
$url_2 = explode("/", $url_1[$v]);
$url_3 = explode("/", $url_1[$b]);
$url_con[0] .= "$url_1[0].";
for ($i=1; $i < count($url_1) - 2; $i++) {
$url_con[0] .= "$url_1[$i].";
}
$url_con[0] .= $url_2[0];
$url_con[1] .= "$url_1[0].";
for ($i=1; $i < count($url_1) - 1; $i++) {
$url_con[1] .= "$url_1[$i].";
}
$url_con[1] .= $url_3[0];
if (@fsockopen($url_con[0], 80)) {
$url_connect = $url_con[0];
@fclose($url_con[0]);
} else if (@fsockopen($url_con[1], 80)) {
$url_connect = $url_con[1];
@fclose($url_con[1]);
}
if ($fsock = @fsockopen($url_connect, 80, $errno, $errstr)) {
fputs($fsock, "GET $url HTTP/1.0\r\n\r\n");
while (!feof($fsock)) {
$result .= fgets($fsock,100);
}
fputs($fsock, "Connection: close\r\n\r\n");
fclose($fsock);
if (!preg_match("/$code/i", "$result")) {
$error = "<center><font color=red>На странице нашего баннера нет</font></center>";
return $error;
}
} else {
$error = "<center><font color=red>Невозможно подключиться к серверу</font></center>";
return $error;
}
eth0 15.04.2011 10:54 # +8
bugmenot 15.04.2011 10:56 # +3
Vasiliy 15.04.2011 11:31 # −1
bugmenot 15.04.2011 11:42 # 0
TarasB 15.04.2011 14:39 # −2
Vasiliy 15.04.2011 15:23 # −1
TarasB 16.04.2011 13:49 # −2
Vasiliy 17.04.2011 19:03 # 0
TarasB 18.04.2011 08:57 # −3
bugmenot 18.04.2011 09:05 # +4
ling 15.04.2011 11:53 # +1
Vindicar 15.04.2011 12:12 # 0
bugmenot 15.04.2011 12:13 # 0
Lure Of Chaos 15.04.2011 17:11 # 0
fuckyounoob 15.04.2011 14:07 # +1
Lure Of Chaos 15.04.2011 17:11 # 0
fuckyounoob 15.04.2011 17:20 # 0
istem 16.04.2011 04:08 # 0
Но самые страшные - это те, у кого говно в крови...
Surendil 17.04.2011 08:55 # 0
)
guest 17.04.2011 11:34 # +1
guest 17.04.2011 11:37 # +1
guest 17.04.2011 15:39 # 0