- ADMIN_SAVE_SETTINGS($_POST);
-}
- else
-{
- // Prepare data for the template
- define('__POINTS_VALUE', $CONFIG['birthday_points']);
- switch ($CONFIG['birthday_active'])
- {
- case 'Y':
- define('__BIRTHDAY_ACTIVE_Y', " checked");
- define('__BIRTHDAY_ACTIVE_N', "");
- break;
-
- case 'N':
- define('__BIRTHDAY_ACTIVE_Y', "");
- define('__BIRTHDAY_ACTIVE_N', " checked");
- break;
- }
- switch ($CONFIG['birthday_mode'])
- {
- case "DIRECT":
- define('__BIRTHDAY_MODE_DIRECT', " checked");
- define('__BIRTHDAY_MODE_REF' , "");
- break;
+ adminSaveSettingsFromPostData();
+} else {
+ // Init all other template entries
+ foreach (array('active_y','active_n','mode_direct','mode_ref') as $entry) {
+ $content[$entry] = '';
+ } // END - foreach