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