* -------------------------------------------------------------------- *
* Kurzbeschreibung : Mitglieder in Aktiv-Rallye auflisten *
* -------------------------------------------------------------------- *
* -------------------------------------------------------------------- *
* Kurzbeschreibung : Mitglieder in Aktiv-Rallye auflisten *
* -------------------------------------------------------------------- *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2008 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2008 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+ $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
// Okay, let's prepare...
$curr = date("m", time()) - 1;
if (strlen($curr) == 1) $curr = "0".$curr;
UPDATE_CONFIG("last_month", $curr);
// Okay, let's prepare...
$curr = date("m", time()) - 1;
if (strlen($curr) == 1) $curr = "0".$curr;
UPDATE_CONFIG("last_month", $curr);
- if (getConfig('bonus_click_yn') == "Y") $USE .= " + turbo_bonus";
- if (getConfig('bonus_login_yn') == "Y") $USE .= " + login_bonus";
- if (getConfig('bonus_order_yn') == "Y") $USE .= " + bonus_order";
- if (getConfig('bonus_stats_yn') == "Y") $USE .= " + bonus_stats";
- if (getConfig('bonus_ref_yn') == "Y") $USE .= " + bonus_ref";
+ if (getConfig('bonus_click_yn') == 'Y') $USE .= " + turbo_bonus";
+ if (getConfig('bonus_login_yn') == 'Y') $USE .= " + login_bonus";
+ if (getConfig('bonus_order_yn') == 'Y') $USE .= " + bonus_order";
+ if (getConfig('bonus_stats_yn') == 'Y') $USE .= " + bonus_stats";
+ if (getConfig('bonus_ref_yn') == 'Y') $USE .= " + bonus_ref";
$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__);
if (SQL_NUMROWS($result) > 0) {
// List users
ORDER BY points DESC, last_online DESC, userid",
array($ONLINE), __FILE__, __LINE__);
if (SQL_NUMROWS($result) > 0) {
// List users
while ($content = SQL_FETCHARRAY($result)) {
// Add total points
$total += $content['points'];
// Generate array fore the dynamic template
while ($content = SQL_FETCHARRAY($result)) {
// Add total points
$total += $content['points'];
// Generate array fore the dynamic template
define('__BONUS_WITHDRAW_FORM', LOAD_TEMPLATE("admin_list_bonus_form", true));
} else {
// Display message "no manual withdraw possible"
define('__BONUS_WITHDRAW_FORM', LOAD_TEMPLATE("admin_list_bonus_form", true));
} else {
// Display message "no manual withdraw possible"
- define('__AUTOPURGE_TIMEOUT', sprintf(getMessage('EXTENSION_PROBLEM_NOT_INSTALLED'), "autopurge"));
+ define('__AUTOPURGE_TIMEOUT', sprintf(getMessage('EXTENSION_PROBLEM_NOT_INSTALLED'), 'autopurge'));