]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_other.php
Code style changed, ext-user continued:
[mailer.git] / inc / modules / admin / what-config_other.php
index c17d617305e8e647a504ec3ec3b6456bfab920be..30509c2edf6fe755e4810ff9a2a9a7b98f30cb81 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 10/11/2003 *
- * ===============                              Last change: 09/21/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 10/11/2003 *
+ * ===================                          Last change: 09/21/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-config_other.php                            *
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * For more information visit: http://www.mxchange.org                  *
+ * 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 *
  * it under the terms of the GNU General Public License as published by *
@@ -42,22 +41,16 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
-
-if (!isExtensionActive('other')) {
-       // Missing extension!
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('other'));
-       return;
-} // END - if
+addYouAreHereLink('admin', __FILE__);
 
 // Stop saving data if one input field is !isset
 if (isFormSent()) {
        // Calculate stamps and set calculated stamps
-       setRequestPostElement('online_timeout'       , createTimestampFromSelections('ip_timeout'           , postRequestArray()));
-       setRequestPostElement('url_tlock'            , createTimestampFromSelections('url_tlock'            , postRequestArray()));
-       setRequestPostElement('profile_lock'         , createTimestampFromSelections('profile_lock'         , postRequestArray()));
-       setRequestPostElement('profile_update'       , createTimestampFromSelections('profile_update'       , postRequestArray()));
-       setRequestPostElement('resend_profile_update', createTimestampFromSelections('resend_profile_update', postRequestArray()));
+       setPostRequestElement('online_timeout'       , createEpocheTimeFromSelections('online_timeout'       , postRequestArray()));
+       setPostRequestElement('url_tlock'            , createEpocheTimeFromSelections('url_tlock'            , postRequestArray()));
+       setPostRequestElement('profile_lock'         , createEpocheTimeFromSelections('profile_lock'         , postRequestArray()));
+       setPostRequestElement('profile_update'       , createEpocheTimeFromSelections('profile_update'       , postRequestArray()));
+       setPostRequestElement('resend_profile_update', createEpocheTimeFromSelections('resend_profile_update', postRequestArray()));
 
        // Online-Timeout shall be > 0 or your database will crow and crow and crow...
        if (!isPostRequestElementSet('online_timeout'))        { unsetPostRequestElement('ok'); }
@@ -72,25 +65,18 @@ if (isFormSent()) {
        if (!isPostRequestElementSet('max_send'))              { unsetPostRequestElement('ok'); }
        if (!isPostRequestElementSet('code_length'))           { unsetPostRequestElement('ok'); }
        if (!isPostRequestElementSet('reject_url'))            { unsetPostRequestElement('ok'); }
-}
+} // END - if
 
 if (isFormSent()) {
        // Update stamps directly
        adminSaveSettingsFromPostData();
 } else {
        // Time selection boxes
-       $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
+       $content['online_timeout']   = createConfigurationTimeSelections('online_timeout'       , 'ms');
+       $content['url_tlock']        = createConfigurationTimeSelections('url_tlock'            , 'WDh');
+       $content['profile_lock']     = createConfigurationTimeSelections('profile_lock'         , 'WDh');
+       $content['profile_update']   = createConfigurationTimeSelections('profile_update'       , 'YM');
+       $content['profile_reupdate'] = createConfigurationTimeSelections('resend_profile_update', 'MWD');
 
        // Prepare more
        foreach (array('css_php_direct','css_php_file','css_php_inline','mailid_error_redirect_index','mailid_error_redirect_reject') as $entry) {
@@ -110,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]