X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=modules.php;h=f8fbe88fb7616f5c9e4bc5ae0d07c857426929ee;hb=2f7ccb30d9251afcf733d840e48d6ac2317a9f6c;hp=52833e3ac429b73b9d8fe5f20cac48cc0ea17299;hpb=fff3e2abc8ffb5a086fbf0f3a7d6b9f2ff5ddaed;p=mailer.git diff --git a/modules.php b/modules.php index 52833e3ac4..f8fbe88fb7 100644 --- a/modules.php +++ b/modules.php @@ -38,10 +38,12 @@ require_once ("inc/libs/security_functions.php"); // Init "action" and "what" -global $what, $action; +global $what, $action, $startTime; +$GLOBALS['startTime'] = microtime(true); $CSS = 0; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['userid'] = 0; + if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); if (empty($_GET['module'])) $_GET['module'] = "index"; @@ -92,7 +94,7 @@ include (PATH."inc/header.php"); // Modules are by default not valid! $MOD_VALID = false; $check = "failed"; -if ((!empty($CONFIG['maintenance'])) && ($CONFIG['maintenance'] == 'Y') && (!IS_ADMIN()) && ($GLOBALS['module'] != "admin")) +if ((!empty($_CONFIG['maintenance'])) && ($_CONFIG['maintenance'] == "Y") && (!IS_ADMIN()) && ($GLOBALS['module'] != "admin")) { // Maintain mode is active and you are no admin ADD_FATAL(LANG_DOWN_MAINTAINCE);