]> git.mxchange.org Git - mailer.git/blob - inc/modules/guest/action-sponsor.php
Opps, not all elements for sprintf() has been set.
[mailer.git] / inc / modules / guest / action-sponsor.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 06/10/2005 *
4  * ===================                          Last change: 05/18/2008 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : action-sponsor.php                               *
8  * -------------------------------------------------------------------- *
9  * Short description : Sponsor area                                     *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Sponsorenbereich                                 *
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.       *
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 (isBlockModeEnabled()) {
36         // Block mode detected
37         return;
38 }
39
40 // Add description as navigation point
41 addYouAreHereLink('guest', __FILE__);
42
43 if ((!isExtensionActive('sponsor')) && (!isAdmin())) {
44         displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=sponsor%}');
45         return;
46 } // END - if
47
48 // Load the include file
49 $inc = sprintf('inc/modules/guest/what-%s.php', getWhat());
50 if (isIncludeReadable($inc)) {
51         // Ok, we finally load the guest action module
52         loadIncludeOnce($inc);
53 } else {
54         addFatalMessage(__FILE__, __LINE__, '{--GUEST_WHAT_404--}');
55 }
56
57 // [EOF]
58 ?>