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