PHP Code:
<?php
// Configurations
$myhost="Your IP";
$mypass="Your database pass";
$myuser="Your user";
$mydbacc="Your account table location";
$mydbdata="Your cq_user location";
// Dont Edit after this
mysql_connect($myhost,$myuser,$mypass);
?>
<?php
mysql_select_db($mydbacc);
$res = mysql_query("SELECT count(*) FROM account;");
$val = mysql_fetch_array($res);
echo "<font style='color: #FFFFFF'>Total Players: ".$val[0]."<br />";
mysql_select_db($mydbdata);
$res = mysql_query("SELECT count(*) FROM cq_user;");
$val = mysql_fetch_array($res);
echo "<font style='color: #FFFFFF'>Total Characters: ".$val[0]."<br />";
echo "Total Online: ";
echo (exec('netstat -a -n |find "5816" |find "ESTABLISHED" /c')-0);
?>
This is only the statistic script and the total online doesn't work unless the script hosted localy ..(Localhost) and for some pcs it requires a program called netstat