* -------------------------------------------------------------------- *
* Short description : Unconfirmed mails *
* -------------------------------------------------------------------- *
- * Kurzbeschreibung : Unbestätigte Mails *
+ * Kurzbeschreibung : Unbestaetigte Mails *
* -------------------------------------------------------------------- *
* $Revision:: $ *
* $Date:: $ *
if ((isGetRequestParameterSet('bonusid')) && (isExtensionActive('bonus'))) {
// Display bonus mail by loading it's full data
$result_data = SQL_QUERY_ESC("SELECT
- `id`, `subject`, `timestamp`, `cat_id`, `points`, `text`, `is_notify`, `data_type`, `time`, `url`
+ `id`, `subject`, `timestamp`, `cat_id` AS `category`, `points`, `text`, `is_notify`, `data_type`, `time`, `url`
FROM
`{?_MYSQL_PREFIX?}_bonus`
WHERE
// Translate some data
$content['timestamp'] = generateDateTime($content['timestamp'], 2);
- $content['category'] = getCategory($content['cat_id']);
- $content['points'] = translateComma($content['points']);
- $content['is_notify'] = translateYesNo($content['is_notify']);
- $content['sender'] = getMessage('USERNAME_ADMIN_SHORT');
- $content['time'] = createFancyTime($content['time']);
$content['userid'] = getMemberId();
$content['user_status'] = getMaskedMessage('MEMBER_MAIL_BONUS_CONFIRMED_UNKNOWN', $content['id']);
} elseif (isGetRequestParameterSet(('mailid'))) {
// Display regular member mail by loading its full data
$result_data = SQL_QUERY_ESC("SELECT
- s.id, s.subject, p.text, s.timestamp_ordered AS `timestamp`, s.cat_id, pay.price AS points, p.sender, pay.time, p.data_type
+ s.id, s.subject, p.text, s.timestamp_ordered AS `timestamp`, s.cat_id AS `category`, pay.price AS points, p.sender, pay.time, p.data_type
FROM
`{?_MYSQL_PREFIX?}_user_stats` AS s
LEFT JOIN
$content = SQL_FETCHARRAY($result_data);
// Translate some data
- $content['timestamp'] = generateDateTime($content['timestamp'], 2);
- $content['category'] = getCategory($content['cat_id']);
- $content['points'] = translateComma($content['points']);
- $content['time'] = createFancyTime($content['time']);
- $content['userid'] = getMemberId();
+ $content['timestamp'] = generateDateTime($content['timestamp'], 2);
+ $content['userid'] = getMemberId();
$content['user_status'] = getMaskedMessage('MEMBER_MAIL_NORMAL_CONFIRMED_UNKNOWN', $content['id']);
// Is ext-user installed?
'subject' => $subject,
'sender' => $sender,
'timestamp' => generateDateTime($timestamp, 2),
- 'cat' => getCategory($cat),
- 'points' => translateComma($pay),
+ 'points' => $pay,
);
// Load row template
SQL_FREERESULT($result);
// Remember total points
- $content['total_points'] = translateComma($sum);
+ $content['total_points'] = $sum;
// Remember all generated rows in constant for the template
$content['rows'] = $OUT;