sinpei
2010-02-27, 05:30 AM
<?PHP
$title = "首頁";
require './inc/header.inc';
echo ("<TABLE align='center'>");
error_reporting(0);
$IP = array("<font size=-2>登陸伺服器:" => "".$loginip.":".$loginport."","<font size=-2>人物伺服器:" => "".$charip.":".$charport."","<font size=-2>地圖伺服器:" => "".$mapip.":".$mapport."",);
while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo("<TD><DIV>".$ServerName."</DIV></TD><TD>");
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo("<DIV style=\"color:'green'\"><font size=-2>正常在線</DIV>");
fclose($fp); }else{ echo("<DIV style=\"color:'red'\"><font size=-2>未知狀態</DIV>");} echo ("</TD></TR><TR>");}
$usergs1 = 0;$res = mysql_query("SELECT user FROM `sstatus`");$row = mysql_fetch_array($res);$usergs1 = $row[user];
if($usergs1 == 0) {$usergs2 = '不顯示'; } else { $usergs2 = $usergs1; }
echo ("<tr><td><font size=-3> 在線人數: </td><td><font size=-2 color=blue>".$usergs2."</font></td></tr>");
echo ("</TABLE>");
require './inc/indexfooter.inc';
?>
使firefox3.58版位置完全跑徧了 請問一下除了用iE以外 要怎能讓firefox顯
示正常呢
http://img189.imageshack.us/img189/2960/erroya.jpg
贊助商連結
$title = "首頁";
require './inc/header.inc';
echo ("<TABLE align='center'>");
error_reporting(0);
$IP = array("<font size=-2>登陸伺服器:" => "".$loginip.":".$loginport."","<font size=-2>人物伺服器:" => "".$charip.":".$charport."","<font size=-2>地圖伺服器:" => "".$mapip.":".$mapport."",);
while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo("<TD><DIV>".$ServerName."</DIV></TD><TD>");
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo("<DIV style=\"color:'green'\"><font size=-2>正常在線</DIV>");
fclose($fp); }else{ echo("<DIV style=\"color:'red'\"><font size=-2>未知狀態</DIV>");} echo ("</TD></TR><TR>");}
$usergs1 = 0;$res = mysql_query("SELECT user FROM `sstatus`");$row = mysql_fetch_array($res);$usergs1 = $row[user];
if($usergs1 == 0) {$usergs2 = '不顯示'; } else { $usergs2 = $usergs1; }
echo ("<tr><td><font size=-3> 在線人數: </td><td><font size=-2 color=blue>".$usergs2."</font></td></tr>");
echo ("</TABLE>");
require './inc/indexfooter.inc';
?>
使firefox3.58版位置完全跑徧了 請問一下除了用iE以外 要怎能讓firefox顯
示正常呢
http://img189.imageshack.us/img189/2960/erroya.jpg
贊助商連結