- default: // Invalid config!
- DEBUG_LOG(__FILE__, __LINE__, sprintf("Invalid refid_target %s detected.", getConfig('refid_target')));
- break;
- } // END - switch
-
- switch (getConfig('select_user_zero_refid')) {
- case 'Y':
- define('__RAND_REFID_Y', ' selected="selected"');
- define('__RAND_REFID_N', '');
- break;
-
- case 'N':
- define('__RAND_REFID_Y', '');
- define('__RAND_REFID_N', ' selected="selected"');
- break;
-
- default: // Invalid config!
- DEBUG_LOG(__FILE__, __LINE__, sprintf("Invalid select_user_zero_refid %s detected.", getConfig('select_user_zero_refid')));
- define('__RAND_REFID_Y', '');
- define('__RAND_REFID_N', '');
- break;
- } // END - switch
+ // Prepare contants for the template
+ foreach (array('refid_target_index','refid_target_register','select_user_zero_refid_y','select_user_zero_refid_n') as $entry) {
+ $content[$entry] = '';
+ } // END - foreach