X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-email_details.php;h=8de0c034b8bfbf773d4c9e815d2614b90cc9cd06;hb=434643a428ccc9d78695347eef5a456342e9f114;hp=8a27a5bfb92d445ed855faab5254dae0b90b32cc;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60;p=mailer.git
diff --git a/inc/modules/admin/what-email_details.php b/inc/modules/admin/what-email_details.php
index 8a27a5bfb9..8de0c034b8 100644
--- a/inc/modules/admin/what-email_details.php
+++ b/inc/modules/admin/what-email_details.php
@@ -64,22 +64,22 @@ ORDER BY timestamp DESC";
$WHO = getMessage('_ALL');
$SQL2 = '';
-if (isGetRequestElementSet(('mid'))) {
+if (isGetRequestParameterSet(('mid'))) {
// Only a specific mail shall be displayed
// 0 1 2 3 4 5 6 7 8 9 10
$sql = "SELECT id, sender, subject, text, receivers, payment_id, data_type, timestamp, url, target_send, cat_id
FROM `{?_MYSQL_PREFIX?}_pool`
- WHERE `id`='".bigintval(getRequestElement('mid'))."'
+ WHERE `id`='".bigintval(getRequestParameter('mid'))."'
LIMIT 1";
- $WHO = getMessage('MAIL_ID').": ".getRequestElement('mid');
-} elseif (isGetRequestElementSet('userid')) {
+ $WHO = getMessage('MAIL_ID').": ".getRequestParameter('mid');
+} elseif (isGetRequestParameterSet('userid')) {
// All mails by a specific member shall be displayed
// 0 1 2 3 4 5 6 7 8 9 10
$sql = "SELECT id, sender, subject, text, receivers, payment_id, data_type, timestamp, url, target_send, cat_id
FROM `{?_MYSQL_PREFIX?}_pool`
-WHERE sender='".bigintval(getRequestElement('userid'))."'
+WHERE sender='".bigintval(getRequestParameter('userid'))."'
ORDER by timestamp DESC";
- $WHO = getMessage('USER_ID').": ".getRequestElement('userid');
+ $WHO = getMessage('USER_ID').": ".getRequestParameter('userid');
}
if ((isExtensionActive('bonus')) && ($WHO == getMessage('_ALL'))) {
@@ -98,22 +98,22 @@ ORDER BY timestamp DESC";
$result_normal = SQL_QUERY($sql, __FILE__, __LINE__);
// Set offset an current page to default values
-if (!isGetRequestElementSet('page')) setRequestGetElement('page', 1);
+if (!isGetRequestParameterSet('page')) setGetRequestParameter('page', 1);
-if (!isGetRequestElementSet('offset')) {
+if (!isGetRequestParameterSet('offset')) {
if (isConfigEntrySet('mails_page')) {
// Set config entry
- setRequestGetElement('offset', getConfig('mails_page'));
+ setGetRequestParameter('offset', getConfig('mails_page'));
} else {
// Set default one
- setRequestGetElement('offset', 10);
+ setGetRequestParameter('offset', 10);
}
} // END - if
// Add limitation to SQL string
-if (!isGetRequestElementSet(('mid'))) {
+if (!isGetRequestParameterSet(('mid'))) {
// Create limitation line
- $add = " LIMIT ".(bigintval(getRequestElement('offset')) * bigintval(getRequestElement('page')) - bigintval(getRequestElement('offset'))).", ".bigintval(getRequestElement('offset'));
+ $add = " LIMIT ".(bigintval(getRequestParameter('offset')) * bigintval(getRequestParameter('page')) - bigintval(getRequestParameter('offset'))).", ".bigintval(getRequestParameter('offset'));
// For normal mails
$sql .= $add;
@@ -152,7 +152,7 @@ if (SQL_NUMROWS($result_list) > 0) {
$pool['unconfirmed'] = $pool['sent_email'] - $pool['clicks'];
if ($pool['unconfirmed'] > 0) {
// Add link to list_unconfirmed what-file
- $pool['unconfirmed'] = "".$pool['unconfirmed']."";
+ $pool['unconfirmed'] = "" . $pool['unconfirmed'] . "";
} elseif ($pool['unconfirmed'] < 0) {
// Sometimes rarely displayed minus values will be "fixed" to zero
$pool['unconfirmed'] = '0';
@@ -208,7 +208,7 @@ if ((isExtensionActive('bonus')) && ($WHO == getMessage('_ALL'))) {
// Add link?
if ($bonus['unconfirmed'] > 0) {
// Add link to list_unconfirmed what-file
- $bonus['unconfirmed'] = "".$bonus['unconfirmed']."";
+ $bonus['unconfirmed'] = "" . $bonus['unconfirmed'] . "";
} // END - if
// Prepare content