X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_mediadata.php;h=8cc45de27c5dec5de2590a3a8a79961b00a6737f;hb=80769d81cc67b9213ea436e07365982fb3e7600d;hp=7b1ce5e2efd16d709e04aa3464fef5bb48ab4a7f;hpb=5298a98f56b4d62bf6a463d5b8a2b63fb0e453c2;p=mailer.git
diff --git a/inc/modules/admin/what-config_mediadata.php b/inc/modules/admin/what-config_mediadata.php
index 7b1ce5e2ef..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 (isFormSent()) {
// Save data
- ADMIN_SAVE_SETTINGS_POST();
+ adminSaveSettingsFromPostData();
} else {
// Start of this exchange
if (getConfig('mt_start') > 0) {
// Only show start
- define('__MT_START', "".generateDateTime(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);
}
//