// Generate array fore the dynamic template
$WIN1 = ''; $WIN2 = '';
- if ($count <= getConfig('bonus_ranks')) {
+ if ($count <= getBonusRanks()) {
// Maybe he can win his active bonus?
$WIN1 = '<strong>';
$WIN2 = '</strong>';
// Let's check if there are some points left we can 'pay'...
$result = SQL_QUERY_ESC("SELECT
- `userid`, ".$USE." AS `points`,`last_online`
+ `userid`,
+ ".$USE." AS `points`,
+ `last_online`
FROM
`{?_MYSQL_PREFIX?}_user_data`
WHERE
" . $lastOnline . "
ORDER BY
`points` DESC,
- last_online DESC,
- userid ASC
+ `last_online` DESC,
+ `userid` ASC
LIMIT {?bonus_ranks?}",
array(
$ONLINE
// Debug line
//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Monthly reset started.');
-if ((getConfig('bonus_ranks') > 0) && (!isCssOutputMode())) {
+if ((getBonusRanks() > 0) && (!isCssOutputMode())) {
// Extension 'autopurge' is inactive or purging of inactive accounts is deactivated
$whereStatement = "WHERE `status`='CONFIRMED'";