// Init "action" and "what"
global $what, $action, $startTime;
// Init "action" and "what"
global $what, $action, $startTime;
// Secure action/what if present
if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']);
// Secure action/what if present
if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']);
// Maintain mode is active and you are no admin
addFatalMessage(getMessage('LANG_DOWN_MAINTAINCE'));
} elseif (($link) && ($db) && (getTotalFatalErrors() == 0)) {
// Maintain mode is active and you are no admin
addFatalMessage(getMessage('LANG_DOWN_MAINTAINCE'));
} elseif (($link) && ($db) && (getTotalFatalErrors() == 0)) {
// Did we found the module listed in allowed modules and are we successfully connected?
$check = CHECK_MODULE($GLOBALS['module']);
switch ($check)
// Did we found the module listed in allowed modules and are we successfully connected?
$check = CHECK_MODULE($GLOBALS['module']);
switch ($check)
// Module is valid, active and located on the local disc...
$MOD_VALID = true;
} elseif (!empty($URL)) {
// An URL was specified so we load the de-referrer module
LOAD_URL(DEREFERER($URL));
} elseif (getTotalFatalErrors() == 0) {
// Module is valid, active and located on the local disc...
$MOD_VALID = true;
} elseif (!empty($URL)) {
// An URL was specified so we load the de-referrer module
LOAD_URL(DEREFERER($URL));
} elseif (getTotalFatalErrors() == 0) {
break;
default:
DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown status %s return from module check. Module=%s", $check, $GLOBALS['module']));
break;
default:
DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown status %s return from module check. Module=%s", $check, $GLOBALS['module']));