• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

L2J [Share] PHP Status Script

Status
Not open for further replies.
Joined
Nov 14, 2001
Messages
29,450
Reaction score
21,670
PHP Status Script

PHP:
<head>
<title>Lineage 2 Status Serveur</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>
<style type="text/css">
<!--
.Style1 {font-family: Verdana, Arial, Helvetica, sans-serif**
.Style2 {font-size: x-small**
.Style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: x-small; **
-->
</style>
</head>
<body scroll=no>

<DIV
style="HEIGHT: 32px; LEFT: 30px; POSITION: absolute; TOP: 75px; WIDTH: 270px">
<TABLE>
<TR>
<TD>
</TR>
</TD>
</TABLE>
</DIV>


<DIV
style="HEIGHT: 32px; LEFT: 10px; POSITION: absolute; TOP: 15px; WIDTH: 100%">
<span class="Style1"><span class="Style2"><font color="#FF0000">This section will auto refresh</font>
<FONT COLOR="#cccccc">TRANSLATION:</FONT> <FONT COLOR="green">UP</FONT> / <FONT COLOR="blue">DOWN</FONT> status is not 100% accurate.<BR>
<TABLE cellpadding=0 cellspacing=0 width=400 BORDER="0">

<TR>
<TD class="Style3"><DIV style="font-weight:bold"><H2>Server</H2></DIV></TD>
<TD class="Style3"><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" => "YOURIPHERE:2106",
"Game Server" => "YOURIPHERE:7777",
); 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>

Made By <a href="mailto:bibi_7@msn.com">Nounours</a>
 
Status
Not open for further replies.
Back
Top