}
// Check if at least one is in the active rallye
- $result = SQL_QUERY_ESC("SELECT `userid`, `email`, `gender`, `surname`, `family`, ".$USE." AS points, `last_online`
-FROM `{?_MYSQL_PREFIX?}_user_data`
-WHERE `status`='CONFIRMED' AND ".$USE." > 0".$lastOnline."
-ORDER BY `points` DESC, `last_online` DESC, `userid` ASC",
- array($ONLINE), __FILE__, __LINE__);
+ $result = SQL_QUERY_ESC("SELECT
+ `userid`, `email`, `gender`, `surname`, `family`, ".$USE." AS points, `last_online`
+FROM
+ `{?_MYSQL_PREFIX?}_user_data`
+WHERE
+ `status`='CONFIRMED' AND
+ ".$USE." > 0
+ ".$lastOnline."
+ORDER BY
+ `points` DESC,
+ `last_online` DESC,
+ `userid` ASC",
+ array($ONLINE), __FILE__, __LINE__);
if (SQL_NUMROWS($result) > 0) {
// List users
} // END - if
// Prepare content
- $content['userid'] = generateUserProfileLink($content['userid']);
$content['email'] = generateEmailLink($content['email'], 'user_data');
- $content['gender'] = translateGender($content['gender']);
- $content['points'] = translateComma($content['points']);
$content['last_online'] = generateDateTime($content['last_online'], 2);
$content['sw'] = $SW;
$content['win1'] = $WIN1;