mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-29 18:59:21 +02:00
Update toponline.php
This commit is contained in:
parent
65ecac19a9
commit
8b90fe0ea2
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user