define('__LIST_UNCON_TITLE', getMessage('LIST_UNCONFIRMED_MEMBER_LINKS'));
// SQL query for mail data
- $SQL = "SELECT DISTINCT s.id, p.sender, p.subject, p.text, p.url, p.timestamp, s.max_rec FROM `{!_MYSQL_PREFIX!}_pool` AS p
+ $sql = "SELECT DISTINCT s.id, p.sender, p.subject, p.text, p.url, p.timestamp, s.max_rec FROM `{!_MYSQL_PREFIX!}_pool` AS p
LEFT JOIN `{!_MYSQL_PREFIX!}_user_stats` AS s
ON p.id=s.pool_id
WHERE p.id='".REQUEST_GET('mid')."' LIMIT 1";
define('__LIST_UNCON_TITLE', getMessage('LIST_UNCONFIRMED_BONUS_LINKS'));
// SQL query for mail data (both ids are required for compatiblity to above normal mail
- $SQL = "SELECT id, id, subject, text, url, timestamp, mails_sent FROM `{!_MYSQL_PREFIX!}_bonus` WHERE id='".REQUEST_GET('bid')."' LIMIT 1";
+ $sql = "SELECT id, id, subject, text, url, timestamp, mails_sent FROM `{!_MYSQL_PREFIX!}_bonus` WHERE id='".REQUEST_GET('bid')."' LIMIT 1";
// Column, type and ID for member's mail
$col = "bonus_id"; $type = "BONUS"; $ID = REQUEST_GET('bid');
// Shall I display links or not?
if ($listed === true) {
// Load mail data
- $result = SQL_QUERY($SQL, __FILE__, __LINE__);
+ $result = SQL_QUERY($sql, __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
// Mail order / bonus mail found!
list($stats_id, $sender, $subj, $text, $url, $stamp, $max) = SQL_FETCHROW($result);