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 - 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, 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_DEPRECATED | E_STRICT);
56 // Is the function there? (removed in PHP 5.4.0)
57 if (function_exists('import_request_variables')) {
58 // CFG: REGISTER-GLOBALS
59 @import_request_variables('');
62 // Detect path (without 'inc') and fix windozer paths
63 $path = str_replace(chr(92), '/', substr(dirname(__FILE__), 0, -3));
65 // Some very important function includes
66 foreach (array('config', 'wrapper', 'template', 'module', 'inc', 'http') as $inc) {
67 include($path . 'inc/' . $inc . '-functions.php');
71 include($path . 'inc/functions.php');
73 // Auto-detection of URL
74 $URL = 'http://' . detectServerName() . str_replace(chr(92), '/', dirname($_SERVER['PHP_SELF']));
75 while (substr($URL, -1, 1) == '/') { $URL = substr($URL, 0, -1); }
77 // Initialize the configuration
84 setConfigEntry('FLOAT_MASK', '%01.5f');
86 // CFG: HOST-URL (without trailing '/' !)
87 setConfigEntry('URL', $URL);
89 // CFG: DOMAIN-NAME (without trailing '/' !)
90 setConfigEntry('DOMAIN', detectDomainName());
93 setConfigEntry('PATH', $path);
96 setConfigEntry('VERSION', 'v0.2.1');
99 setConfigEntry('AUTHOR' , 'Roland Häder');
102 setConfigEntry('TITLE', 'Mailer-Project');
105 setConfigEntry('COPY', 'Copyright © 2003 - 2009, by Roland Häder,<br />2009 - 2012 by Mailer Developer Team');
108 setConfigEntry('CACHE_PATH', 'inc/cache/');
110 // CFG: INTERNAL-STATS (This setting is overwritten by ext-other equal and prior version 0.2.7)
111 setConfigEntry('internal_stats', 'N');
113 // CFG: DEBUG-TEMPLATE-CACHE
114 setConfigEntry('DEBUG_TEMPLATE_CACHE', 'Y');
117 setConfigEntry('salt_length', 10);
119 // CFG: MINIMUM-ADMIN-PASS-LENGTH
120 setConfigEntry('minium_admin_pass_length', 4);
122 // Remove maybe conflicting variables
126 // Connect to the database...
127 loadIncludeOnce('inc/mysql-connect.php');