2 /************************************************************************
3 * MXChange v0.2.1 Start: 08/25/2003 *
4 * =============== Last change: 04/16/2004 *
6 * -------------------------------------------------------------------- *
8 * -------------------------------------------------------------------- *
9 * Short description : Your configuration data (MySQL) *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Ihre Konfigurationsdaten (MySQL) *
12 * -------------------------------------------------------------------- *
15 * $Tag:: 0.2.1-FINAL $ *
17 * Needs to be in all Files and every File needs "svn propset *
18 * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
19 * -------------------------------------------------------------------- *
20 * Copyright (c) 2003 - 2008 by Roland Haeder *
21 * For more information visit: http://www.mxchange.org *
23 * This program is free software; you can redistribute it and/or modify *
24 * it under the terms of the GNU General Public License as published by *
25 * the Free Software Foundation; either version 2 of the License, or *
26 * (at your option) any later version. *
28 * This program is distributed in the hope that it will be useful, *
29 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
30 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
31 * GNU General Public License for more details. *
33 * You should have received a copy of the GNU General Public License *
34 * along with this program; if not, write to the Free Software *
35 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
37 ************************************************************************/
39 // Some security stuff...
40 if (!defined('__SECURITY'))
42 $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
46 /************************************************************************
47 * PLEASE DO NOT EDIT THE COMMENTS! install.php NEEDS THEM! *
48 ************************************************************************/
50 if (function_exists('date_default_timezone_set')) {
52 @date_default_timezone_set("Europe/Berlin");
55 // Most of these constants are old and deprecated. We don't use them either.
56 // You can still feel free to use them in your templates / scripts if you like :-)
57 define('VERSION', "v0.2.1");
58 define('AUTHOR' , "Roland Häder");
59 define('TITLE', "MXChange - Mail Exchange");
60 define('COPY', "© 2003 - 2008, by Roland Häder");
62 // CFG: ERROR_REPORTING
65 // CFG: REGISTER-GLOBALS
66 @import_request_variables('');
69 define('SITE_KEY', "gg42ny8-4yng23498-mf423igum-mtu248utn42-mf4839gun43");
72 define('DATE_KEY', date("d-m-Y (l-F-T)", time()));
74 // CFG: DEFAULT-LANGUAGE
75 define('DEFAULT_LANG', "de");
77 // CFG: NULLPASS-WARNING
78 define('warn_no_pass', true);
81 define('WRITE_FOOTER', true);
84 define('OUTPUT_MODE', "render");
87 define('MAIN_TITLE', "Your mail-exchanger title");
90 define('SLOGAN', "Your cool slogan here");
92 // Auto-detection... (patched by "Stelzi" aka. profi-concept, thanks again!)
93 $URL = "http://".getenv('SERVER_NAME') . str_replace("\\", "/", dirname($_SERVER['PHP_SELF']));
94 while (substr($URL, -1, 1) == "/") { $URL = substr($URL, 0, -1); }
95 $PATH = str_replace("\\", "/", substr(dirname(__FILE__), 0, -3));
97 // CFG: HOST-URL (without trailing '/' !)
101 define('PATH', $PATH);
104 define('WEBMASTER', "you@some-hoster.tld.invalid");
107 define('mxchange_installed', false);
110 define('admin_registered', false);
113 define('frameset_active', false);
115 // CFG: DEBUG-MODE (if enabled all mails will be *displayed* and *not* send!)
116 define('DEBUG_MODE', false);
118 // CFG: DEBUG-MAIL (turn this on if you need to debug mails, only affects if DEBUG_MODE is true)
119 //define('DEBUG_MAIL', true);
121 // CFG: DEBUG-RESET (comment in to test daily reset, comment out to not test)
122 //define('DEBUG_RESET', true);
124 // CFG: DEBUG-MONTHLY (comment in to test monthly reset, comment out to not test)
125 //define('DEBUG_MONTHLY', true);
127 // CFG: DEBUG-WEEKLY (comment in to test weekly reset, comment out to not test)
128 //define('DEBUG_WEEKLY', true);
130 // Your MySQL data (we don't like M$ SQL ;-) )
133 'host' => "localhost",
138 // CFG: MYSQL-PASSWORD
139 'password' => "pass",
143 define('_MYSQL_PREFIX', "mxchange");
146 define('_TABLE_TYPE', "MyISAM");
148 // CFG: DATABASE-TYPE
149 define('_DB_TYPE', "mysql3");
152 define('LEAD_CODE_ENABLED', true);
153 define('LEAD_EXPIRY_TIME' , (30*24*60*60)); // == 30 days
155 // SMTP-Subsystem (keep all empty to use legacy mail() command!)
156 // CFG: SMTP-HOSTNAME
157 define('SMTP_HOSTNAME', "");
159 define('SMTP_USER' , "");
160 // CFG: SMTP-PASSWORD
161 define('SMTP_PASSWORD', "");
163 // SSL cookies? (enable only if you have SSL, URLs will begin with https://)
164 define('SSL_COOKIES', false);
166 // CFG: BACKLINK (Enable backlink to mxchange.org in footer? rel=external is set!)
167 define('ENABLE_BACKLINK', true);
169 // Connect to the MySQL database...
170 require(constant('PATH')."inc/mysql-connect.php");