diff --git a/toponline.php b/toponline.php index 854d1d4..cb1b5c5 100644 --- a/toponline.php +++ b/toponline.php @@ -1,17 +1,15 @@ <?php require_once 'engine/init.php'; include 'layout/overall/header.php'; -$toponline = $config['toponline']; -$limit = $toponline['limit']; -if ($config['toponline_enabled'] === false) { +if (!$config['toponline']['enabled']) { echo 'This page has been disabled at config.php.'; include 'layout/overall/footer.php'; exit(); } +$limit = $config['toponline']['limit']; $type = $_GET['type']; - function onlineTimeTotal($value) { $hours = floor($value / 3600); @@ -43,7 +41,7 @@ elseif($type == "sum") elseif($type >= 1 && $type <= 4) $znotePlayers = mysql_select_multi('SELECT * FROM `znote_players` AS `z` JOIN `players` AS `p` WHERE `p`.`id`=`z`.`player_id` and `p`.`group_id` < 3 ORDER BY `onlinetime' . (int) $type . '` DESC LIMIT '.$limit); -echo '<CENTER><H2>Most online on server name</H2></CENTER> +echo '<CENTER><H2>Most online on Dalerium</H2></CENTER> <BR> <table class="table table-striped"> <td><center><b>#</b></center></td>