Parašė BloodKiller· 2007 Kov. 17 18:03:18
#1
<?php
$site = "";
$path = "/";
function get_version ($site,$path) {
$sock = fsockopen($site,80);
$query = "POST http://$site{$path}maintenance.php HTTP/1.1\r\n";
$query .= "Host: $site\r\n";
$query .= "Connection: Close\r\n\r\n";
write($sock,$query);
while (feof($sock)) {
$html = fgets($sock);
if (eregi("Powered by",$html)) {
$ver = implode(" ",$html);
return "PHP-Fusion versija - ".$ver[4];
}
}
}
$c = get__version ($site,$path);
echo $c;
if (!$c) echo "Versija nerasta";
?>
Zinoma pas ozz toks bajeris neiseis, nes mes esame kiek labiau pasikauste nei iprasti fusion useriai. :D
P.S.Kaip visada kodas su klaidomis. :D