LCKB
[Release] Server Status Script - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Website Scripting & Security (https://lckb.dev/forum/forumdisplay.php?fid=197)
+---- Forum: Website Releases (https://lckb.dev/forum/forumdisplay.php?fid=135)
+----- Forum: Ep1 Websites (https://lckb.dev/forum/forumdisplay.php?fid=185)
+----- Thread: [Release] Server Status Script (/showthread.php?tid=405)



- Warmonger - 11-23-2011



<?php

// Enter Server Connection Info Here
$server = array(
host => "localhost",
lport => "4001",
gport => "4110"
);
// Enter MySQL Connection Info Here
$mysql = array(
host => "localhost",
user => "root",
pass => "root"
);

echo "";

// Check Active Sockets
echo "Server StatusLoginServerOnlineOffline";
}
echo "GameServer";
$fp2 = @fsockopen($server[host],$server[gport],$errno,$errstr,2);
if($fp2) {
echo "Online";
fclose($fp2);
} else {
echo "Offline";
}
echo "";

// Pull Online Player Count
$con = mysql_connect($mysql[host],$mysql[user],$mysql[pass]);
$result = mysql_query("SELECT COUNT(*) FROM newproject_db.t_users WHERE a_zone_num <> -1",$con);
$online = mysql_result($result, 0);
echo "Online Players".$online."";

echo "";

// Coded By Warmonger

?>

 

Download: 2




- -=Reidi=- - 11-23-2011


:o a free release?

 

thx




- GuXz - 11-25-2011

Thanks I love Big Grin




- soyouare - 11-25-2011

Thank you !




- WarmongerII - 11-26-2011

1




- alex111 - 05-02-2012

link delted please reupload Sad