Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Serverio Statusas

Parašė namo· 2009 Bir. 18 23:06:56
#1

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();




Parašė Creatium· 2009 Bir. 18 23:06:23
#2

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();



Redagavo Creatium· 2009 Bir. 18 23:06:34

Parašė namo· 2009 Bir. 18 23:06:57
#3

Dekui labai, veikia +10 :)