- define('_CFG_ONLINE_TIMEOUT', CREATE_TIME_SELECTIONS(getConfig('online_timeout'), 'ip_timeout' , 'ms'));
- define('_CFG_URL_TLOCK' , CREATE_TIME_SELECTIONS(getConfig('url_tlock') , 'url_tlock' , 'WDh'));
- define('_CFG_PROFILE_LOCK' , CREATE_TIME_SELECTIONS(getConfig('profile_lock') , 'profile_lock' , 'WDh'));
- define('_CFG_PROFILE_UPDATE', CREATE_TIME_SELECTIONS(getConfig('profile_update'), 'profile_update' , 'YM'));
- define('_CFG_PROF_REUPDATE' , CREATE_TIME_SELECTIONS(getConfig('resend_profile_update') , 'resend_profile_update', 'MWD'));
-
- if (getConfig('order_multi_page') != 'Y') {
- define('_CFG_ORDER_MULTI_N', ' chkecked="checked"');
- define('_CFG_ORDER_MULTI_Y', '');
- } else {
- define('_CFG_ORDER_MULTI_N', '');
- define('_CFG_ORDER_MULTI_Y', ' chkecked="checked"');
- }
-
- if (getConfig('autosend_active') != "Y") {
- define('_CFG_AUTOSEND_ACTIVE_N', ' chkecked="checked"');
- define('_CFG_AUTOSEND_ACTIVE_Y', '');
- } else {
- define('_CFG_AUTOSEND_ACTIVE_N', '');
- define('_CFG_AUTOSEND_ACTIVE_Y', ' chkecked="checked"');
- }
-
- if (getConfig('send_prof_update') != "Y") {
- define('_CFG_SEND_UPDATE_N', ' chkecked="checked"');
- define('_CFG_SEND_UPDATE_Y', '');
- } else {
- define('_CFG_SEND_UPDATE_N', '');
- define('_CFG_SEND_UPDATE_Y', ' chkecked="checked"');
- }
-
- if (getConfig('admin_notify') != "Y") {
- define('_CFG_ADMIN_NOTIFY_N', ' chkecked="checked"');
- define('_CFG_ADMIN_NOTIFY_Y', '');
- } else {
- define('_CFG_ADMIN_NOTIFY_N', '');
- define('_CFG_ADMIN_NOTIFY_Y', ' chkecked="checked"');
- }
-
- if (getConfig('css_php') == "DIRECT") {
- define('_CFG_CSS_PHP_DIRECT', ' chkecked="checked"');
- define('_CFG_CSS_PHP_FILE', '');
- } else {
- define('_CFG_CSS_PHP_DIRECT', '');
- define('_CFG_CSS_PHP_FILE', ' chkecked="checked"');
- }
-
- if (getConfig('guest_menu') == 'Y') {
- define('_CFG_GUEST_MENU_ACTIVE', ' chkecked="checked"');
- define('_CFG_GUEST_MENU_INACTIVE', '');
- } else {
- define('_CFG_GUEST_MENU_ACTIVE', '');
- define('_CFG_GUEST_MENU_INACTIVE', ' chkecked="checked"');
- }
-
- if (getConfig('member_menu') == 'Y') {
- define('_CFG_MEMBER_MENU_ACTIVE', ' chkecked="checked"');
- define('_CFG_MEMBER_MENU_INACTIVE', '');
- } else {
- define('_CFG_MEMBER_MENU_ACTIVE', '');
- define('_CFG_MEMBER_MENU_INACTIVE', ' chkecked="checked"');
- }
-
- if (getConfig('youre_here') == 'Y') {
- define('_CFG_YOURE_HERE_ACTIVE', ' chkecked="checked"');
- define('_CFG_YOURE_HERE_INACTIVE', '');
- } else {
- define('_CFG_YOURE_HERE_ACTIVE', '');
- define('_CFG_YOURE_HERE_INACTIVE', ' chkecked="checked"');
- }
-
- if (getConfig('show_timings') == 'Y') {
- define('_CFG_SHOW_TIMINGS_Y', ' chkecked="checked"');
- define('_CFG_SHOW_TIMINGS_N', '');
- } else {
- define('_CFG_SHOW_TIMINGS_Y', '');
- define('_CFG_SHOW_TIMINGS_N', ' chkecked="checked"');
- }
-
- if (getConfig('show_points_unconfirmed') == 'Y') {
- define('_CFG_SHOW_POINTS_UNCONFIRMED_Y', ' chkecked="checked"');
- define('_CFG_SHOW_POINTS_UNCONFIRMED_N', '');
- } else {
- define('_CFG_SHOW_POINTS_UNCONFIRMED_Y', '');
- define('_CFG_SHOW_POINTS_UNCONFIRMED_N', ' chkecked="checked"');
- }
-
- if (getConfig('mailid_error_redirect') == 'INDEX') {
- define('_CFG_MAILID_REDIRECT_INDEX', ' chkecked="checked"');
- define('_CFG_MAILID_REDIRECT_REJECT', '');
- } else {
- define('_CFG_MAILID_REDIRECT_INDEX', '');
- define('_CFG_MAILID_REDIRECT_REJECT', ' chkecked="checked"');
- }
+ $content['online_timeout'] = createTimeSelections(getConfig('online_timeout'), 'ip_timeout' , 'ms');
+ $content['url_tlock'] = createTimeSelections(getConfig('url_tlock') , 'url_tlock' , 'WDh');
+ $content['profile_lock'] = createTimeSelections(getConfig('profile_lock') , 'profile_lock' , 'WDh');
+ $content['profile_update'] = createTimeSelections(getConfig('profile_update'), 'profile_update' , 'YM');
+ $content['profile_reupdate'] = createTimeSelections(getConfig('resend_profile_update') , 'resend_profile_update', 'MWD');
+
+ // Prepare more Y/N selections
+ foreach(array('show_points_unconfirmed','show_timings','youre_here','member_menu','guest_menu','order_multi_page','autosend_active','send_prof_update','admin_notify','display_debug_sqls') as $entry) {
+ $content[$entry . '_y'] = '';
+ $content[$entry . '_n'] = '';
+ $content[$entry . '_' . strtolower(getConfig($entry))] = ' checked="checked"';
+ } // END - foreach
+
+ // Prepare more
+ foreach (array('css_php_direct','css_php_file','css_php_inline','mailid_error_redirect_index','mailid_error_redirect_reject') as $entry) {
+ $content[$entry] = '';
+ } // END - foreach
+
+ // Set selections
+ foreach (array('css_php','mailid_error_redirect') as $entry) {
+ $content[$entry . '_' . strtolower(getConfig($entry))] = ' checked="checked"';
+ } // END - foreach