]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_mediadata.php
Introduced padLeftZero()
[mailer.git] / inc / modules / admin / what-config_mediadata.php
index 132897acc43b233d222a9d836e817abcab28fa98..5a94024dd3be2ac6fefca8ad06eec2fbfbbe9383 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 *
@@ -43,7 +43,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
-if (isFormSent()) {
+if (isFormSent('save_config')) {
        // Test timestamp
        $STAMP = mktime(0, 0, 0, bigintval(postRequestElement('month')), bigintval(postRequestElement('day')), bigintval(postRequestElement('year')));
        if ($STAMP > time()) {
@@ -67,14 +67,14 @@ if (isFormSent()) {
        } // END - if
 } // END - if
 
-if (isFormSent()) {
+if (isFormSent('save_config')) {
        // 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'] =
@@ -85,7 +85,7 @@ if (isFormSent()) {
        }
 
        // Load template
-       loadTemplate('admin_config_mediadata', false, $content);
+       loadTemplate('admin_config_mediadata', FALSE, $content);
 }
 
 //