X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_mediadata.php;h=8cc45de27c5dec5de2590a3a8a79961b00a6737f;hb=12effdb00f104773905152bfb2950496c2efaec4;hp=cf89028f8d9f583d5431773c7a68aefde95e0b9d;hpb=21a24662ddc70624c27c607e3904aab23e893898;p=mailer.git
diff --git a/inc/modules/admin/what-config_mediadata.php b/inc/modules/admin/what-config_mediadata.php
index cf89028f8d..8cc45de27c 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);
}
//