]> git.mxchange.org Git - mailer.git/commitdiff
Added more logging of half-failed AJAX requests
authorquix0r <quix0r@mxchange.org>
Tue, 8 Jan 2013 17:27:52 +0000 (17:27 +0000)
committerquix0r <quix0r@mxchange.org>
Tue, 8 Jan 2013 17:27:52 +0000 (17:27 +0000)
ajax.php
inc/ajax-functions.php
inc/ajax/ajax_admin.php
inc/ajax/ajax_installer.php
robots.txt

index be378a274a910ab1e3d56eb1fd28ac011927a62e..e267e9f9b92a8540625deae9b1a9aafee09fa8ab 100644 (file)
--- a/ajax.php
+++ b/ajax.php
@@ -75,7 +75,7 @@ if ((getHttpRequestMethod() == 'POST') && (isPostRequestElementSet('level'))) {
                // Is there an error which is not fine?
                if (!isAjaxHttpStatusAccepted()) {
                        // The process was handled but didn't work
-                       reportBug(__FUNCTION__, __LINE__, 'AJAX request is valid but does not do anything.');
+                       reportBug(__FUNCTION__, __LINE__, 'AJAX request level=' . isPostRequestElementSet('level') . ',status=' . getHttpStatus() . ',callback[' . gettype($GLOBALS['ajax_callback_function']) . ']=' . $GLOBALS['ajax_callback_function'] . ' is valid but does not do anything.');
                } // END - if
        } else {
                // Not allowed
index 59ad97d18115e41998485789ffaadd02ced519ba..43a6244afae1dbdce4c4944f18a469a71769d467 100644 (file)
@@ -48,6 +48,9 @@ function initAjax () {
                'reply_content' => NULL,
        );
 
+       // Init call-back debug information
+       $GLOBALS['ajax_callback_function'] = NULL;
+
        // Set content type (mostly JSON)
        setContentType('application/json');
 
index e93830cba66da6138fa31cccc8679a9ea27a7045..a7fe37dc1c3d661c2c2eac6017f6112d24994590 100644 (file)
@@ -60,6 +60,7 @@ function doAjaxProcessAdmin () {
 
        // Again we do a call-back, so generate a function name depending on 'do'
        $callbackName = 'doAjaxAdmin' . capitalizeUnderscoreString(postRequestElement('do'));
+       $GLOBALS['ajax_callback_function'] = $callbackName;
 
        // Is the call-back function there?
        if (!function_exists($callbackName)) {
index f1e7eb7aaa5d0f55b8119a98cac4fd560e08a8cd..ada36bf66c819e00a8ce70f974303bf4f95baf9a 100644 (file)
@@ -103,6 +103,7 @@ function doAjaxProcessInstall () {
 
        // Again we do a call-back, so generate a function name depending on 'do'
        $callbackName = 'doAjaxInstaller' . capitalizeUnderscoreString(postRequestElement('do'));
+       $GLOBALS['ajax_callback_function'] = $callbackName;
 
        // Is the call-back function there?
        if (!function_exists($callbackName)) {
index deb99838938f81e30ac406dadeedb252e4596571..5b0391be8a17ddfbd617621c8a3dd1dfcc078a66 100644 (file)
@@ -430,7 +430,7 @@ Disallow: /
 User-agent: searchpreview
 Disallow: /
 
-# This is for my webpages
+# This is for my web pages using spider-trap
 User-agent: *
 Disallow: /guestbook/
 Disallow: /blacklist.txt