From e8a57cbac38f677a845f4a33a083865ddac3c34b Mon Sep 17 00:00:00 2001 From: gregorecruzeiro Date: Thu, 14 Mar 2019 05:18:50 -0300 Subject: [PATCH] Update toponline.php site_title and type (#347) * Update toponline.php site_title and type Parse error: syntax error, unexpected 'site_title' (T_STRING), expecting ',' or ';' in C:\xampp\htdocs\znote\toponline.php on line 40 Notice: Undefined index: type in C:\xampp\htdocs\znote\toponline.php on line 10 --- toponline.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/toponline.php b/toponline.php index 9d00923..97d321a 100644 --- a/toponline.php +++ b/toponline.php @@ -1,14 +1,13 @@ '.$hours.'h '.$minutes.'m'; } - function hours_and_minutes($value, $color = 1) { $hours = floor($value / 3600); @@ -33,7 +31,6 @@ function hours_and_minutes($value, $color = 1) else return ''.$hours.'h '.$minutes.'m'; } - if(empty($type)) $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 `onlinetimetoday` DESC LIMIT '.$limit); elseif($type == "sum") @@ -41,12 +38,11 @@ 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 '

Most online on

+echo '

Most online on' .$config['site_title'] . '


'; - if($type == "sum") echo ''; else @@ -67,8 +63,6 @@ if(empty($type)) else echo ''; echo ''; - - $number_of_rows = 1; if($znotePlayers) foreach($znotePlayers as $player)
#
Name
Total
Today