Rewritten
[mailer.git] / modules.php
index 3a95d923ba0e1db9193fbacde8d79f92632cdb90..5a372e0fc40bc68f76c8aba021783bbcc9550ef3 100644 (file)
@@ -44,6 +44,9 @@ $GLOBALS['what']   = "";
 $GLOBALS['action'] = "";
 $GLOBALS['userid'] = 0;
 
+// Needed include files
+require("inc/config.php");
+
 // Fix missing module to "index"
 if (!REQUEST_ISSET_GET(('module'))) REQUEST_SET_GET('module', "index");
 
@@ -54,9 +57,6 @@ if (REQUEST_ISSET_GET(('what')))   $GLOBALS['what']   = secureString(REQUEST_GET
 // Secure the module name (very important line!)
 $GLOBALS['module'] = secureString(REQUEST_GET('module'));
 
-// Needed include files
-require("inc/config.php");
-
 // Check if logged in
 if (IS_MEMBER()) {
        // Is still logged in so we welcome him with his name