Parašė Creatium· 2008 Geg. 7 22:05:04
#5
Va, radau pas save l2 servui skripta. Siek tiek persidaryk ir turetu veikt:
?><?
ls_status('tavo servo ip');
function ls_status($ip)
{
$ports = array("Login:" => "tavo servo portas" );
foreach($ports as $server => $port)
{
if($fp = @fsockopen($ip, $port, $errno, $errstr, 1) == false)
{
echo "" . $server . "<font color='#ff0000'><b> Offline</font></b><br>";
}
else
{
echo "" . $server . "<font color='#006600'><b> Online</font></b><br>";
}
}
}
?><?
Redagavo Creatium· 2008 Geg. 7 22:05:19