X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=debug.php;h=533676e3f9fe6fabca4ecfe93110740bcdb5dc9c;hb=3e49938396ad0b4af9919363e5adcf0d713acf81;hp=dcbc274a9c0d4707982c217dfaffb0233cbe7e91;hpb=59bd8a9805c51c895a92cc12825f4cbdfd792597;p=mailer.git diff --git a/debug.php b/debug.php index dcbc274a9c..533676e3f9 100644 --- a/debug.php +++ b/debug.php @@ -35,12 +35,12 @@ require("inc/libs/security_functions.php"); // Init "action" and "what" -global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; // Set module and fake "CSS mode" -$GLOBALS['module'] = "debug"; $GLOBALS['output_mode'] = -1; +$GLOBALS['module'] = "debug"; +$GLOBALS['output_mode'] = -1; // Load the required file(s) require("inc/config.php"); @@ -54,13 +54,13 @@ if ((isBooleanConstantAndTrue('mxchange_installed')) && (getTotalFatalErrors() = } // END - if // Is the request parameter set? - if (isset($_POST['request'])) { + if (REQUEST_ISSET_POST(('request'))) { // Handle the request - if (DEBUG_HANDLE_REQUEST($_POST['request'])) { + if (DEBUG_HANDLE_REQUEST(REQUEST_POST('request'))) { // Construct FQFN for the module $INC = sprintf("inc/debug/%s/request_%s", getConfig('debug_mode'), - SQL_ESCAPE($_POST['request']) + SQL_ESCAPE(REQUEST_POST('request')) ); // Is the module there? Else we log it! @@ -69,11 +69,11 @@ if ((isBooleanConstantAndTrue('mxchange_installed')) && (getTotalFatalErrors() = LOAD_INC($INC); } else { // Missing request file, may happen while development - DEBUG_ABUSE_LOG(__FILE__, __LINE__, "request_404", $_POST['request']); + DEBUG_ABUSE_LOG(__FILE__, __LINE__, "request_404", REQUEST_POST('request')); } } else { // Unhandled request detected - DEBUG_ABUSE_LOG(__FILE__, __LINE__, "request_unhandled", $_POST['request']); + DEBUG_ABUSE_LOG(__FILE__, __LINE__, "request_unhandled", REQUEST_POST('request')); } } else { // Empty request