if (EXT_IS_ACTIVE("bonus")) {
// Load bonus ID
$result = SQL_QUERY_ESC("SELECT stats_id, bonus_id, link_type FROM "._MYSQL_PREFIX."_user_links WHERE userid=%s ORDER BY bonus_id DESC, stats_id DESC",
- array($GLOBALS['userid']), __FILE__, __LINE__);
+ array($GLOBALS['userid']), __FILE__, __LINE__);
} else {
// Don't load bonus ID
$result = SQL_QUERY_ESC("SELECT stats_id, stats_id, link_type FROM "._MYSQL_PREFIX."_user_links WHERE userid=%s ORDER BY stats_id DESC",
- array($GLOBALS['userid']), __FILE__, __LINE__);
+ array($GLOBALS['userid']), __FILE__, __LINE__);
}
// Mails left for confirmation?
$sum = 0; $SW = 2; $OUT = "";
while (list($id, $id2, $type) = SQL_FETCHROW($result)) {
// Load data from stats table...
- $cat = "";
+ $cat = ""; $result_data = false;
switch ($type)
{
case "NORMAL":
ON s.pool_id=p.id
WHERE s.id=%s
LIMIT 1",
- array(bigintval($id)), __FILE__, __LINE__);
+ array(bigintval($id)), __FILE__, __LINE__);
$type = "mailid"; $DATA = $id; $PROBLEM = NORMAL_MAIL_PROBLEM;
break;
array(bigintval($id2)), __FILE__, __LINE__);
$type = "bonusid"; $DATA = $id2; $PROBLEM = BONUS_MAIL_PROBLEM;
break;
+
+ default: // Unknown type detected!
+ DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown mail type %s detected.", $type));
+ break;
}
// Data found to this mail?
);
// Load row template
- if ($_CONFIG['show_points_unconfirmed'] == "Y") {
+ if (getConfig('show_points_unconfirmed') == "Y") {
$OUT .= LOAD_TEMPLATE("member_unconfirmed_row", true, $content);
} else {
$OUT .= LOAD_TEMPLATE("member_unconfirmed_row_nopoints", true, $content);
);
// Display points or not?
- if ($_CONFIG['show_points_unconfirmed'] == "Y") {
+ if (getConfig('show_points_unconfirmed') == "Y") {
$OUT .= LOAD_TEMPLATE("member_unconfirmed_404", true, $content);
} else {
$OUT .= LOAD_TEMPLATE("member_unconfirmed_404_nopoints", true, $content);
define('__UNCONFIRMED_ROWS', $OUT);
// Load main template
- if ($_CONFIG['show_points_unconfirmed'] == "Y") {
+ if (getConfig('show_points_unconfirmed') == "Y") {
LOAD_TEMPLATE("member_unconfirmed_table");
} else {
LOAD_TEMPLATE("member_unconfirmed_table_nopoints");
}
-}
- else
-{
+} else {
// No mails left to confirm... :)
LOAD_TEMPLATE("admin_settings_saved", false, MEMBER_NO_MAILS_TO_CONFIRM);
}