mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 03:09:22 +02:00
Update toponline.php
This commit is contained in:
parent
65ecac19a9
commit
8b90fe0ea2
@ -1,17 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once 'engine/init.php';
|
require_once 'engine/init.php';
|
||||||
include 'layout/overall/header.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.';
|
echo 'This page has been disabled at config.php.';
|
||||||
include 'layout/overall/footer.php';
|
include 'layout/overall/footer.php';
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
$limit = $config['toponline']['limit'];
|
||||||
$type = $_GET['type'];
|
$type = $_GET['type'];
|
||||||
|
|
||||||
|
|
||||||
function onlineTimeTotal($value)
|
function onlineTimeTotal($value)
|
||||||
{
|
{
|
||||||
$hours = floor($value / 3600);
|
$hours = floor($value / 3600);
|
||||||
@ -43,7 +41,7 @@ elseif($type == "sum")
|
|||||||
elseif($type >= 1 && $type <= 4)
|
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);
|
$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>
|
<BR>
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<td><center><b>#</b></center></td>
|
<td><center><b>#</b></center></td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user