]> git.mxchange.org Git - mailer.git/blob - inc/config-global.php
Even more fixes for broken first installation attempt (sorry all)
[mailer.git] / inc / config-global.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 04/03/2009 *
4  * ===================                          Last change: 04/03/2009 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : config-global.php                                *
8  * -------------------------------------------------------------------- *
9  * Short description : Global configuration                             *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Globale Konfiguration                            *
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 - 2011 by Mailer Developer Team                   *
20  * For more information visit: http://www.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         die();
41 } // END - if
42
43 /************************************************************************
44  *      PLEASE DO NOT EDIT THE COMMENTS! install.php NEEDS THEM!        *
45  ************************************************************************/
46
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');
51 } // END - if
52
53 // CFG: ERROR_REPORTING
54 error_reporting(E_ALL | E_STRICT);
55
56 // CFG: REGISTER-GLOBALS
57 @import_request_variables('');
58
59 // Detect path
60 $PATH = str_replace("\\", '/', substr(dirname(__FILE__), 0, -3));
61
62 // Some very important function includes
63 foreach (array('config','wrapper','template','module','inc','stats') as $inc) {
64         include($PATH . 'inc/' . $inc . '-functions.php');
65 } // END - foreach
66
67 // Own functions
68 include($PATH . 'inc/functions.php');
69
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); }
73
74 // Initialize the configuration
75 initConfig();
76
77 // CFG: HOST-URL (without trailing '/' !)
78 setConfigEntry('URL', $URL);
79
80 // CFG: DOMAIN-NAME (without trailing '/' !)
81 setConfigEntry('DOMAIN', detectDomainName());
82
83 // CFG: SERVER-PATH
84 setConfigEntry('PATH', $PATH);
85
86 // CFG: VERSION
87 setConfigEntry('VERSION', 'v0.2.1');
88
89 // CFG: AUTHOR
90 setConfigEntry('AUTHOR' , 'Roland H&auml;der');
91
92 // CFG: TITLE
93 setConfigEntry('TITLE', 'Mailer Project');
94
95 // CFG: COPY
96 setConfigEntry('COPY', 'Copyright &copy; 2003 - 2009, by Roland H&auml;der,<br />2009 - 2011 by Mailer Developer Team');
97
98 // CFG: CACHE_PATH
99 setConfigEntry('CACHE_PATH', 'inc/cache/');
100
101 // CFG: STATS-ENABLED (This setting is overwritten by ext-other; at least version 0.2.6)
102 setConfigEntry('stats_enabled', 'N');
103
104 // GLOBAL: DEBUG-TEMPLATE-CACHE
105 setConfigEntry('DEBUG_TEMPLATE_CACHE', 'N');
106
107 // Connect to the database...
108 loadIncludeOnce('inc/mysql-connect.php');
109
110 // Init stats system
111 initStatsSystem();
112
113 // [EOF]
114 ?>