X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=ajax.php;h=f0a04892ee3b0276bda0b42147c4b7487f60c0d5;hb=0ffa2dc5e25339dae68c672214952aa9e23e8b6b;hp=be378a274a910ab1e3d56eb1fd28ac011927a62e;hpb=df4166450ac4788f58931bd5d30c617432a63f9d;p=mailer.git diff --git a/ajax.php b/ajax.php index be378a274a..f0a04892ee 100644 --- a/ajax.php +++ b/ajax.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -68,14 +68,14 @@ loadIncludeOnce('inc/header.php'); // Process only POST requests and that at least 'level' is set if ((getHttpRequestMethod() == 'POST') && (isPostRequestElementSet('level'))) { // Okay, that is valid, now check that the requested level right is valid - if (isAjaxRequestLevelValid()) { + if (isValidAjaxRequestLevel()) { // Process the request processAjaxRequest(); // 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