b3c6383acb43cd599104e3b5e6c5254e50f5e9ba
[mailer.git] / inc / ajax / ajax_
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 06/24/2012 *
4  * ===================                          Last change: 06/23/2013 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : ajax_admin.php                                   *
8  * -------------------------------------------------------------------- *
9  * Short description : AJAX library for admin menu                      *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : AJAX-Bibliothek fuer Adminmenu                   *
12  * -------------------------------------------------------------------- *
13  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
14  * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
15  * For more information visit: http://mxchange.org                      *
16  *                                                                      *
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.                                  *
21  *                                                                      *
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.                         *
26  *                                                                      *
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,               *
30  * MA  02110-1301  USA                                                  *
31  ************************************************************************/
32
33 // Some security stuff...
34 if (!defined('__SECURITY')) {
35         die();
36 } elseif ((!isAjaxOutputMode()) || (!isAdmin())) {
37         header('HTTP/1.1 403 Forbidden');
38         die(json_encode(array('reply_content' => 'Access forbidden'), JSON_FORCE_OBJECT));
39 } // END - if
40
41 // [EOF]
42 ?>