First batch of removal of the headers needed for revision-functions.php
[mailer.git] / inc / modules / sponsor / guest.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 05/19/2008 *
4  * ===================                          Last change: 05/19/2008 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              :                                                  *
8  * -------------------------------------------------------------------- *
9  * Short description :                                                  *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  :                                                  *
12  * -------------------------------------------------------------------- *
13  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
14  * For more information visit: http://mxchange.org                      *
15  *                                                                      *
16  * This program is free software; you can redistribute it and/or modify *
17  * it under the terms of the GNU General Public License as published by *
18  * the Free Software Foundation; either version 2 of the License, or    *
19  * (at your option) any later version.                                  *
20  *                                                                      *
21  * This program is distributed in the hope that it will be useful,      *
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
24  * GNU General Public License for more details.                         *
25  *                                                                      *
26  * You should have received a copy of the GNU General Public License    *
27  * along with this program; if not, write to the Free Software          *
28  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
29  * MA  02110-1301  USA                                                  *
30  ************************************************************************/
31
32 // Some security stuff...
33 if (!defined('__SECURITY')) {
34         exit();
35 } elseif ((!isExtensionActive('sponsor'))) {
36         addFatalMessage(__FILE__, __LINE__, '{%pipe,generateExtensionInactiveNotInstalledMessage=sponsor%}');
37         return;
38 } elseif (!isSponsor()) {
39         // No sponsor!
40         addFatalMessage(__FILE__, __LINE__, '{--SPONSOR_ONLY_AREA_ENTERED--}');
41         return;
42 }
43
44 // Simple redirect
45 redirectToUrl('modules.php?module=index');
46
47 // [EOF]
48 ?>