* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
// Is the extension 'country' installed?
if (isExtensionActive('country')) {
// Add country code
- $MORE .= ', `country_code`';
+ $MORE .= ',`country_code`';
} else {
// Add direct value
- $MORE .= ', `country`';
+ $MORE .= ',`country`';
}
// Init unset data
// Start a new one
$whereStatement = sprintf(" WHERE `status`='%s'", SQL_ESCAPE(secureString(strtoupper(getRequestElement('status')))));
}
- } elseif (isGetRequestElementSet('mode')) {
+ } elseif (isGetRequestElementSet('do')) {
// Choose what we need to list
- switch (getRequestElement('mode')) {
+ switch (getRequestElement('do')) {
case 'norefs': // Users w/o refs
if (!empty($whereStatement)) {
// Add AND statement
}
break;
- case 'random_refid': // Users available for random referal id
+ case 'random_refid': // Users available for random referral id
if (!empty($whereStatement)) {
// Add AND statement
$whereStatement .= ' AND `rand_confirmed` >= {?user_min_confirmed?}';
break;
default: // Invalid list mode
- debug_report_bug(__FILE__, __LINE__, sprintf("Invalid list mode %s detected.", getRequestElement('mode')));
+ debug_report_bug(__FILE__, __LINE__, sprintf("Invalid do %s detected.", getRequestElement('do')));
break;
} // END - switch
} // END - if
$content['own_points'] = countSumTotalData($content['userid'], 'user_points', 'points') + countSumTotalData($content['userid'], 'user_points', 'order_points');
$content['locked_points'] = countSumTotalData($content['userid'], 'user_points', 'locked_points') + countSumTotalData($content['userid'], 'user_points', 'locked_order_points');
- // If we have at least one referal, make it clickable to referal list
+ // If we have at least one referral, make it clickable to referral list
if ($content['refs'] > 0) {
$content['refs'] = $base . '&what=list_refs&userid=' . $content['userid'] . '%}">{%pipe,translateComma=' . $content['refs'] . '%}</a>]';
} // END - if