From 68a4f109c9ce2c7da7d0805092f80a2c7b0c9f27 Mon Sep 17 00:00:00 2001 From: quix0r Date: Sun, 7 Sep 2008 00:46:32 +0000 Subject: [PATCH] Unconfirmed mails in member area requires active mailid extension --- inc/modules/member/what-unconfirmed.php | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/inc/modules/member/what-unconfirmed.php b/inc/modules/member/what-unconfirmed.php index ade5361525..ec63d678c4 100644 --- a/inc/modules/member/what-unconfirmed.php +++ b/inc/modules/member/what-unconfirmed.php @@ -32,28 +32,21 @@ ************************************************************************/ // Some security stuff... -if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) -{ +if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} - elseif (!IS_LOGGED_IN()) -{ +} elseif ((!IS_LOGGED_IN()) || (!EXT_IS_ACTIVE("mailid"))) { LOAD_URL("modules.php?module=index"); } // Add description as navigation point ADD_DESCR("member", basename(__FILE__)); -OPEN_TABLE("100%", "member_content member_content_align", ""); -if (EXT_IS_ACTIVE("bonus")) -{ +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", array($GLOBALS['userid']), __FILE__, __LINE__); -} - else -{ +} 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__); @@ -148,6 +141,6 @@ if (SQL_NUMROWS($result) > 0) // No mails left to confirm... :) LOAD_TEMPLATE("admin_settings_saved", false, MEMBER_NO_MAILS_TO_CONFIRM); } -CLOSE_TABLE(); + // ?> -- 2.39.5