2 /************************************************************************
3 * Mailer v0.2.1-FINAL Start: 04/03/2009 *
4 * =================== Last change: 04/03/2009 *
6 * -------------------------------------------------------------------- *
7 * File : config-global.php *
8 * -------------------------------------------------------------------- *
9 * Short description : Global configuration *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Globale Konfiguration *
12 * -------------------------------------------------------------------- *
15 * $Tag:: 0.2.1-FINAL $ *
17 * -------------------------------------------------------------------- *
18 * Copyright (c) 2003 - 2009 by Roland Haeder *
19 * Copyright (c) 2009, 2010 by Mailer Developer Team *
20 * For more information visit: http://www.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')) {
43 /************************************************************************
44 * PLEASE DO NOT EDIT THE COMMENTS! install.php NEEDS THEM! *
45 ************************************************************************/
47 // Proper function exists?
48 if (function_exists('date_default_timezone_set')) {
49 // Set default timezone to Europe/Berlin (because I'm from Germany)
50 @date_default_timezone_set('Europe/Berlin');
53 // CFG: ERROR_REPORTING
54 error_reporting(E_ALL | E_STRICT);
56 // CFG: REGISTER-GLOBALS
57 @import_request_variables('');
60 $PATH = str_replace("\\", '/', substr(dirname(__FILE__), 0, -3));
62 // Some very important function includes
63 foreach (array('config','wrapper','template','module','inc','stats') as $inc) {
64 include($PATH . 'inc/' . $inc . '-functions.php');
68 include($PATH.'inc/functions.php');
70 // Auto-detection... (patched by "Stelzi" aka. profi-concept, thanks again!)
71 $URL = 'http://' . detectServerName() . str_replace("\\", '/', dirname($_SERVER['PHP_SELF']));
72 while (substr($URL, -1, 1) == '/') { $URL = substr($URL, 0, -1); }
74 // Initialize the configuration
77 // CFG: HOST-URL (without trailing '/' !)
78 setConfigEntry('URL', $URL);
81 setConfigEntry('PATH', $PATH);
84 setConfigEntry('VERSION', 'v0.2.1');
87 setConfigEntry('AUTHOR' , 'Roland Häder');
90 setConfigEntry('TITLE', 'Mailer Project');
93 setConfigEntry('COPY', 'Copyright © 2003 - 2009, by Roland Häder,<br />2009, 2010 by Mailer Developer Team');
96 setConfigEntry('CACHE_PATH', getConfig('PATH') . 'inc/cache/');
98 // CFG: STATS-ENABLED (This setting is overwritten by ext-other; at least version 0.2.6)
99 setConfigEntry('stats_enabled', 'N');
101 // GLOBAL: DEBUG-TEMPLATE-CACHE
102 setConfigEntry('DEBUG_TEMPLATE_CACHE', 'N');
104 // Connect to the MySQL database...
105 loadIncludeOnce('inc/mysql-connect.php');