Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[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  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
14  * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
15  * For more information visit: http://mxchange.org                      *
16  *                                                                      *
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.                                  *
21  *                                                                      *
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.                         *
26  *                                                                      *
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,               *
30  * MA  02110-1301  USA                                                  *
31  ************************************************************************/
32
33 // Some security stuff...
34 if (!defined('__SECURITY')) {
35         die();
36 } // END - if
37
38 /************************************************************************
39  *      PLEASE DO NOT EDIT THE COMMENTS! install.php NEEDS THEM!        *
40  ************************************************************************/
41
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');
46 } // END - if
47
48 // CFG: ERROR-REPORTING
49 error_reporting(E_ALL | E_DEPRECATED | E_STRICT);
50
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('');
55 } // END - if
56
57 // Detect path (without 'inc') and fix windozer paths
58 $path = str_replace(chr(92), '/', substr(dirname(__FILE__), 0, -3));
59
60 // Some very important function includes
61 foreach (array('config', 'wrapper', 'template', 'module', 'inc', 'http') as $inc) {
62         include($path . 'inc/' . $inc . '-functions.php');
63 } // END - foreach
64
65 // General functions
66 include($path . 'inc/functions.php');
67
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); }
71
72 // Initialize the configuration
73 initConfig();
74
75 // Init HTTP handling
76 initHttp();
77
78 // CFG: FLOAT-MASK
79 setConfigEntry('FLOAT_MASK', '%01.5f');
80
81 // CFG: HOST-URL (without trailing '/' !)
82 setConfigEntry('URL', $URL);
83
84 // CFG: DOMAIN-NAME (without trailing '/' !)
85 setConfigEntry('DOMAIN', detectDomainName());
86
87 // CFG: SERVER-PATH
88 setConfigEntry('PATH', $path);
89
90 // CFG: VERSION
91 setConfigEntry('VERSION', 'v0.2.1');
92
93 // CFG: AUTHOR
94 setConfigEntry('AUTHOR' , 'Roland H&auml;der');
95
96 // CFG: TITLE
97 setConfigEntry('TITLE', 'Mailer-Project');
98
99 // CFG: COPY
100 setConfigEntry('COPY', 'Copyright &copy; 2003 - 2009, by Roland H&auml;der,<br />2009 - 2015 by Mailer Developer Team');
101
102 // CFG: CACHE-PATH
103 setConfigEntry('CACHE_PATH', 'inc/cache/');
104
105 // CFG: CACHE-EXTENSION
106 setConfigEntry('CACHE_EXTENSION', '.cache.php');
107
108 // CFG: INTERNAL-STATS (This setting is overwritten by ext-other equal and prior version 0.2.7)
109 setConfigEntry('internal_stats', 'N');
110
111 // CFG: DEBUG-TEMPLATE-CACHE
112 setConfigEntry('DEBUG_TEMPLATE_CACHE', 'Y');
113
114 // CFG: SALT-LENGTH
115 setConfigEntry('salt_length', 10);
116
117 // CFG: MINIMUM-ADMIN-PASS-LENGTH
118 setConfigEntry('minium_admin_pass_length', 4);
119
120 // Remove maybe conflicting variables
121 unset($url);
122 unset($path);
123
124 // Connect to the database...
125 loadIncludeOnce('inc/mysql-connect.php');
126
127 // Init stats system
128 initStatsSystem();
129
130 // [EOF]
131 ?>