// Okay, let's prepare...
$curr = date("m", time()) - 1;
if (strlen($curr) == 1) $curr = "0".$curr;
// Okay, let's prepare...
$curr = date("m", time()) - 1;
if (strlen($curr) == 1) $curr = "0".$curr;
if (EXT_IS_ACTIVE("autopurge")) {
// Use last online timestamp to keep inactive members away from here
if (EXT_IS_ACTIVE("autopurge")) {
// Use last online timestamp to keep inactive members away from here
$ONLINE = getConfig('ap_inactive_since');
}
// Check if at least one is in the active rallye
$result = SQL_QUERY_ESC("SELECT userid AS uid, email, gender, surname, family, ".$USE." AS points, last_online AS last
FROM `{!_MYSQL_PREFIX!}_user_data`
$ONLINE = getConfig('ap_inactive_since');
}
// Check if at least one is in the active rallye
$result = SQL_QUERY_ESC("SELECT userid AS uid, email, gender, surname, family, ".$USE." AS points, last_online AS last
FROM `{!_MYSQL_PREFIX!}_user_data`
ORDER BY points DESC, last_online DESC, userid",
array($ONLINE), __FILE__, __LINE__);
ORDER BY points DESC, last_online DESC, userid",
array($ONLINE), __FILE__, __LINE__);