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,10 @@
<?php
if ($db->hasColumn('accounts', 'premium_points')) {
$points = $db->query('SELECT `premium_points`, `' . (USE_ACCOUNT_NAME ? 'name' : 'id') . '` as `name` FROM `accounts` ORDER BY `premium_points` DESC LIMIT 10;');
} else {
$points = 0;
}
$twig->display('points.html.twig', array(
'points' => $points,
));