All, except security block, include()/require() rewritten to own LOAD_INC()/LOAD_INC_...
[mailer.git] / inc / config.php
1 <?php
2 /************************************************************************
3  * MXChange v0.2.1                                    Start: 08/25/2003 *
4  * ===============                              Last change: 04/16/2004 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : config.php                                       *
8  * -------------------------------------------------------------------- *
9  * Short description : Your configuration data (MySQL)                  *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Ihre Konfigurationsdaten (MySQL)                 *
12  * -------------------------------------------------------------------- *
13  *                                                                      *
14  * -------------------------------------------------------------------- *
15  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
16  * For more information visit: http://www.mxchange.org                  *
17  *                                                                      *
18  * This program is free software; you can redistribute it and/or modify *
19  * it under the terms of the GNU General Public License as published by *
20  * the Free Software Foundation; either version 2 of the License, or    *
21  * (at your option) any later version.                                  *
22  *                                                                      *
23  * This program is distributed in the hope that it will be useful,      *
24  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
25  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
26  * GNU General Public License for more details.                         *
27  *                                                                      *
28  * You should have received a copy of the GNU General Public License    *
29  * along with this program; if not, write to the Free Software          *
30  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
31  * MA  02110-1301  USA                                                  *
32  ************************************************************************/
33
34 // Some security stuff...
35 if (!defined('__SECURITY'))
36 {
37         $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
38         require($INC);
39 }
40
41 /************************************************************************
42  *      PLEASE DO NOT EDIT THE COMMENTS! install.php NEEDS THEM!        *
43  ************************************************************************/
44
45 if (function_exists('date_default_timezone_set')) {
46         // CFG: TIME-ZONE
47         @date_default_timezone_set("Europe/Berlin");
48 }
49
50 // Most of these constants are old and deprecated. We don't use them either.
51 // You can still feel free to use them in your templates / scripts if you like :-)
52 define('VERSION', "v0.2.1");
53 define('AUTHOR' , "Roland H&auml;der");
54 define('TITLE', "MXChange - Mail Exchange");
55 define('COPY', "&copy; 2003 - 2008, by Roland H&auml;der");
56
57 // CFG: ERROR_REPORTING
58 @error_reporting(0);
59
60 // CFG: REGISTER-GLOBALS
61 @import_request_variables('');
62
63 // CFG: SITE-KEY
64 define('SITE_KEY', "gg42ny8-4yng23498-mf423igum-mtu248utn42-mf4839gun43");
65
66 // CFG: DATE-KEY
67 define('DATE_KEY', date("d-m-Y (l-F-T)", time()));
68
69 // CFG: DEFAULT-LANGUAGE
70 define('DEFAULT_LANG', "de");
71
72 // CFG: NULLPASS-WARNING
73 define('warn_no_pass', true);
74
75 // CFG: WRITE-FOOTER
76 define('WRITE_FOOTER', true);
77
78 // CFG: OUTPUT-MODE
79 define('OUTPUT_MODE', "render");
80
81 // CFG: MAIN_TITLE
82 define('MAIN_TITLE', "Your mail-exchanger title");
83
84 // CFG: SLOGAN
85 define('SLOGAN', "Your cool slogan here");
86
87 // Auto-detection... (patched by "Stelzi" aka. profi-concept, thanks again!)
88 $URL = "http://".getenv('SERVER_NAME') . str_replace("\\", "/", dirname($_SERVER['PHP_SELF']));
89 while (substr($URL, -1, 1) == "/") { $URL = substr($URL, 0, -1); }
90 $PATH = str_replace("\\", "/", substr(dirname(__FILE__), 0, -3));
91
92 // CFG: HOST-URL (without trailing '/' !)
93 define('URL', $URL);
94
95 // CFG: SERVER-PATH
96 define('PATH', $PATH);
97
98 // CFG: WEBMASTER
99 define('WEBMASTER', "you@some-hoster.tld.invalid");
100
101 // CFG: INSTALLED
102 define('mxchange_installed', false);
103
104 // CFG: ADMIN-SETUP
105 define('admin_registered', false);
106
107 // CFG: FRAMESET
108 define('frameset_active', false);
109
110 // CFG: DEBUG-MODE (if enabled all mails will be *displayed* and *not* send!)
111 define('DEBUG_MODE', false);
112
113 // CFG: DEBUG-MAIL (turn this on if you need to debug mails, only affects if DEBUG_MODE is true)
114 //define('DEBUG_MAIL', true);
115
116 // CFG: DEBUG-RESET (comment in to test daily reset, comment out to not test)
117 //define('DEBUG_RESET', true);
118
119 // CFG: DEBUG-MONTHLY (comment in to test monthly reset, comment out to not test)
120 //define('DEBUG_MONTHLY', true);
121
122 // CFG: DEBUG-WEEKLY (comment in to test weekly reset, comment out to not test)
123 //define('DEBUG_WEEKLY', true);
124
125 // When we are not installing
126 if (!defined('mxchange_installing')) define('mxchange_installing', false);
127
128 // Your MySQL data (we don't like M$ SQL ;-) )
129 $MySQL = array(
130         // CFG: MYSQL-HOST
131         'host'     => "localhost",
132         // CFG: MYSQL-DBASE
133         'dbase'    => "db",
134         // CFG: MYSQL-LOGIN
135         'login'    => "user",
136         // CFG: MYSQL-PASSWORD
137         'password' => "pass",
138 );
139
140 // CFG: MYSQL-PREIFX
141 define('_MYSQL_PREFIX', "mxchange");
142
143 // CFG: DATABASE-TYPE
144 define('_DB_TYPE', "mysql3");
145
146 // Lead-Code data
147 define('LEAD_CODE_ENABLED', true);
148 define('LEAD_EXPIRY_TIME' , (30*24*60*60)); // == 30 days
149
150 // SMTP-Subsystem (keep all empty to use legacy mail() command!)
151 // CFG: SMTP-HOSTNAME
152 define('SMTP_HOSTNAME', "");
153 // CFG: SMTP-USER
154 define('SMTP_USER'    , "");
155 // CFG: SMTP-PASSWORD
156 define('SMTP_PASSWORD', "");
157
158 // SSL cookies? (enable only if you have SSL, URLs will begin with https://)
159 define('SSL_COOKIES', false);
160
161 // CFG: BACKLINK (Enable backlink to mxchange.org in footer? rel=external is set!)
162 define('ENABLE_BACKLINK', true);
163
164 // Connect to the MySQL database...
165 LOAD_INC_ONCE("inc/mysql-connect.php");
166
167 //
168 ?>