
another website for
html / drupas/ joomla/ wordpress
you can download it here
Download
check what i made here:http://dns-kostas.no-ip.org/Bebop wrote:thanks for sharing, does this comes with any status script?
yeah..sorry, my website running on my laptop and probably was down -.-gmakhs wrote:site down't load but if you wanna you can send me your scripts and i will share them on my website too with credits on you ofcourse
Yes, i know. This is very old post, but if there is any chance, please upload this script again, somewhere. I can't extract this one.papadkostas wrote:I just made status script for ya guys.
It easy to set up.
1st Extract the folder to ur website dir.
2nd Copy the whole content of status.php and paste it in your page.
3rd and last one..
here is the function we call to check server status
CheckStatus("127.0.0.1","2106","7777","root","","l2jgs",false);
in first collumn set ur server ip(if server running localy just leave it as it is)
in the second collumn its server login port(default its 2106)
in the third collumn its game server login port(default its 7777)
in the fourth collumn its your SQL user name(insert ur SQL user name default its root)
in the fifth collumn its your SQL password(if your SQL database doesnt have any password leave it as it is)
in sixth collumn its your GameServer Database name(insert ur GS db name ,default its l2jgs)
in seventh collumn u select if GameServer is online to show online players(set "true" for show or "false" to not show)
Thats all.
If you have any problem(first think twice then ask) /request post it here.
Code: Select all
<?phpfunction CheckStatus($ServerAdress, $ServerPortLS, $ServerPortGS, $MySQLUserName, $MySQLPassword, $L2JServerGsDB, $ShowOnline){ //LoginServer Status Check $CheckLS = @fsockopen ("$ServerAdress",$ServerPortLS, $errno, $errstr, 1); if ($CheckLS) { print "LoginServer : <font color=#00FF00>Online</font><br>"; } else { print "LoginServer : <font color=#FF0000>Offline</font><br>"; } //GameServer Status Check $CheckGS = @fsockopen ($ServerAdress,$ServerPortGS, $errno, $errstr, 1); if ($CheckGS) { print "GameServer : <font color=#00FF00>Online</font><br>"; if($ShowOnline == "true") { CheckOnline($ServerAdress, $MySQLUserName, $MySQLPassword,$L2JServerGsDB); } } else { print "GameServer : <font color=#FF0000>Offline</font><br>"; }} function CheckOnline($ServerAdress, $MySQLUserName, $MySQLPassword, $L2JServerGsDB){ $connect = @mysql_connect($ServerAdress, $MySQLUserName, $MySQLPassword, $L2JServerGsDB); @mysql_select_db($L2JServerGsDB, $connect); $query = ("SELECT * FROM characters WHERE accesslevel=127 AND online=1"); $result = mysql_query($query) or die(mysql_error()); $numrows = mysql_numrows($result); echo "Online Players : $numrows";}?>
Code: Select all
<?phpCheckStatus("127.0.0.1","2106","7777","root","","l2jgs",true);?>