2 /************************************************************************
3 * Mailer v0.2.1-FINAL Start: 04/02/2005 *
4 * =================== Last change: 05/19/2008 *
6 * -------------------------------------------------------------------- *
8 * -------------------------------------------------------------------- *
9 * Short description : Sponsor area *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Sponsorenbereich *
12 * -------------------------------------------------------------------- *
15 * $Tag:: 0.2.1-FINAL $ *
17 * -------------------------------------------------------------------- *
18 * Copyright (c) 2003 - 2009 by Roland Haeder *
19 * Copyright (c) 2009 - 2012 by Mailer Developer Team *
20 * For more information visit: http://mxchange.org *
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. *
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. *
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, *
35 ************************************************************************/
37 // Some security stuff...
38 if (!defined('__SECURITY')) {
40 } elseif ((!isExtensionActive('sponsor'))) {
41 displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=sponsor%}');
43 } elseif (!isSponsor()) {
45 addFatalMessage(__FILE__, __LINE__, '{--SPONSOR_ONLY_AREA_ENTERED--}');
47 } elseif ((!isWhatSet()) || (getWhat() == '')) {
48 // Empty what value detected!
49 reportBug(__FUNCTION__, __LINE__, 'what is empty.');
52 // A valid sponsor login and we are allowed to enter this module so let's
53 // update his cookies and online time
57 $content['menu'] = addSponsorMenu(getWhat());
59 // Generate right-side output
60 $content['content'] = addSponsorContent(getWhat());
62 // Load header template
63 $content['header'] = loadTemplate('sponsor_header', TRUE);
65 // Load footer template
66 $content['footer'] = loadTemplate('sponsor_footer', TRUE);
68 // 'You are here' navigation
69 $content['you_are_here'] = addYouAreHereLink('sponsor', getWhat(), TRUE);
71 // Load main sponsor template
72 loadTemplate('sponsor_main', FALSE, $content);