[RELEASE] Server Status Script...

04/13/2009 00:16 ADHDKiD#1
Code:
<html>
<body>
Dekaron Server:
<?
Error_reporting(0);
$fp = @fsockopen('INSERT IP HERE', PORT # HERE, $errno, $errstr, 2);
if($fp){ echo '<font color=green>Online</font>'; }
else{ echo '<font color=red>Offline</font>'; }
fclose($fp);
?>
<br>
Login Server:
<?
Error_reporting(0);
$fp = @fsockopen('INSERT IP HERE', PORT # HERE, $errno, $errstr, 2);
if($fp){ echo '<font color=green>Online</font>'; }
else{ echo '<font color=red>Offline</font>'; }
fclose($fp);
?>
</body>
</html>
Download:
[Only registered and activated users can see links. Click Here To Register...]

Enjoy!

P.S. I won't be a PHP Support.

Things you need installed for this script to work..

Apache
PHP
**MUST GO ON HOST COMPUTER**

P.P.S. Later this week will be a Custom Auto Updater (No Sources).
04/13/2009 00:22 PapaHarni#2
Sry but this is only a children release. work a better script , not status....


Why you use 2 seconds not 1 second when u said it must be run on the host server oO no no no .....
04/13/2009 01:05 lmrt#3
PapaHarni it's much easy to ur Admin Panel of course ..
But it's work perfect for me but ur AdminPanel doesnt't works ^^
04/13/2009 01:58 PapaHarni#4
Quote:
Originally Posted by ADHDKiD View Post
Hey douchebag, I've only been programming PHP for 2 weeks. My deal works perfectly for what I need it to do. You can go suck a dick.
Your work is stolen from other sites and nothing more.
04/13/2009 02:09 ADHDKiD#5
Quote:
Originally Posted by PapaHarni View Post
Your work is stolen from other sites and nothing more.
GG on the poor usage of arrays. Why don't you go back to school and learn how to code properly. Kthxbai. Lol @ this. Now you're going from bashing the php coding, to making up a load of bullshit. Well, aren't you a mature chump...
04/13/2009 02:21 ADHDKiD#6
Quote:
Originally Posted by ~trane~ View Post
#flame posts deleted, stop it.
<3
04/13/2009 10:15 PapaHarni#7
PHP Code:
<?php

error_reporting
(0);
ini_set('display_errors',false);

$stats = array(
    array(
'Server IP','GS Port','GS Name'),
    array(
'Server IP','LS Port','LS Name')
);

$count count($stats);
$i '0';

echo 
"<table border='0'>";
for(
$i >= '0';$i $count) {

    echo 
"<tr><td align='center'><b><u>".$stats[$i][2]."</b></u></td>";
 
    
$fps = @fsockopen($stats[$i][0],$stats[$i][1], $errno$errstr1);

    if(
$fps) { 
        echo 
"<td align='center'><font color='green'>Online</font></td><td>&nbsp;</td></tr>"
    } else { 
        echo 
"<td align='center'><font color='red'>Offline</font></td><td>&nbsp;</td></tr>";
    }

    
fclose($fps);

}

echo 
"</table>";

?>
04/15/2009 02:20 ADHDKiD#8
Quote:
Originally Posted by PapaHarni View Post
PHP Code:
<?php

error_reporting
(0);
ini_set('display_errors',false);

$stats = array(
    array(
'Server IP','GS Port','GS Name'),
    array(
'Server IP','LS Port','LS Name')
);

$count count($stats);
$i '0';

echo 
"<table border='0'>";
for(
$i >= '0';$i $count) {

    echo 
"<tr><td align='center'><b><u>".$stats[$i][2]."</b></u></td>";
 
    
$fps = @fsockopen($stats[$i][0],$stats[$i][1], $errno$errstr1);

    if(
$fps) { 
        echo 
"<td align='center'><font color='green'>Online</font></td><td>&nbsp;</td></tr>"
    } else { 
        echo 
"<td align='center'><font color='red'>Offline</font></td><td>&nbsp;</td></tr>";
    }

    
fclose($fps);

}

echo 
"</table>";

?>
Thanks for the suggestion/idea on how to improve my code. I'm currently working on a file updater system, that'd include a script similar to yours, but it'd be in vb.net
04/29/2009 17:51 illidan24#9
Quote:
Originally Posted by PapaHarni View Post
PHP Code:
<?php

error_reporting
(0);
ini_set('display_errors',false);

$stats = array(
    array(
'Server IP','GS Port','GS Name'),
    array(
'Server IP','LS Port','LS Name')
);

$count count($stats);
$i '0';

echo 
"<table border='0'>";
for(
$i >= '0';$i $count) {

    echo 
"<tr><td align='center'><b><u>".$stats[$i][2]."</b></u></td>";
 
    
$fps = @fsockopen($stats[$i][0],$stats[$i][1], $errno$errstr1);

    if(
$fps) { 
        echo 
"<td align='center'><font color='green'>Online</font></td><td>&nbsp;</td></tr>"
    } else { 
        echo 
"<td align='center'><font color='red'>Offline</font></td><td>&nbsp;</td></tr>";
    }

    
fclose($fps);

}

echo 
"</table>";

?>
What`s GS Port','GS Name',
'LS Port','LS Name'

thanks
04/30/2009 13:17 PapaHarni#10
Quote:
Originally Posted by illidan24 View Post
What`s GS Port','GS Name',
'LS Port','LS Name'

thanks

GS Port : The Game Server Port / default 7880 i think.
GS Name : The name you wish to see on the page / Most peoples use GameServer

LS Port : The Login Server Port / default 50005 i think.
LS Name : The name you wish to see on the page / Most peoples use LoginServer

example :
GameServer : Offline
LoginServer : online