Added notice for authentication (data transfer) URLs.
[mailer.git] / api.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 01/03/2013 *
4  * ===================                          Last change: 01/03/2013 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : api.php                                          *
8  * -------------------------------------------------------------------- *
9  * Short description : Generic API script                               *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Allgemeines API-Script                           *
12  * -------------------------------------------------------------------- *
13  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
14  * Copyright (c) 2009 - 2013 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 // XDEBUG call
34 //* DEBUG: */ xdebug_start_trace();
35
36 // Load security system
37 require('inc/libs/security_functions.php');
38
39 // Init start time
40 $GLOBALS['__start_time'] = microtime(TRUE);
41
42 /*
43  * Set output to "AJAX mode", proper module and prevent HTML headers/footers
44  * being sent.
45  */
46 $GLOBALS['__output_mode'] = -2;
47 $GLOBALS['__module']      = 'api';
48 $GLOBALS['__header_sent'] = 2;
49 $GLOBALS['__footer_sent'] = 2;
50
51 // Temporary set HTTP 404 here. This will be removed once this stuff is ready.
52 setHttpStatus('404 Not Found');
53
54 // Load config file
55 require('inc/config-global.php');
56
57 // Load special API library
58 //loadIncludeOnce('inc/api-functions.php');
59
60 // Init API request (including HTTP status code)
61 //initApi();
62
63 // Load header here
64 loadPageHeader();
65
66 // @TODO Do stuff here
67
68 // Footer
69 loadPageFooter();
70
71 // [EOF]
72 ?>