X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=ajax.php;h=73b3d8f191dfafed5ad278cc04f389c5b790842d;hp=e267e9f9b92a8540625deae9b1a9aafee09fa8ab;hb=d1922ab361b5e104b7c14b28c76d1c47651635ef;hpb=0eea910f4bcaffeb4c6193f4a06f1d187d3a197d diff --git a/ajax.php b/ajax.php index e267e9f9b9..73b3d8f191 100644 --- a/ajax.php +++ b/ajax.php @@ -10,13 +10,8 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : AJAX-Abfragescript * * -------------------------------------------------------------------- * - * $Revision:: $ * - * $Date:: $ * - * $Tag:: 0.2.1-FINAL $ * - * $Author:: $ * - * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2016 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -53,8 +48,8 @@ $GLOBALS['__module'] = 'ajax'; $GLOBALS['__header_sent'] = 2; $GLOBALS['__footer_sent'] = 2; -// Load config file -require('inc/config-global.php'); +// Initialize application +require('inc/init.php'); // Load special AJAX library loadIncludeOnce('inc/ajax-functions.php'); @@ -63,12 +58,12 @@ loadIncludeOnce('inc/ajax-functions.php'); initAjax(); // Load header here -loadIncludeOnce('inc/header.php'); +loadPageHeader(); // 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(); @@ -84,7 +79,7 @@ if ((getHttpRequestMethod() == 'POST') && (isPostRequestElementSet('level'))) { } // END - if // Footer -loadIncludeOnce('inc/footer.php'); +loadPageFooter(); // [EOF] ?>