Unconfirmed mails in member area requires active mailid extension
authorRoland Häder <roland@mxchange.org>
Sun, 7 Sep 2008 00:46:32 +0000 (00:46 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 7 Sep 2008 00:46:32 +0000 (00:46 +0000)
inc/modules/member/what-unconfirmed.php

index ade5361..ec63d67 100644 (file)
  ************************************************************************/
 
 // 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();
+
 //
 ?>