// Modules are by default not valid!
$isModuleValid = false; $check = 'failed';
+
+// Is the maintenance mode active or goes all well?
if ((getConfig('maintenance') == 'Y') && (!IS_ADMIN()) && (getModule() != 'admin')) {
// Maintain mode is active and you are no admin
addFatalMessage(__FILE__, __LINE__, getMessage('LANG_DOWN_MAINTAINCE'));