]> git.mxchange.org Git - mailer.git/blob - inc/config-global.php
Rewrote init-phase stuff:
[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 - 2016 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 don't touch anything here. Instead set them again in config-local.php *
40  ********************************************************************************/
41
42 // Auto-detection of URL
43 $URL = detectServerProtocol() . '://' . detectServerName() . str_replace(chr(92), '/', dirname($_SERVER['PHP_SELF']));
44 while (substr($URL, -1, 1) == '/') { $URL = substr($URL, 0, -1); }
45
46 // CFG: HOST-URL (without trailing '/' !)
47 setConfigEntry('URL', $URL);
48
49 // CFG: FLOAT-MASK
50 setConfigEntry('FLOAT_MASK', '%01.5f');
51
52 // CFG: DOMAIN-NAME (without trailing '/' !)
53 setConfigEntry('DOMAIN', detectDomainName());
54
55 // CFG: VERSION
56 setConfigEntry('VERSION', 'v0.2.1');
57
58 // CFG: AUTHOR
59 setConfigEntry('AUTHOR' , 'Roland H&auml;der');
60
61 // CFG: TITLE
62 setConfigEntry('TITLE', 'Mailer-Project');
63
64 // CFG: COPY
65 setConfigEntry('COPY', 'Copyright &copy; 2003 - 2009, by Roland H&auml;der,<br />2009 - 2016 by Mailer Developer Team');
66
67 // CFG: CACHE-PATH
68 setConfigEntry('CACHE_PATH', 'inc/cache/');
69
70 // CFG: CACHE-EXTENSION
71 setConfigEntry('CACHE_EXTENSION', '.cache.php');
72
73 // CFG: INTERNAL-STATS (This setting is overwritten by ext-other equal and prior version 0.2.7)
74 setConfigEntry('internal_stats', 'N');
75
76 // CFG: DEBUG-TEMPLATE-CACHE
77 setConfigEntry('DEBUG_TEMPLATE_CACHE', 'Y');
78
79 // CFG: SALT-LENGTH
80 setConfigEntry('salt_length', 10);
81
82 // CFG: MINIMUM-ADMIN-PASS-LENGTH
83 setConfigEntry('minium_admin_pass_length', 4);
84
85 // Remove maybe conflicting variables
86 unset($URL);
87
88 // [EOF]
89 ?>