<meta http-equiv="refresh" content="60"/>
<?php
$server_ip = "XXXXX.YYYYYY.com";
$portbase = "ZZZZ";
if (!is_numeric($portbase)) {
print "Invalid port";
exit;
}
$fp = @fsockopen($server_ip,$portbase,$errno,$errstr,1);
if (!$fp) {
print "<p>Connection refused, the server appears to be offline.</p>";
exit;
} else {
fputs($fp, "GET /played.html HTTP/1.0\\r\\nUser-Agent: Mozilla\\r\\n\\r\\n");
while (!feof($fp)) {
$info = fgets($fp);
}
$content = get_string_between($info, "Admin Login</a></font></td></tr></table></td></tr></table>
", "
<table");
print $content;
fclose($fp);
}
function get_string_between($string, $start, $end) {
$string = " " . $string;
$ini = strpos($string, $start);
if ($ini == 0)
return "";
$ini += strlen($start);
$len = strpos($string, $end, $ini) - $ini;
return substr($string, $ini, $len);
}
?>
001design.it ® è un marchio registrato.
© 2004-2020 Molfese Paolo - P.Iva: 03430820617 - All rights reserved | Tutti i diritti sono riservati.