require_once("inc/libs/security_functions.php");
// Init "action" and "what"
-global $what, $action, $FATAL;
+global $what, $action;
$GLOBALS['what'] = "";
$GLOBALS['action'] = "";
-$FATAL = array();
// Set module and fake "CSS mode"
$GLOBALS['module'] = "debug"; $CSS = -1;
require("inc/config.php");
// Redirect only to registration page when this script is installed
-if ((isBooleanConstantAndTrue('mxchange_installed')) && (count($FATAL) == 0)) {
+if ((isBooleanConstantAndTrue('mxchange_installed')) && (getTotalFatalErrors() == 0)) {
+ // Is the extension installed?
+ if (!EXT_IS_ACTIVE("debug")) {
+ // Then abort here
+ exit;
+ } // END - if
+
// Is the request parameter set?
if (isset($_POST['request'])) {
// Handle the request
}
} else {
// Not installed or fatal errors
- DEBUG_ABUSE_LOG(__FILE__, __LINE__, "request_fatal", count($FATAL));
+ DEBUG_ABUSE_LOG(__FILE__, __LINE__, "request_fatal", getTotalFatalErrors());
} // END - if
// Really all done here... ;-)