[skrunk]
ok this is a php script and again i didn't write it originally just fixed stuff and cleaned up code. credit should go to whoever wrote the original version.
replace the IPs that are in it with your server's IP.
you will either have to be able to run PHP on your personal webserver or have the page hosted on a web host that supports PHP
it's pretty easy to configure and i'm even tossing in the code to put it in an iframe and the background image i "barrowed" from you know who and moded for this page. server checker background image
real quick code notes : the background image is in a div table so you may need to adjust the placement of it. just change the LEFT and TOP values in the <div> tag until it's where you like it. drop the background image in a folder named images or change the pointer link to where ever you put it. also the Login port is set to 6900. if this is not your servers port then you will need to change it.
iframe code (put this in whatever page you want the server checker to appear or just ignore this and run the page by itself)
Quote
<IFRAME SRC="checker.php" name="checker" WIDTH="100%" frameBorder=0 height="397" marginHeight=0 marginWidth=42 scrolling=auto>
</IFRAME>
</IFRAME>
server status page
Quote
<head>
<title>
RO Status Checker by aegis
</title>
<script>
<!--
//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var limit="0:20"
if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
else
curtime=cursec+" secs left until server status refresh!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}
window.onload=beginrefresh
//-->
</script></head>
<body scroll=no>
<DIV
style="HEIGHT: 32px; LEFT: 30px; POSITION: absolute; TOP: 75px; WIDTH: 270px">
<TABLE>
<TR>
<TD>
<IMG SRC="images/rochars.gif">
</TR>
</TD>
</TABLE>
</DIV>
<DIV
style="HEIGHT: 32px; LEFT: 10px; POSITION: absolute; TOP: 15px; WIDTH: 100%">
<font color="#FF0000">this section will auto refresh</font>
<BLOCKQUOTE>Server Status is directly perportional to your lag to the web server.<BR><BR>
<FONT COLOR="#cccccc">TRANSLATION:</FONT> <FONT COLOR="green" SIZE="3">UP</FONT> / <FONT COLOR="blue">DOWN</FONT> status is not 100% accurate.<BR><BR>So try to login if your unsure if server is up or down as lag to the web server may be lieing to us all.</BLOCKQUOTE>
<TABLE cellpadding=0 cellspacing=0 width=400 BORDER="0">
<TR>
<TD><DIV style="font-weight:bold"><H2>Server</H2></DIV></TD>
<TD><DIV style="font-weight:bold"><H2>Status</H2></DIV></TD>
<br>
</TR><TR>
</DIV>
</body>
<?PHP
/*
rights of aegis and others
*/
error_reporting(0);
$IP = array(
"Login Server" => "PUT YOUR IP HERE:6900",
"Character Server (might lag)" => "PUT YOUR IP HERE:7000",
"Interaction Server" => "PUT YOUR IP HERE:4000",
"Zone Server 1" => "PUT YOUR IP HERE:4501",
"NPC Server" => "PUT YOUR IP HERE:4501",
); 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-weight:'bold'\">UP</DIV>");
fclose($fp);
}
else {
echo ("<DIV style=\"color:'blue';font-weight:'bold'\">DOWN</DIV>");
}
echo ("</TD></TR><TR>");
}
echo ("</TABLE>");
?><BR><BR>
<?
echo $_SERVER['SERVER_SOFTWARE'];
?>
<title>
RO Status Checker by aegis
</title>
<script>
<!--
//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var limit="0:20"
if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
else
curtime=cursec+" secs left until server status refresh!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}
window.onload=beginrefresh
//-->
</script></head>
<body scroll=no>
<DIV
style="HEIGHT: 32px; LEFT: 30px; POSITION: absolute; TOP: 75px; WIDTH: 270px">
<TABLE>
<TR>
<TD>
<IMG SRC="images/rochars.gif">
</TR>
</TD>
</TABLE>
</DIV>
<DIV
style="HEIGHT: 32px; LEFT: 10px; POSITION: absolute; TOP: 15px; WIDTH: 100%">
<font color="#FF0000">this section will auto refresh</font>
<BLOCKQUOTE>Server Status is directly perportional to your lag to the web server.<BR><BR>
<FONT COLOR="#cccccc">TRANSLATION:</FONT> <FONT COLOR="green" SIZE="3">UP</FONT> / <FONT COLOR="blue">DOWN</FONT> status is not 100% accurate.<BR><BR>So try to login if your unsure if server is up or down as lag to the web server may be lieing to us all.</BLOCKQUOTE>
<TABLE cellpadding=0 cellspacing=0 width=400 BORDER="0">
<TR>
<TD><DIV style="font-weight:bold"><H2>Server</H2></DIV></TD>
<TD><DIV style="font-weight:bold"><H2>Status</H2></DIV></TD>
<br>
</TR><TR>
</DIV>
</body>
<?PHP
/*
rights of aegis and others
*/
error_reporting(0);
$IP = array(
"Login Server" => "PUT YOUR IP HERE:6900",
"Character Server (might lag)" => "PUT YOUR IP HERE:7000",
"Interaction Server" => "PUT YOUR IP HERE:4000",
"Zone Server 1" => "PUT YOUR IP HERE:4501",
"NPC Server" => "PUT YOUR IP HERE:4501",
); 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-weight:'bold'\">UP</DIV>");
fclose($fp);
}
else {
echo ("<DIV style=\"color:'blue';font-weight:'bold'\">DOWN</DIV>");
}
echo ("</TD></TR><TR>");
}
echo ("</TABLE>");
?><BR><BR>
<?
echo $_SERVER['SERVER_SOFTWARE'];
?>

Help











