Official files Serverstatus
Hello ppl, here is the serverstatus script for the websites, hope u like
PHP Code:
<br>Account Server:
<?php
$online = @fsockopen("YOURIP", 12001, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?>
<br>Certifier Server:
<?php
$online = @fsockopen("YOURIP", 23000, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?>
<br>Trans Server:
<?php
$online = @fsockopen("YOURIP", 7000, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?>
<br>Core Server:
<?php
$online = @fsockopen("YOURIP", 4001, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?>
<br>Cache Server:
<?php
$online = @fsockopen("YOURIP", 15400, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?>
<br>Login Server:
<?php
$online = @fsockopen("YOURIP", 28000, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?>
<br>World Server:
<?php
$online = @fsockopen("YOURIP", 2**** $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?>
Just change the "YOURIP" to your server IP and Done !
Credits to xKay
Re: Official files Serverstatus
How about some pics to go with it?
Here's a few I found:
http://i3.tinypic.com/xgjnk9.gif
http://i3.tinypic.com/xgjnll.gif
http://i2.tinypic.com/xgk0zm.gif
http://i2.tinypic.com/xgjwwz.gif
just change code where it says:
Code:
<font color=#00FF00>Online</font>
and
Code:
<font color=#FF0000>Offline</font>
to direct to your the image in your http folder.
Re: Official files Serverstatus
Re: Official files Serverstatus
I came
Not all of them are gonna say online btw Trans Server: Offline
Core Server: Offline
those arn't.
And you have to change world server to the port of the cluster.
Re: Official files Serverstatus
Quote:
Originally Posted by
damian9000z
I came
Not all of them are gonna say online btw Trans Server: Offline
Core Server: Offline
those arn't.
And you have to change world server to the port of the cluster.
o.0 you came?
nice release
Re: Official files Serverstatus
Added it to the list.
your welcome.
Re: Official files Serverstatus
Lol.. Its like you've all never seen a fsockopen.
Re: Official files Serverstatus
Yea...same thing used for Mangos....but...he was the first to release it ;)
Re: Official files Serverstatus
hmmm.
nice release..
keep it up:)
Re: Official files Serverstatus
Maybe stupid question but... How to use it?
Re: Official files Serverstatus
Lol, it's for your website. Do a include
PHP Code:
<?php
include 'status.php'
?>
And status.php it's the code of that rosin release
Re: Official files Serverstatus
If i do like u saying, nothing happen. index.html is empty.
Re: Official files Serverstatus
Quote:
Originally Posted by
CinuSeK
If i do like u saying, nothing happen. index.html is empty.
Index.html is just a backup for if the php.ini gets messed up and doesn't load the index.php correctly....
index.php contains the information...or at least should...
Re: Official files Serverstatus
If i create index.php, it is like .html.. Nothing appear.
Re: Official files Serverstatus
I Tried to Use this! But All i see is this:
PHP Code:
Account Server: = 1) { echo 'Online'; } else { echo 'Offline'; } ?>
Certifier Server: = 1) { echo 'Online'; } else { echo 'Offline'; } ?>
Trans Server: = 1) { echo 'Online'; } else { echo 'Offline'; } ?>
Core Server: = 1) { echo 'Online'; } else { echo 'Offline'; } ?>
Cache Server: = 1) { echo 'Online'; } else { echo 'Offline'; } ?>
Login Server: = 1) { echo 'Online'; } else { echo 'Offline'; } ?>
World Server: = 1) { echo 'Online'; } else { echo 'Offline'; } ?>