X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=modules.php;h=e85392bba4d1aed9c0ec7f4a99d412649d89068f;hp=9cc7ff28b9b61a8497c948976edb2499e784be69;hb=302284be34ec6342a279566e1167837033c6fd62;hpb=75ad748a68473ace540251427a74fb781b1145e9 diff --git a/modules.php b/modules.php index 9cc7ff28b9..e85392bba4 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);