<?php
/************************************************************************
- * MXChange v0.2.1 Start: 09/28/2003 *
- * =============== Last change: 10/29/2004 *
+ * Mailer v0.2.1-FINAL Start: 09/28/2003 *
+ * =================== Last change: 10/29/2004 *
* *
* -------------------------------------------------------------------- *
* File : what-email_details.php *
$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'))) {
$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;
$pool['unconfirmed'] = $pool['sent_email'] - $pool['clicks'];
if ($pool['unconfirmed'] > 0) {
// Add link to list_unconfirmed what-file
- $pool['unconfirmed'] = "<strong><a href=\"{?URL?}/modules.php?module=admin&what=list_unconfirmed&mid=".$pool['id']."\">".$pool['unconfirmed']."</a></strong>";
+ $pool['unconfirmed'] = "<strong><a href=\"{%url=modules.php?module=admin&what=list_unconfirmed&mid=" . $pool['id'] . "%}\">" . $pool['unconfirmed'] . "</a></strong>";
} elseif ($pool['unconfirmed'] < 0) {
// Sometimes rarely displayed minus values will be "fixed" to zero
$pool['unconfirmed'] = '0';
// Add link?
if ($bonus['unconfirmed'] > 0) {
// Add link to list_unconfirmed what-file
- $bonus['unconfirmed'] = "<strong><a href=\"{?URL?}/modules.php?module=admin&what=list_unconfirmed&bid=".$bonus['id']."\">".$bonus['unconfirmed']."</a></strong>";
+ $bonus['unconfirmed'] = "<strong><a href=\"{%url=modules.php?module=admin&what=list_unconfirmed&bid=" . $bonus['id'] . "%}\">" . $bonus['unconfirmed'] . "</a></strong>";
} // END - if
// Prepare content