- case "register":
- define('__DEF_RT_INDEX' , "");
- define('__DEF_RT_REGISTER', " selected=\"selected\"");
- 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;
- } // 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