I would like to see a Players Online: in it under Total Caractors telling how many people are in the game.
I do like your work too, Looks Really nice.
right under it you just have to addfunction stats() {
global $link, $valid, $serverexp, $serverdrop, $template_folder;
// checking login server
$check_login = @fsockopen('71.125.37.18', '29000', $ERRNO, $ERRSTR, 1);
if ($check_login) { $login_status = "<img src=themes/".$template_folder."/images/on.gif>"; } else { $login_status = "<img src=themes/".$template_folder."/images/off.gif>"; }
// checking char server
$check_char = @fsockopen('71.125.37.18', '29100', $ERRNO, $ERRSTR, 1);
if ($check_char) { $char_status = "<img src=themes/".$template_folder."/images/on.gif>"; } else { $char_status = "<img src=themes/".$template_folder."/images/off.gif>"; }
// checking world server
$check_world = @fsockopen('71.125.37.18', '29200', $ERRNO, $ERRSTR, 1);
if ($check_world) { $world_status = "<img src=themes/".$template_folder."/images/on.gif>"; } else { $world_status = "<img src=themes/".$template_folder."/images/off.gif>"; }
// check total accounts
$connect = $link->dmysqlf($hostname,$username,$pass);
if ($connect) {
if (!$link->mydb($db)) { $valid->alert("Cant Connect to DB.. [Functions.php]"); }
$query = $link->query("SELECT * from `accounts`");
$totalaccounts = mysql_num_rows($query);
$queryc = $link->query("SELECT * from `characters`");
$totalchars = mysql_num_rows($queryc);
} else { $valid->alert("Cant Connect to mysql [Functions.php]"); }
note!: list_chars_connected is used by the latest server rev so be sure you have that table or it wont work at all!!!!//Check Online User by MoonlightChild
$connect = $link->dmysqlf($hostname,$username,$pass);
if ($connect) {
if (!$link->mydb($db)) { $valid->alert("Cant Connect to DB.. [Functions.php]"); }
$query = $link->query("SELECT * from `list_chars_connected`");
$playersonline = mysql_num_rows($query);
} else { $valid->alert("Cant Connect to mysql [Functions.php]"); }
in the functions.php and add$status = '
<fieldset><legend>Server Status</legend>
<p>Login Server: '. $login_status .'
<br />Char Server: '. $char_status .'
<br />World Server: '. $world_status .'
<br /><br />Exp: '. $serverexp .'
<br />Drop: '. $serverdrop .'
<br />Total Accounts: '. $totalaccounts .'
<br />Total Characters: '. $totalchars .'
under it and save it<br />Online: '. $playersonline .'
T_T
I cant Register in your Releases Rosecp_v1.4 Check it out dyeprey......
and cant Changes pas too.. T_T..
Anyway Nice Web... 9/10
That lloking nice at you.. but why i can`t use it? I became im explorer only a site with the codes not the Page in normal look![]()