Modules in admin panel, thanks to Lee for the code

This commit is contained in:
whiteblXK
2019-03-16 19:03:00 +01:00
parent d03989481b
commit ded5274be7
7 changed files with 135 additions and 14 deletions

View File

@@ -0,0 +1,11 @@
<?php
if ($db->hasColumn('accounts', 'coins')) {
$coins = $db->query('SELECT `coins`, `' . (USE_ACCOUNT_NAME ? 'name' : 'id') . '` as `name` FROM `accounts` ORDER BY `coins` DESC LIMIT 10;');
} else {
$coins = 0;
}
$twig->display('coins.html.twig', array(
'coins' => $coins
));