]> git.mxchange.org Git - mailer.git/blob - inc/modules/index.php
Forgot it to comment out ... :(
[mailer.git] / inc / modules / index.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 09/23/2003 *
4  * ===================                          Last change: 03/27/2004 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : index.php                                        *
8  * -------------------------------------------------------------------- *
9  * Short description : Entrance page                                    *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Eingangsseite                                    *
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 - 2012 by Mailer Developer Team                   *
20  * For more information visit: http://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, or    *
25  * (at your option) any later version.                                  *
26  *                                                                      *
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.                         *
31  *                                                                      *
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,               *
35  * MA  02110-1301  USA                                                  *
36  ************************************************************************/
37
38 // Some security stuff...
39 if (!defined('__SECURITY')) {
40         exit();
41 } elseif (!isExtensionInstalled('sql_patches')) {
42         // Redirect to admin area
43         redirectToUrl('admin.php');
44 }
45
46 // Generate a tableset for the menu title and content
47 loadTemplate('guest_header', FALSE, array('date_time' => generateDateTime(time(), 1)));
48
49 // Add code-message here
50 handleCodeMessage();
51
52 // Some of you needs this to be extracted into a template... ???
53 loadTemplate('guest_menu_td');
54
55 // Add the guest's menu here...
56 if ((getConfig('guest_menu') == 'Y') || (!isExtensionActive('sql_patches', TRUE))) {
57         // Show only when guest menu is active
58         addMenu('guest', getAction(), getWhat());
59 } // END - if
60
61 // TDs between menu and content
62 loadTemplate('guest_menu_content');
63
64 // Disable block-mode by default
65 enableBlockMode(FALSE);
66
67 // Construct FQFN
68 $inc = sprintf("inc/modules/guest/action-%s.php", getAction());
69
70 // Is the file there?
71 if ((isIncludeReadable($inc)) && (isMenuActionValid('guest', getAction(), getWhat()))) {
72         // Requested module is available so we load it
73         loadIncludeOnce($inc);
74 } else {
75         // Invalid module specified or not found...
76         redirectToUrl('modules.php?module=index');
77 }
78
79 if ((getConfig('guest_menu') == 'Y') || (!isExtensionActive('sql_patches'))) {
80         // Right side of content (hint: a good place for 120x600 skyscraper banner!)
81         loadTemplate('guest_content_footer');
82
83         // Some advertising stuff?
84         loadTemplate('guest_advert2');
85
86         outputHtml('  </td>
87 </tr>');
88
89         // Goto TOP template
90         loadTemplate('guest_goto_top');
91 } // END - if
92
93 // Footer template (Thanx to Mr. Glaus!)
94 loadTemplate('guest_footer');
95
96 // [EOF]
97 ?>