]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_other.php
AJAX installation is 'basicly finished' :) Plus I threw in a small christmas present...
[mailer.git] / inc / modules / admin / what-config_other.php
index 2715e1fb2c8eb9d701b0e81686a0dcf598bef390..78688741e514d2f5ddacad82d22127c889e4e4e8 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 // Stop saving data if one input field is !isset
-if (isFormSent()) {
+if (isFormSent('save_config')) {
        // Calculate stamps and set calculated stamps
        setPostRequestElement('online_timeout'       , createEpocheTimeFromSelections('online_timeout'       , postRequestArray()));
        setPostRequestElement('url_tlock'            , createEpocheTimeFromSelections('url_tlock'            , postRequestArray()));
@@ -67,7 +67,7 @@ if (isFormSent()) {
        if (!isPostRequestElementSet('reject_url'))            { unsetPostRequestElement('ok'); }
 } // END - if
 
-if (isFormSent()) {
+if (isFormSent('save_config')) {
        // Update stamps directly
        adminSaveSettingsFromPostData();
 } else {
@@ -78,13 +78,6 @@ if (isFormSent()) {
        $content['profile_update']   = createConfigurationTimeSelections('profile_update'       , 'YM');
        $content['profile_reupdate'] = createConfigurationTimeSelections('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','stats_enabled') 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] = '';
@@ -103,7 +96,7 @@ if (isFormSent()) {
        $content['comma_def_' . getConfig('max_comma')] = ' selected="selected"';
 
        // Load template
-       loadTemplate('admin_config_other', false, $content);
+       loadTemplate('admin_config_other', FALSE, $content);
 }
 
 // [EOF]