Can anyone edit this code to make everything stay on one line so it looks like a banner?
Right now it looks like this:
Login
Online
Map
Online
Character
Online
I want it to look like this:
Login: Online Map: Online, and so on.
Heres the code
Right now it looks like this:
Login
Online
Map
Online
Character
Online
I want it to look like this:
Login: Online Map: Online, and so on.
Heres the code
Code:
<?PHP
error_reporting(0);
echo("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><title></title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" /></head><body bgcolor=\"black\"><table align=\"center\" bgcolor=\"black\">");
$IP = array(
"Login Server" => "69.122.11.109:6900",
"Character Server" => "69.122.11.109:6121",
"Map Server" => "69.122.11.109:5121",
"Patch Server" => "204.2.183.2:80",
); while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo("<tr><td style=\"text-align:center;color:white\">".$ServerName."</td></tr><tr><td>");
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo("<div style=\"color:green;font-weight:bold;text-align:center;\">Online</div>");
fclose($fp);
}
else {
echo ("<div style=\"color:red;font-weight:bold;text-align:center;\">Offline</div>");
}
echo ("</td></tr>");
}
echo("</table></body></html>");
?>