X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Findex.php;h=fb602ae72231854e213e43617bc516529b1a321c;hb=fac1768c0b48ca0e9092b198e18c29263d1009d1;hp=e43f6869353d526f5fc19065bd60181383510bb8;hpb=c14a130863bb037b00fceabd099a202eb4a5b2d8;p=mailer.git diff --git a/inc/modules/index.php b/inc/modules/index.php index e43f686935..fb602ae722 100644 --- a/inc/modules/index.php +++ b/inc/modules/index.php @@ -35,7 +35,7 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} elseif (!EXT_IS_ACTIVE("sql_patches", true)) { +} elseif ((!EXT_IS_ACTIVE("sql_patches", true)) && (!IS_ADMIN())) { // The extension "sql_patches" *MUST* be activated or you have lot's of problems! LOAD_URL("modules.php?module=admin"); } @@ -107,6 +107,9 @@ if (($_CONFIG['guest_menu'] == "Y") || (!EXT_IS_ACTIVE("sql_patches", true))) { // TDs between menu and content LOAD_TEMPLATE("guest_menu_content"); +// Disable block-mode by default +$BLOCK_MODE = false; + $INC_ACTION = sprintf("%sinc/modules/guest/action-%s.php", PATH, $act); if ((FILE_READABLE($INC_ACTION)) && (VALIDATE_MENU_ACTION("guest", $act, $GLOBALS['what']))) { // Requested module is available so we load it