X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=debug.php;h=5e8a6b82edc5d499a849dc4b015f0bcc846fba36;hb=29157685184b9aa2ddbf42e9d2e49141af95f7e2;hp=f9fec82e779762382ed949a54f24c210ff818a13;hpb=b8a6f8012aa3509d8e0f8fd078e044f20e80707a;p=mailer.git diff --git a/debug.php b/debug.php index f9fec82e77..5e8a6b82ed 100644 --- a/debug.php +++ b/debug.php @@ -18,6 +18,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -47,15 +48,15 @@ $GLOBALS['output_mode'] = -1; require('inc/config-global.php'); // Redirect only to registration page when this script is installed -if ((isExtensionActive('debug')) && (getTotalFatalErrors() == '0')) { +if ((isExtensionActive('debug')) && (!ifFatalErrorsDetected())) { // Is the request parameter set? - if (isPostRequestElementSet('request')) { + if (isPostRequestParameterSet('request')) { // Handle the request - if (DEBUG_HANDLE_REQUEST(postRequestElement('request'))) { + if (DEBUG_HANDLE_REQUEST(postRequestParameter('request'))) { // Construct FQFN for the module - $inc = sprintf("inc/debug/%s/request_%s", + $inc = sprintf("inc/debug/%s/request_%s.php", getConfig('debug_mode'), - SQL_ESCAPE(postRequestElement('request')) + SQL_ESCAPE(postRequestParameter('request')) ); // Is the module there? Else we log it! @@ -64,11 +65,11 @@ if ((isExtensionActive('debug')) && (getTotalFatalErrors() == '0')) { loadInclude($inc); } else { // Missing request files may happen while development - DEBUG_ABUSE_LOG(__FILE__, __LINE__, 'request_404', postRequestElement('request')); + DEBUG_ABUSE_LOG(__FILE__, __LINE__, 'request_404', postRequestParameter('request')); } } else { // Unhandled request detected - DEBUG_ABUSE_LOG(__FILE__, __LINE__, 'request_unhandled', postRequestElement('request')); + DEBUG_ABUSE_LOG(__FILE__, __LINE__, 'request_unhandled', postRequestParameter('request')); } } else { // Empty request