Parašė MAnjack· 2008 Geg. 11 15:05:13
#22
openside("Serverio statas");
$servo_pavadinimas='LFS racing'; //pavadinimas
$servo_ip='84.32.101.188'; //Ip, arba hostas
$servo_serverport=63398; //server, portas
echo'
<table width="100%"> <tr> <td colspan="2"><center><b>'.$servo_pavadinimas.'</b></center></td> </tr>';
echo('Game:');
if($fp=fsockopen($servo_ip, $servo_serverport, $ERROR_NO, $ERROR_STR,(float)0.5))
echo"<span style='color:lime'>ON</span>";
else
echo"<span style='color:red'>OFF</span>";
echo('</td> </tr>');
echo('</table>');
closeside();