X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_mediadata.php;h=4a897027ca5cc61a48dd31273aee7d55b698bc0e;hb=fd0bc034f4e10c4b0feb28e85dc302ddce919339;hp=d495e016da38b47a7e20eb71f3835b3c732a56e6;hpb=4e025e412935b6b221a2d183ada05b7a22f4b9e7;p=mailer.git
diff --git a/inc/modules/admin/what-config_mediadata.php b/inc/modules/admin/what-config_mediadata.php
index d495e016da..4a897027ca 100644
--- a/inc/modules/admin/what-config_mediadata.php
+++ b/inc/modules/admin/what-config_mediadata.php
@@ -1,7 +1,7 @@
time()) {
// Date is in the future!
- REQUEST_UNSET_POST('ok');
+ unsetPostRequestParameter('ok');
} else {
// Remove entries
- REQUEST_UNSET_POST(('day'));
- REQUEST_UNSET_POST(('month'));
- REQUEST_UNSET_POST(('year'));
+ unsetPostRequestParameter('day');
+ unsetPostRequestParameter('month');
+ unsetPostRequestParameter('year');
// Remember timestamp
- REQUEST_SET_POST('mt_start', $STAMP);
+ setPostRequestParameter('mt_start', $STAMP);
}
// Convert some data
- REQUEST_SET_POST('mt_stage', bigintval(REQUEST_POST('mt_stage')));
- if (REQUEST_POST('mt_stage') <= GET_TOTAL_DATA("CONFIRMED", "user_data", "userid", "status", true)) {
+ setPostRequestParameter('mt_stage', bigintval(postRequestParameter('mt_stage')));
+ if (postRequestParameter('mt_stage') <= getTotalConfirmedUser()) {
// Not enougth!
- REQUEST_UNSET_POST('ok');
- }
-}
+ unsetPostRequestParameter('ok');
+ } // END - if
+} // END - if
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save data
- ADMIN_SAVE_SETTINGS_POST();
+ adminSaveSettingsFromPostData();
} else {
// Start of this exchange
if (getConfig('mt_start') > 0) {
// Only show start
- define('__MT_START', "".MAKE_DATETIME(getConfig('mt_start'), "3")."");
+ $content['mt_start'] = '' . generateDateTime(getConfig('mt_start'), 3) . '';
} else {
// Make start editable
- define('__MT_START',
- ADD_SELECTION("day" , date("d", time())).
- ADD_SELECTION("month", date("m", time())).
- ADD_SELECTION("year", -1)
- );
+ $content['mt_start'] =
+ addSelectionBox('day' , getDay()).
+ addSelectionBox('month', getMonth()).
+ addSelectionBox('year', -1)
+ ;
}
- // Next stage of this MT
- define('__MT_STAGE', getConfig('mt_stage'));
-
// Load template
- LOAD_TEMPLATE("admin_config_mediadata");
+ loadTemplate('admin_config_mediadata', false, $content);
}
//