<?php
/************************************************************************
- * MXChange v0.2.1 Start: 10/07/2008 *
- * =============== Last change: 10/07/2008 *
+ * Mailer v0.2.1-FINAL Start: 10/07/2008 *
+ * =================== Last change: 10/07/2008 *
* *
* -------------------------------------------------------------------- *
* File : what-list_notifications.php *
$result_max = false;
// Set offset an current page to default values
-if (!isGetRequestElementSet('page')) setRequestGetElement('page' , '1');
-if (!isGetRequestElementSet('offset')) setRequestGetElement('offset', getConfig('mails_page'));
+if (!isGetRequestParameterSet('page')) setGetRequestParameter('page' , 1);
+if (!isGetRequestParameterSet('offset')) setGetRequestParameter('offset', getConfig('mails_page'));
if (isExtensionActive('bonus')) {
// Bonus mails sent by you
$result_max = SQL_QUERY($SQL2, __FILE__, __LINE__);
} else {
// Bonus extension required!
- loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_EXTENSION_PROBLEM_EXT_NOT_INSTALLED'), 'bonus'));
+ loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_EXTENSION_PROBLEM_EXT_NOT_INSTALLED', 'bonus'));
}
// 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'));
// Add limitation
if (!empty($SQL2)) $SQL2 .= $add;
// 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
$content = $bonus;
$content['time'] = createFancyTime($content['time']);
$content['category'] = getCategory($content['cat_id']);
- $content['receivers'] = str_replace(';', ", ", $content['receivers']);
+ $content['receivers'] = convertReceivers($content['receivers']);
$content['type'] = translatePoolType($content['data_type']);
$content['frametester'] = generateFrametesterUrl($content['url']);
- $content['timestamp'] = generateDateTime($content['timestamp'], '0');
+ $content['timestamp'] = generateDateTime($content['timestamp'], 0);
// Load row template
$OUT .= loadTemplate('admin_list_notify_emails_row', true, $content);
// Add navigation (without change box but with colspan=3)
$content['nav'] = '';
- if ($PAGES > 1) $content['nav'] = addEmailNavigation($PAGES, getConfig('mails_page'), false, '3', true);
+ if ($PAGES > 1) $content['nav'] = addEmailNavigation($PAGES, getConfig('mails_page'), false, 3, true);
// Prepare content
$content['rows'] = $OUT;