X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=modules.php;h=325eb83108671abe9bc5440e084ddb794ad2307b;hp=78bf8c7c3902a1cd5f24cae5cbea874d11ca9c7a;hb=0b0f1ec06f8dda4617f231a208ee30204e041e07;hpb=feda50ff73c05935417ed33164d30caf966ba854 diff --git a/modules.php b/modules.php index 78bf8c7c39..325eb83108 100644 --- a/modules.php +++ b/modules.php @@ -35,7 +35,7 @@ //xdebug_start_trace(); // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once ("inc/libs/security_functions.php"); +require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action, $startTime; @@ -55,7 +55,7 @@ if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); $GLOBALS['module'] = secureString($_GET['module']); // Needed include files -require ("inc/config.php"); +require("inc/config.php"); // Check if logged in if (IS_MEMBER()) { @@ -148,7 +148,7 @@ if ((!empty($_CONFIG['maintenance'])) && ($_CONFIG['maintenance'] == "Y") && (!I ADD_FATAL(MYSQL_ERRORS); } -if ($MOD_VALID) { +if (($MOD_VALID) && (defined('__MODULE'))) { ///////////////////////////////////////////// // Main including line DO NOT REMOVE/EDIT! // /////////////////////////////////////////////