2 /************************************************************************
3 * Mailer v0.2.1-FINAL Start: 10/12/2008 *
4 * =================== Last change: 23/12/2008 *
6 * -------------------------------------------------------------------- *
8 * -------------------------------------------------------------------- *
9 * Short description : Receiver script for debug.log files *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Empfangsscript fuer debug.log Dateien *
12 * -------------------------------------------------------------------- *
13 * Copyright (c) 2003 - 2009 by Roland Haeder *
14 * Copyright (c) 2009 - 2016 by Mailer Developer Team *
15 * For more information visit: http://mxchange.org *
17 * This program is free software; you can redistribute it and/or modify *
18 * it under the terms of the GNU General Public License as published by *
19 * the Free Software Foundation; either version 2 of the License, or *
20 * (at your option) any later version. *
22 * This program is distributed in the hope that it will be useful, *
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
25 * GNU General Public License for more details. *
27 * You should have received a copy of the GNU General Public License *
28 * along with this program; if not, write to the Free Software *
29 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
31 ************************************************************************/
33 // Load security stuff here
34 require('inc/libs/security_functions.php');
37 $GLOBALS['__start_time'] = microtime(TRUE);
39 // Set module and fake "CSS mode"
40 $GLOBALS['__module'] = 'debug';
41 $GLOBALS['__output_mode'] = -1;
43 // Load the required file(s)
44 require('inc/config-global.php');
46 // Redirect only to registration page when this script is installed
47 if ((isExtensionActive('debug')) && (!ifFatalErrorsDetected())) {
48 // Is the request parameter set?
49 if (isPostRequestElementSet('request')) {
51 if (DEBUG_HANDLE_REQUEST(postRequestElement('request'))) {
52 // Construct FQFN for the module
53 $inc = sprintf('inc/debug/%s/request_%s.php',
54 getConfig('debug_mode'),
55 sqlEscapeString(postRequestElement('request'))
58 // Is the module there? Else we log it!
59 if (isIncludeReadable($inc)) {
60 // Load the requested module
63 // Missing request files may happen while development
64 DEBUG_ABUSE_LOG(__FILE__, __LINE__, 'request_404', postRequestElement('request'));
67 // Unhandled request detected
68 DEBUG_ABUSE_LOG(__FILE__, __LINE__, 'request_unhandled', postRequestElement('request'));
72 DEBUG_ABUSE_LOG(__FILE__, __LINE__, 'request_empty', '');
75 // Not installed or fatal errors
76 DEBUG_ABUSE_LOG(__FILE__, __LINE__, 'request_fatal', getTotalFatalErrors());
79 // Really all done here... ;-)