X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_mediadata.php;h=785ab2c30effe1cc4c7f25a93c1d80fe9086264d;hb=1f98151ba359a81bb54a1c4c8010b24fa4c9dcf0;hp=5af3aa5d29ac3cda617828bbde31cad6f63cffd9;hpb=b73c135350d7ed266c0cac680105707139bd892d;p=mailer.git
diff --git a/inc/modules/admin/what-config_mediadata.php b/inc/modules/admin/what-config_mediadata.php
index 5af3aa5d29..785ab2c30e 100644
--- a/inc/modules/admin/what-config_mediadata.php
+++ b/inc/modules/admin/what-config_mediadata.php
@@ -10,7 +10,12 @@
* -------------------------------------------------------------------- *
* Kurzbeschreibung : *
* -------------------------------------------------------------------- *
- * *
+ * $Revision:: $ *
+ * $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 - 2008 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
@@ -32,58 +37,47 @@
************************************************************************/
// Some security stuff...
-if ((!defined('__SECURITY')) || (!is_admin())) {
+if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
// Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
-if (isset($_POST['ok']))
-{
+if (IS_FORM_SENT()) {
// Test timestamp
- $STAMP = mktime(0, 0, 0, bigintval($_POST['month']), bigintval($_POST['day']), bigintval($_POST['year']));
- if ($STAMP > time())
- {
+ $STAMP = mktime(0, 0, 0, bigintval(REQUEST_POST('month')), bigintval(REQUEST_POST('day')), bigintval(REQUEST_POST('year')));
+ if ($STAMP > time()) {
// Date is in the future!
- unset($_POST['ok']);
- }
- else
- {
+ REQUEST_UNSET_POST('ok');
+ } else {
// Remove entries
- unset($_POST['day']);
- unset($_POST['month']);
- unset($_POST['year']);
+ REQUEST_UNSET_POST(('day'));
+ REQUEST_UNSET_POST(('month'));
+ REQUEST_UNSET_POST(('year'));
// Remember timestamp
- $_POST['mt_start'] = $STAMP;
+ REQUEST_SET_POST('mt_start', $STAMP);
}
// Convert some data
- $_POST['mt_stage'] = bigintval($_POST['mt_stage']);
- if ($_POST['mt_stage'] <= GET_TOTAL_DATA("CONFIRMED", "user_data", "userid", "status", true))
- {
+ REQUEST_SET_POST('mt_stage', bigintval(REQUEST_POST('mt_stage')));
+ if (REQUEST_POST('mt_stage') <= GET_TOTAL_DATA("CONFIRMED", "user_data", "userid", "status", true)) {
// Not enougth!
- unset($_POST['ok']);
+ REQUEST_UNSET_POST('ok');
}
}
-if (isset($_POST['ok']))
-{
+if (IS_FORM_SENT()) {
// Save data
- ADMIN_SAVE_SETTINGS($_POST);
-}
- else
-{
+ ADMIN_SAVE_SETTINGS_POST();
+} else {
// Start of this exchange
- if ($_CONFIG['mt_start'] > 0)
- {
+ if (getConfig('mt_start') > 0) {
// Only show start
- define('__MT_START', "".MAKE_DATETIME($_CONFIG['mt_start'], "3")."");
- }
- else
- {
+ define('__MT_START', "".MAKE_DATETIME(getConfig('mt_start'), "3")."");
+ } else {
// Make start editable
define('__MT_START',
ADD_SELECTION("day" , date("d", time())).
@@ -93,7 +87,7 @@ if (isset($_POST['ok']))
}
// Next stage of this MT
- define('__MT_STAGE', $_CONFIG['mt_stage']);
+ define('__MT_STAGE', getConfig('mt_stage'));
// Load template
LOAD_TEMPLATE("admin_config_mediadata");