2 /************************************************************************
3 * Mailer v0.2.1-FINAL Start: 09/23/2003 *
4 * =================== Last change: 03/27/2004 *
6 * -------------------------------------------------------------------- *
8 * -------------------------------------------------------------------- *
9 * Short description : Entrance page *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Eingangsseite *
12 * -------------------------------------------------------------------- *
15 * $Tag:: 0.2.1-FINAL $ *
17 * -------------------------------------------------------------------- *
18 * Copyright (c) 2003 - 2009 by Roland Haeder *
19 * Copyright (c) 2009 - 2013 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, or *
25 * (at your option) any later version. *
27 * This program is distributed in the hope that it will be useful, *
28 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
29 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
30 * GNU General Public License for more details. *
32 * You should have received a copy of the GNU General Public License *
33 * along with this program; if not, write to the Free Software *
34 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
36 ************************************************************************/
38 // Some security stuff...
39 if (!defined('__SECURITY')) {
41 } elseif (!isExtensionInstalled('sql_patches')) {
42 // Redirect to admin area
43 redirectToUrl('admin.php');
46 // Generate a tableset for the menu title and content
47 loadTemplate('guest_header', FALSE, array('date_time' => generateDateTime(time(), 1)));
49 // Add code-message here
52 // Some of you needs this to be extracted into a template... ???
53 loadTemplate('guest_menu_td');
55 // Add the guest's menu here...
56 if ((isGuestMenuEnabled()) || (!isExtensionActive('sql_patches', TRUE))) {
57 // Show only when guest menu is active
58 addMenu('guest', getAction(), getWhat());
61 // TDs between menu and content
62 loadTemplate('guest_menu_content');
64 // Disable block-mode by default
65 enableBlockMode(FALSE);
68 $inc = sprintf('inc/modules/guest/action-%s.php', getAction());
71 if ((isIncludeReadable($inc)) && (isMenuActionValid('guest', getAction(), getWhat()))) {
72 // Requested module is available so we load it
73 loadIncludeOnce($inc);
75 // Invalid module specified or not found...
76 redirectToUrl('modules.php?module=index');
79 if ((isGuestMenuEnabled()) || (!isExtensionActive('sql_patches'))) {
80 // Right side of content (hint: a good place for 120x600 skyscraper banner!)
81 loadTemplate('guest_content_footer');
83 // Some advertising stuff?
84 loadTemplate('guest_advert2');
90 loadTemplate('guest_goto_top');
93 // Footer template (Thanx to Mr. Glaus!)
94 loadTemplate('guest_footer');