setConfigEntry('bonus_disable_notify', postRequestParameter('bonus_disable_notify'));
} else {
// Transfer options to template
- $content['form_selection'] = addMemberSelectionBox(getBonusUserId(), false, true, true, 'bonus_userid');
+ $content['bonus_userid'] = addMemberSelectionBox(getBonusUserid(), false, true, true, 'bonus_userid');
// Initialize array for the points list
- $RANKS = explode(';', getConfig('turbo_rates'));
+ $RANKS = explode(';', getTurboRates());
// Automatically calculate bonus points for ranks 2 and 3 when not set
- if (getConfig('turbo_rates') == '') $RANKS = array(round(getConfig('turbo_bonus') / 2), round(getConfig('turbo_bonus') / 4));
+ if (getTurboRates() == '') $RANKS = array(round(getConfig('turbo_bonus') / 2), round(getConfig('turbo_bonus') / 4));
// Generate list
$OUT = '<ol start="2">';
$content['bonus_timeout_selection'] = createConfigurationTimeSelections('bonus_timeout' , 'WDh');
$content['wait_selection'] = createConfigurationTimeSelections('bonus_notify_wait', 'ms' );
- // Init Y/N selections
- foreach (array('active','login_yn','stats_yn','order_yn','ref_yn','click_yn','enable_notify','disable_notify','new_member_notify','include_own') as $entry) {
- $content[$entry . '_y'] = '';
- $content[$entry . '_n'] = '';
- $content[$entry . '_' . strtolower(getConfig('bonus_' . $entry))] = ' checked="checked"';
- } // END - foreach
-
// Load final template
loadTemplate('admin_config_bonus', false, $content);
}