define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "496");
+define('CURR_SVN_REVISION', "497");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
// Okay, has the user entered some values?
if (isset($_POST['percents'])) {
// Validate percents
- if ((($_POST['percents'] >= $_CONFIG['refback_min_percents']) || ($_POST['percents'] == 0)) && ($_POST['percents'] <= $_CONFIG['refback_max_percents'])) {
+ if ((($_POST['percents'] >= $_CONFIG['refback_min_perc']) || ($_POST['percents'] == 0)) && ($_POST['percents'] <= $_CONFIG['refback_max_perc'])) {
// Change ref-back for this direct id
$status = REFBACK_CHANGE_MEMBER_PERCENTS($_POST['id'], $_POST['percents']);
}
} else {
// Percents out-of-bounds ;-)
- LOAD_TEMPLATE("admin_settings_saved", false, sprintf(MEMBER_REFBACK_ERROR_OUT_OF_BOUNDS, $_CONFIG['refback_min_percents'], $_CONFIG['refback_max_percents']));
+ LOAD_TEMPLATE("admin_settings_saved", false, sprintf(MEMBER_REFBACK_ERROR_OUT_OF_BOUNDS, $_CONFIG['refback_min_perc'], $_CONFIG['refback_max_perc']));
}
// Insert line
// Translate comma
$content['refback'] = TRANSLATE_COMMA($content['refback']);
- $content['max'] = $_CONFIG['refback_max_percents'];
- $content['min'] = $_CONFIG['refback_min_percents'];
+ $content['min'] = $_CONFIG['refback_min_perc'];
+ $content['max'] = $_CONFIG['refback_max_perc'];
// Load form for editing
LOAD_TEMPLATE("member_refback_edit", false, $content);