mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
* auto generate myaac cache & session prefix on install to be unique accross installations
* prevent adding duplicated newses with installation * players.is_sample to prevent displaying on highscores
This commit is contained in:
@@ -971,7 +971,7 @@ function getTopPlayers($limit = 5) {
|
||||
if(fieldExist('deletion', 'players'))
|
||||
$deleted = 'deletion';
|
||||
|
||||
$players = $db->query('SELECT `name`, `level`, `experience` FROM `players` WHERE `group_id` < ' . $config['highscores_groups_hidden'] . ' AND `' . $deleted . '` = 0 AND account_id != 1 ORDER BY `experience` DESC LIMIT 5')->fetchAll();
|
||||
$players = $db->query('SELECT `name`, `level`, `experience` FROM `players` WHERE `group_id` < ' . $config['highscores_groups_hidden'] . ' AND `is_sample` = 0 AND `' . $deleted . '` = 0 AND `account_id` != 1 ORDER BY `experience` DESC LIMIT 5')->fetchAll();
|
||||
|
||||
$i = 0;
|
||||
foreach($players as &$player) {
|
||||
|
Reference in New Issue
Block a user