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 * -------------------------------------------------------------------- *
13 * Copyright (c) 2003 - 2009 by Roland Haeder *
14 * Copyright (c) 2009 - 2016 by Mailer Developer Team *
15 * For more information visit: http://mxchange.org *
17 * This program is free software; you can redistribute it and/or modify *
18 * it under the terms of the GNU General Public License as published by *
19 * the Free Software Foundation; either version 2 of the License, or *
20 * (at your option) any later version. *
22 * This program is distributed in the hope that it will be useful, *
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
25 * GNU General Public License for more details. *
27 * You should have received a copy of the GNU General Public License *
28 * along with this program; if not, write to the Free Software *
29 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
31 ************************************************************************/
33 // Some security stuff...
34 if (!defined('__SECURITY')) {
38 /************************************************************************
39 * PLEASE DO NOT EDIT THE COMMENTS! install.php NEEDS THEM! *
40 ************************************************************************/
42 // Proper function exists?
43 if (function_exists('date_default_timezone_set')) {
44 // Set default timezone to Europe/Berlin (because I'm from Germany)
45 @date_default_timezone_set('Europe/Berlin');
48 // CFG: ERROR-REPORTING
49 error_reporting(E_ALL | E_DEPRECATED | E_STRICT);
51 // Is the function there? (removed in PHP 5.4.0)
52 if (function_exists('import_request_variables')) {
53 // CFG: REGISTER-GLOBALS
54 @import_request_variables('');
57 // Detect path (without 'inc') and fix windozer paths
58 $path = str_replace(chr(92), '/', substr(dirname(__FILE__), 0, -3));
60 // Some very important function includes
61 foreach (array('config', 'wrapper', 'template', 'module', 'inc', 'http') as $inc) {
62 include($path . 'inc/' . $inc . '-functions.php');
66 include($path . 'inc/functions.php');
68 // Auto-detection of URL
69 $URL = detectServerProtocol() . '://' . detectServerName() . str_replace(chr(92), '/', dirname($_SERVER['PHP_SELF']));
70 while (substr($URL, -1, 1) == '/') { $URL = substr($URL, 0, -1); }
72 // Initialize the configuration
79 setConfigEntry('FLOAT_MASK', '%01.5f');
81 // CFG: HOST-URL (without trailing '/' !)
82 setConfigEntry('URL', $URL);
84 // CFG: DOMAIN-NAME (without trailing '/' !)
85 setConfigEntry('DOMAIN', detectDomainName());
88 setConfigEntry('PATH', $path);
91 setConfigEntry('VERSION', 'v0.2.1');
94 setConfigEntry('AUTHOR' , 'Roland Häder');
97 setConfigEntry('TITLE', 'Mailer-Project');
100 setConfigEntry('COPY', 'Copyright © 2003 - 2009, by Roland Häder,<br />2009 - 2016 by Mailer Developer Team');
103 setConfigEntry('CACHE_PATH', 'inc/cache/');
105 // CFG: CACHE-EXTENSION
106 setConfigEntry('CACHE_EXTENSION', '.cache.php');
108 // CFG: INTERNAL-STATS (This setting is overwritten by ext-other equal and prior version 0.2.7)
109 setConfigEntry('internal_stats', 'N');
111 // CFG: DEBUG-TEMPLATE-CACHE
112 setConfigEntry('DEBUG_TEMPLATE_CACHE', 'Y');
115 setConfigEntry('salt_length', 10);
117 // CFG: MINIMUM-ADMIN-PASS-LENGTH
118 setConfigEntry('minium_admin_pass_length', 4);
120 // Remove maybe conflicting variables
124 // Connect to the database...
125 loadIncludeOnce('inc/mysql-connect.php');