WHERE ".$USE." > 0 AND `status`='CONFIRMED'".$lastOnline."
ORDER BY points DESC, last_online DESC, userid
LIMIT %s",
- array($ONLINE, getConfig('bonus_ranks')), __FILE__, __LINE__);
+array($ONLINE, getConfig('bonus_ranks')), __FILE__, __LINE__);
// Reset temporary variable and check for users
$OUT = '';
while ($content = SQL_FETCHARRAY($result)) {
// Prepare data for the template
$content = array(
- $content['sw'] = $SW;
- $content['cnt'] = $cnt;
- $content['uid'] = bigintval($content['uid']);
- $content['points'] = translateComma($content['points']);
- $content['last'] = generateDateTime($content['last'], '2');
+ 'sw' => $SW,
+ 'cnt' => $cnt,
+ 'uid' => bigintval($content['uid']),
+ 'points' => translateComma($content['points']),
+ 'last' => generateDateTime($content['last'], '2')
+ );
// Load row template
$OUT .= LOAD_TEMPLATE("member_bonus_row", true, $content);
// Count one up and switch colors
- $cnt++;$SW = 3 - $SW;
+ $cnt++; $SW = 3 - $SW;
}
} else {
// No one is interested in our "active rallye" ! :-(