Sveiki, turiu paprasta serverio statuso panele ir ja rodo taip:
Kaip man padaryt, kad rodytu viska vienoj eilutej? Nu kaip buna cs serveriu statuse (reikia tikrai ne cs)
Kas pades tam +10 ;)
Panele:
openside("Gracia Final");
error_reporting(0);
$IP = array("<center><b>LS STATUS</b><br>Serverio statusas: " => "84.240.62.220:2106",);
while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo("<tr><td>".$ServerName);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo("<img src='http://avangardas.eu/server_online.png'>");
fclose($fp);
}
else {
echo ("<img src='http://avangardas.eu/server_offline.png'>");
}
echo ("</center></td></tr>\n");
}
error_reporting(0);
$IP = array("<center><b>GS STATUS</b><br>Serverio statusas: " => "84.240.62.220:7777",);
while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo("<tr><td>".$ServerName);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo("<img src='http://avangardas.eu/server_online.png'>");
fclose($fp);
}
else {
echo ("<img src='http://avangardas.eu/server_offline.png'>");
}
echo ("</center></td></tr>\n");
}
closeside();
Remember kids, the more posts you have the bigger your penis is! |
Bandyk:
openside("Gracia Final");
error_reporting(0);
$IP = array("<center><b>LS STATUS</b>Serverio statusas: " => "84.240.62.220:2106",);
while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo("".$ServerName);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo("<img src='http://avangardas.eu/server_online.png'>");
fclose($fp);
}
else {
echo ("<img src='http://avangardas.eu/server_offline.png'>");
}
echo ("</center>\n");
}
error_reporting(0);
$IP = array("<center><b>GS STATUS</b>Serverio statusas: " => "84.240.62.220:7777",);
while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo("".$ServerName);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo("<img src='http://avangardas.eu/server_online.png'>");
fclose($fp);
}
else {
echo ("<img src='http://avangardas.eu/server_offline.png'>");
}
echo ("</center>\n");
}
closeside();
www.creatium.lt
Redagavo Creatium 2009 Bir. 18 23:06:34 |