<?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";
?>
<?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";
?>
<?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";
fwrite($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";
?>
<?php
$site = "mp3dainos.net";
$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";
fwrite($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";
?>