$result_normal = SQL_QUERY($sql, __FILE__, __LINE__);
// Set offset an current page to default values
-if (!isGetRequestElementSet('page')) setRequestGetElement('page', '1');
+if (!isGetRequestElementSet('page')) setRequestGetElement('page', 1);
if (!isGetRequestElementSet('offset')) {
if (isConfigEntrySet('mails_page')) {
$content['sender_link'] = generateUserProfileLink($pool['sender']);
$content['payment'] = getPaymentTitlePrice($pool['payment_id']);
$content['category'] = getCategory($pool['cat_id']);
- $content['receivers'] = str_replace(';', ", ", $pool['receivers']);
+ $content['receivers'] = convertReceivers($pool['receivers']);
$content['type'] = translatePoolType($pool['data_type']);
$content['frametester'] = generateFrametesterUrl($pool['url']);
- $content['timestamp'] = generateDateTime($pool['timestamp'], '0');
+ $content['timestamp'] = generateDateTime($pool['timestamp'], 0);
// Load row template
$OUT .= loadTemplate('admin_list_emails_row', true, $content);
// Add navigation (with change box and 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;
$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_bonus_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;