]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_mediadata.php
Code style changed, ext-user continued:
[mailer.git] / inc / modules / admin / what-config_mediadata.php
index a5587ebf90704a195d8864a697214887da992ea2..aba503e0c9ec1cb5ad1e3bfccc17c6757a7d2a54 100644 (file)
  * $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 *
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
-}
+} // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
 
 if (isFormSent()) {
        // Test timestamp
@@ -57,36 +56,36 @@ if (isFormSent()) {
                unsetPostRequestElement('year');
 
                // Remember timestamp
-               setRequestPostElement('mt_start', $STAMP);
+               setPostRequestElement('mt_start', $STAMP);
        }
 
        // Convert some data
-       setRequestPostElement('mt_stage', bigintval(postRequestElement('mt_stage')));
-       if (postRequestElement('mt_stage') <= countSumTotalData('CONFIRMED', 'user_data', 'userid', 'status', true)) {
+       setPostRequestElement('mt_stage', bigintval(postRequestElement('mt_stage')));
+       if (postRequestElement('mt_stage') <= getTotalConfirmedUser()) {
                // Not enougth!
                unsetPostRequestElement('ok');
-       }
-}
+       } // END - if
+} // END - if
 
 if (isFormSent()) {
        // Save data
        adminSaveSettingsFromPostData();
 } else {
        // Start of this exchange
-       if (getConfig('mt_start') > 0) {
+       if (getMtStart() > 0) {
                // Only show start
-               $content['mt_start'] = '<strong>' . generateDateTime(getConfig('mt_start'), 3) . '</strong>';
+               $content['mt_start'] = '<strong>' . generateDateTime(getMtStart(), 3) . '</strong>';
        } else {
                // Make start editable
                $content['mt_start'] =
-                       addSelectionBox('day'  , date('d', time())).
-                       addSelectionBox('month', date('m', time())).
+                       addSelectionBox('day'  , getDay()).
+                       addSelectionBox('month', getMonth()).
                        addSelectionBox('year',  -1)
                ;
        }
 
        // Load template
-       loadTemplate('admin_config_mediadata', false, $content);
+       loadTemplate('admin_config_mediadata', FALSE, $content);
 }
 
 //