X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=modules.php;h=0b111174af4508e3aaa7040b9fd4e310e3154a5e;hp=15e4cf4d18b78c19acc7beca439f594660485124;hb=5ae157f2010b3aae3c6f2ecdc6ec7c30b305be4a;hpb=1cf72a9c1a5e737509af79d49f0731da2eb6a218 diff --git a/modules.php b/modules.php index 15e4cf4d18..0b111174af 100644 --- a/modules.php +++ b/modules.php @@ -40,7 +40,7 @@ require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action, $startTime; $GLOBALS['startTime'] = microtime(true); -$CSS = 0; +$GLOBALS['output_mode'] = 0; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['userid'] = 0; @@ -101,7 +101,7 @@ $MOD_VALID = false; $check = "failed"; if ((getConfig('maintenance') == "Y") && (!IS_ADMIN()) && ($GLOBALS['module'] != "admin")) { // Maintain mode is active and you are no admin addFatalMessage(getMessage('LANG_DOWN_MAINTAINCE')); -} elseif (($link) && ($db) && (getTotalFatalErrors() == 0)) { +} elseif ((SQL_IS_LINK_UP()) && (getTotalFatalErrors() == 0)) { // Construct module name define('__MODULE', sprintf("inc/modules/%s.php", SQL_ESCAPE($GLOBALS['module'])));