// Tell everyone we are in this module
$GLOBALS['module'] = 'mailid';
-$GLOBALS['output_mode'] = 1;
+$GLOBALS['output_mode'] = -1;
$errorCode = '';
// Load the required file(s)
case 'NORMAL':
// Is the stats ID valid?
$result = SQL_QUERY_ESC("SELECT pool_id, url, subject FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `id`=%s LIMIT 1",
- array($url_mid), __FILE__, __LINE__);
+ array($url_mid), __FILE__, __LINE__);
break;
case 'BONUS':
// Bonus-Mails
$result = SQL_QUERY_ESC("SELECT id, url, subject FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
- array($url_bid), __FILE__, __LINE__);
+ array($url_bid), __FILE__, __LINE__);
break;
default: // Invalid mail type
if ($status == 'CONFIRMED') {
// User has confirmed his account so we can procede...
// @TODO Rewrite this to a filter
- switch ($ltype)
- {
+ switch ($ltype) {
case 'NORMAL':
$result = SQL_QUERY_ESC("SELECT payment_id FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `pool_id`=%s LIMIT 1",
array(bigintval($pool)), __FILE__, __LINE__);
$errorCode = getCode('POSSIBLE_INVALID');
}
} else {
- $errorCode = getCode('ACCOUNT_LOCKED');
+ $errorCode = getCode('ACCOUNT_' . $status);
}
} else {
SQL_FREERESULT($result);