X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_mediadata.php;h=8cc45de27c5dec5de2590a3a8a79961b00a6737f;hb=12effdb00f104773905152bfb2950496c2efaec4;hp=849e8792d9355479816b2061c46ad9fa9e12ef80;hpb=1ebf518b9552f71ee95de6f4b80e6de3a27716d1;p=mailer.git
diff --git a/inc/modules/admin/what-config_mediadata.php b/inc/modules/admin/what-config_mediadata.php
index 849e8792d9..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!
- unsetPostRequestElement('ok');
+ unsetPostRequestParameter('ok');
} else {
// Remove entries
- unsetPostRequestElement('day');
- unsetPostRequestElement('month');
- unsetPostRequestElement('year');
+ unsetPostRequestParameter('day');
+ unsetPostRequestParameter('month');
+ unsetPostRequestParameter('year');
// Remember timestamp
- setRequestPostElement('mt_start', $STAMP);
+ setPostRequestParameter('mt_start', $STAMP);
}
// Convert some data
- setRequestPostElement('mt_stage', bigintval(postRequestElement('mt_stage')));
- if (postRequestElement('mt_stage') <= countSumTotalData('CONFIRMED', 'user_data', 'userid', 'status', true)) {
+ setPostRequestParameter('mt_stage', bigintval(postRequestParameter('mt_stage')));
+ if (postRequestParameter('mt_stage') <= getTotalConfirmedUser()) {
// Not enougth!
- unsetPostRequestElement('ok');
- }
-}
+ unsetPostRequestParameter('ok');
+ } // END - if
+} // END - if
if (isFormSent()) {
// Save data
@@ -75,12 +74,12 @@ if (isFormSent()) {
// Start of this exchange
if (getConfig('mt_start') > 0) {
// Only show start
- $content['mt_start'] = '' . generateDateTime(getConfig('mt_start'), '3') . '';
+ $content['mt_start'] = '' . generateDateTime(getConfig('mt_start'), 3) . '';
} else {
// Make start editable
$content['mt_start'] =
- addSelectionBox('day' , date('d', time())).
- addSelectionBox('month', date('m', time())).
+ addSelectionBox('day' , getDay()).
+ addSelectionBox('month', getMonth()).
addSelectionBox('year', -1)
;
}