]> git.mxchange.org Git - mailer.git/blob - inc/modules/sponsor.php
Fix for SQL with ref_depth=NULL
[mailer.git] / inc / modules / sponsor.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 04/02/2005 *
4  * ===================                          Last change: 05/19/2008 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : sponsor.php                                      *
8  * -------------------------------------------------------------------- *
9  * Short description : Sponsor area                                     *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Sponsorenbereich                                 *
12  * -------------------------------------------------------------------- *
13  * $Revision::                                                        $ *
14  * $Date::                                                            $ *
15  * $Tag:: 0.2.1-FINAL                                                 $ *
16  * $Author::                                                          $ *
17  * -------------------------------------------------------------------- *
18  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
19  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
20  * For more information visit: http://www.mxchange.org                  *
21  *                                                                      *
22  * This program is free software. You can redistribute it and/or modify *
23  * it under the terms of the GNU General Public License as published by *
24  * the Free Software Foundation; either version 2 of the License.       *
25  *                                                                      *
26  * This program is distributed in the hope that it will be useful,      *
27  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
28  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
29  * GNU General Public License for more details.                         *
30  *                                                                      *
31  * You should have received a copy of the GNU General Public License    *
32  * along with this program; if not, write to the Free Software          *
33  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
34  * MA  02110-1301  USA                                                  *
35  ************************************************************************/
36
37 // Some security stuff...
38 if (!defined('__SECURITY')) {
39         die();
40 } elseif ((!isExtensionActive('sponsor'))) {
41         displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=sponsor%}');
42         return;
43 } elseif (!isSponsor()) {
44         // No sponsor!
45         addFatalMessage(__FILE__, __LINE__, '{--SPONSOR_ONLY_AREA_ENTERED--}');
46         return;
47 } elseif ((!isWhatSet()) || (getWhat() == '')) {
48         // Empty what value detected!
49         debug_report_bug(__FUNCTION__, __LINE__, 'what is empty.');
50 }
51
52 // A valid sponsor login and we are allowed to enter this module so let's
53 // update his cookies and online time
54 updateSponsorLogin();
55
56 // Generate menu
57 $content['menu'] = addSponsorMenu(getWhat());
58
59 // Generate right-side output
60 $content['content'] = addSponsorContent(getWhat());
61
62 // Load header template
63 $content['header'] = loadTemplate('sponsor_header', true);
64
65 // Load footer template
66 $content['footer'] = loadTemplate('sponsor_footer', true);
67
68 // 'You are here' navigation
69 $content['you_are_here'] = addYouAreHereLink('sponsor', getWhat(), true);
70
71 // Load main sponsor template
72 loadTemplate('sponsor_main', false, $content);
73
74 // [EOF]
75 ?>