* -------------------------------------------------------------------- *
* 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';
- $curr = date("m", time()) - 1;
- if (strlen($curr) == 1) $curr = "0".$curr;
- UPDATE_CONFIG("last_month", $curr);
- LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_BONUS_WITHDRAW_PREPARED'));
- }
+ $curr = date('m', time()) - 1;
+ if (strlen($curr) == 1) $curr = '0'.$curr;
+ updateConfiguration('last_month', $curr);
+ LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_BONUS_WITHDRAW_PREPARED'));
+ } // END - if
- 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
- $content['uid'] = ADMIN_USER_PROFILE_LINK($content['uid']);
- $content['email'] = CREATE_EMAIL_LINK($content['email'], "user_data");
- $content['gender'] = TRANSLATE_GENDER($content['gender']);
- $content['points'] = TRANSLATE_COMMA($content['points']);
- $content['last'] = MAKE_DATETIME($content['last'], "2");
+ $content['uid'] = generateUserProfileLink($content['uid']);
+ $content['email'] = generateMemberEmailLink($content['email'], "user_data");
+ $content['gender'] = translateGender($content['gender']);
+ $content['points'] = translateComma($content['points']);
+ $content['last'] = generateDateTime($content['last'], "2");
// Load form
define('__BONUS_WITHDRAW_FORM', LOAD_TEMPLATE("admin_list_bonus_form", true));
} else {
// Display message "no manual withdraw possible"
// Load form
define('__BONUS_WITHDRAW_FORM', LOAD_TEMPLATE("admin_list_bonus_form", true));
} else {
// Display message "no manual withdraw possible"
- if (EXT_IS_ACTIVE("autopurge")) {
- define('__AUTOPURGE_TIMEOUT', MAKE_DATETIME(time() - getConfig('ap_inactive_since'), "2"));
+ if (EXT_IS_ACTIVE('autopurge')) {
+ define('__AUTOPURGE_TIMEOUT', generateDateTime(time() - getConfig('ap_inactive_since'), "2"));
- define('__AUTOPURGE_TIMEOUT', sprintf(getMessage('EXTENSION_PROBLEM_NOT_INSTALLED'), "autopurge"));
+ define('__AUTOPURGE_TIMEOUT', sprintf(getMessage('EXTENSION_PROBLEM_NOT_INSTALLED'), 'autopurge'));