//在L2论坛找到的一个script程序,另存为.php文件!
1X5\VY>S`h //可以检查你的天二服务器运行还是停止!
1X5\VY>S`h //Edit: Original Files Server Status for Ragnarok Online ~Aegis~
1X5\VY>S`h //上面一句意思是下面的代码转至 Ragnarok Online ~Aegis~
1X5\VY>S`h <head>
1X5\VY>S`h
<title>Lineage 2 Status Serveur</title>
1X5\VY>S`h
<script>
1X5\VY>S`h
<!--
1X5\VY>S`h
//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
1X5\VY>S`h
var limit="0:20"
1X5\VY>S`h if (document.images){
1X5\VY>S`h
var parselimit=limit.split(":")
1X5\VY>S`h
parselimit=parselimit[0]*60+parselimit[1]*1
1X5\VY>S`h
}
1X5\VY>S`h
function beginrefresh(){
1X5\VY>S`h
if (!document.images)
1X5\VY>S`h
return
1X5\VY>S`h
if (parselimit==1)
1X5\VY>S`h
window.location.reload()
1X5\VY>S`h
else{
1X5\VY>S`h
parselimit-=1
1X5\VY>S`h
curmin=Math.floor(parselimit/60)
1X5\VY>S`h
cursec=parselimit%60
1X5\VY>S`h
if (curmin!=0)
1X5\VY>S`h
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
1X5\VY>S`h
else
1X5\VY>S`h
curtime=cursec+" secs left until server status refresh!"
1X5\VY>S`h
window.status=curtime
1X5\VY>S`h
setTimeout("beginrefresh()",1000)
1X5\VY>S`h
}
1X5\VY>S`h
}
1X5\VY>S`h window.onload=beginrefresh
1X5\VY>S`h
//-->
1X5\VY>S`h
</script>
1X5\VY>S`h
<style type="text/css">
1X5\VY>S`h
<!--
1X5\VY>S`h
.Style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
1X5\VY>S`h
.Style2 {font-size: x-small}
1X5\VY>S`h
.Style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: x-small; }
1X5\VY>S`h
-->
1X5\VY>S`h
</style>
1X5\VY>S`h
</head>
1X5\VY>S`h
<body scroll=no>
1X5\VY>S`h <DIV
1X5\VY>S`h
style="HEIGHT: 32px; LEFT: 30px; POSITION: absolute; TOP: 75px; WIDTH: 270px">
1X5\VY>S`h
<TABLE>
1X5\VY>S`h
<TR>
1X5\VY>S`h
<TD>
1X5\VY>S`h
</TR>
1X5\VY>S`h
</TD>
1X5\VY>S`h
</TABLE>
1X5\VY>S`h
</DIV>
1X5\VY>S`h
1X5\VY>S`h
<DIV
1X5\VY>S`h
style="HEIGHT: 32px; LEFT: 10px; POSITION: absolute; TOP: 15px; WIDTH: 100%">
nlR7V.
<span class="Style1"><span class="Style2"><font color="#FF0000">This section will auto refresh</font>
nlR7V.
<FONT COLOR="#cccccc">TRANSLATION:</FONT> <FONT COLOR="green">UP</FONT> / <FONT COLOR="blue">DOWN</FONT> status is not 100% accurate.<BR>
nlR7V.
<TABLE cellpadding=0 cellspacing=0 width=400 BORDER="0">
nlR7V. <TR>
nlR7V.
<TD class="Style3"><DIV style="font-weight:bold"><H2>Server</H2></DIV></TD>
nlR7V.
<TD class="Style3"><DIV style="font-weight:bold"><H2>Status</H2></DIV></TD>
nlR7V.
<br>
nlR7V.
</TR><TR>
nlR7V.
</DIV>
nlR7V.
</body>
nlR7V.
<?PHP
nlR7V.
/*
nlR7V. rights of aegis and others
nlR7V.
*/
nlR7V.
error_reporting(0);
nlR7V. $IP = array(
nlR7V.
"Login Server" => "YOURIPHERE:2106",
nlR7V.
"Game Server" => "YOURIPHERE:7777",
nlR7V.
); while(list($ServerName,$Host)=each($IP)) {
nlR7V.
list($IPAddress,$Port)=explode(":",$Host);
nlR7V.
echo("<TD><DIV>".$ServerName."</DIV></TD><TD>");
nlR7V.
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
nlR7V.
echo("<DIV style=\"color:'green';font-weight:'bold'\">UP</DIV>");
nlR7V.
fclose($fp);
nlR7V.
}
nlR7V.
else {
nlR7V.
echo ("<DIV style=\"color:'blue';font-weight:'bold'\">DOWN</DIV>");
nlR7V.
}
nlR7V.
echo ("</TD></TR><TR>");
nlR7V.
}
nlR7V.
echo ("</TABLE>");
nlR7V.
?><BR><BR>
nlR7V. Made By <a href="[email protected]">Nounours</a>