// Add description as navigation point
ADD_DESCR("member", basename(__FILE__));
// Add description as navigation point
ADD_DESCR("member", basename(__FILE__));
- if ($CONFIG['bonus_click_yn'] == 'Y') $USE .= " + turbo_bonus";
- if ($CONFIG['bonus_login_yn'] == 'Y') $USE .= " + login_bonus";
- if ($CONFIG['bonus_order_yn'] == 'Y') $USE .= " + bonus_order";
- if ($CONFIG['bonus_stats_yn'] == 'Y') $USE .= " + bonus_stats";
- if ($CONFIG['bonus_ref_yn'] == 'Y') $USE .= " + bonus_ref";
+ if ($_CONFIG['bonus_click_yn'] == 'Y') $USE .= " + turbo_bonus";
+ if ($_CONFIG['bonus_login_yn'] == 'Y') $USE .= " + login_bonus";
+ if ($_CONFIG['bonus_order_yn'] == 'Y') $USE .= " + bonus_order";
+ if ($_CONFIG['bonus_stats_yn'] == 'Y') $USE .= " + bonus_stats";
+ if ($_CONFIG['bonus_ref_yn'] == 'Y') $USE .= " + bonus_ref";
{
// Use last online timestamp to keep inactive members away from here
$LAST = " AND last_online >= %s";
{
// Use last online timestamp to keep inactive members away from here
$LAST = " AND last_online >= %s";
}
// Let's check if there are some points left we can "pay"...
$result = SQL_QUERY_ESC("SELECT userid, ".$USE." AS active_bonus, last_online FROM "._MYSQL_PREFIX."_user_data
WHERE ".$USE." > 0 AND status='CONFIRMED'".$LAST."
ORDER BY active_bonus DESC, last_online DESC, userid LIMIT %s",
}
// Let's check if there are some points left we can "pay"...
$result = SQL_QUERY_ESC("SELECT userid, ".$USE." AS active_bonus, last_online FROM "._MYSQL_PREFIX."_user_data
WHERE ".$USE." > 0 AND status='CONFIRMED'".$LAST."
ORDER BY active_bonus DESC, last_online DESC, userid LIMIT %s",
- array($ONLINE, $CONFIG['bonus_ranks']), __FILE__, __LINE__);
+ array($ONLINE, $_CONFIG['bonus_ranks']), __FILE__, __LINE__);