New naming convention applied to many functions, see #118 for details
[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  * $Revision::                                                        $ *
14  * $Date::                                                            $ *
15  * $Tag:: 0.2.1-FINAL                                                 $ *
16  * $Author::                                                          $ *
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                  *
22  *                                                                      *
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.                                  *
27  *                                                                      *
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.                         *
32  *                                                                      *
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,               *
36  * MA  02110-1301  USA                                                  *
37  ************************************************************************/
38
39 // Some security stuff...
40 if (!defined('__SECURITY'))
41 {
42         $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
43         require($INC);
44 }
45
46 /************************************************************************
47  *      PLEASE DO NOT EDIT THE COMMENTS! install.php NEEDS THEM!        *
48  ************************************************************************/
49
50 if (function_exists('date_default_timezone_set')) {
51         // CFG: TIME-ZONE
52         @date_default_timezone_set("Europe/Berlin");
53 }
54
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&auml;der");
59 define('TITLE', "MXChange - Mail Exchange");
60 define('COPY', "Copyright &copy; 2003 - 2008, by Roland H&auml;der");
61
62 // CFG: ERROR_REPORTING
63 @error_reporting(0);
64
65 // CFG: REGISTER-GLOBALS
66 @import_request_variables('');
67
68 // CFG: SITE-KEY
69 define('SITE_KEY', "gg42ny8-4yng23498-mf423igum-mtu248utn42-mf4839gun43");
70
71 // CFG: DATE-KEY
72 define('DATE_KEY', date("d-m-Y (l-F-T)", time()));
73
74 // CFG: DEFAULT-LANGUAGE
75 define('DEFAULT_LANG', "de");
76
77 // CFG: NULLPASS-WARNING
78 define('warn_no_pass', true);
79
80 // CFG: WRITE-FOOTER
81 define('WRITE_FOOTER', true);
82
83 // CFG: OUTPUT-MODE
84 define('OUTPUT_MODE', "render");
85
86 // CFG: MAIN_TITLE
87 define('MAIN_TITLE', "Your mail-exchanger title");
88
89 // CFG: SLOGAN
90 define('SLOGAN', "Your cool slogan here");
91
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));
96
97 // CFG: HOST-URL (without trailing '/' !)
98 define('URL', $URL);
99
100 // CFG: SERVER-PATH
101 define('PATH', $PATH);
102
103 // CFG: WEBMASTER
104 define('WEBMASTER', "you@some-hoster.tld.invalid");
105
106 // CFG: INSTALLED
107 define('mxchange_installed', false);
108
109 // CFG: ADMIN-SETUP
110 define('admin_registered', false);
111
112 // CFG: FRAMESET
113 define('frameset_active', false);
114
115 // CFG: DEBUG-MODE (if enabled all mails will be *displayed* and *not* send!)
116 define('DEBUG_MODE', false);
117
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);
120
121 // CFG: DEBUG-RESET (comment in to test daily reset, comment out to not test)
122 //define('DEBUG_RESET', true);
123
124 // CFG: DEBUG-MONTHLY (comment in to test monthly reset, comment out to not test)
125 //define('DEBUG_MONTHLY', true);
126
127 // CFG: DEBUG-WEEKLY (comment in to test weekly reset, comment out to not test)
128 //define('DEBUG_WEEKLY', true);
129
130 // Your MySQL data (we don't like M$ SQL ;-) )
131 $MySQL = array(
132         // CFG: MYSQL-HOST
133         'host'     => "localhost",
134         // CFG: MYSQL-DBASE
135         'dbase'    => "db",
136         // CFG: MYSQL-LOGIN
137         'login'    => "user",
138         // CFG: MYSQL-PASSWORD
139         'password' => "pass",
140 );
141
142 // CFG: MYSQL-PREIFX
143 define('_MYSQL_PREFIX', "mxchange");
144
145 // CFG: TABLE-TYPE
146 define('_TABLE_TYPE', "MyISAM");
147
148 // CFG: DATABASE-TYPE
149 define('_DB_TYPE', "mysql3");
150
151 // Lead-Code data
152 define('LEAD_CODE_ENABLED', true);
153 define('LEAD_EXPIRY_TIME' , (30*24*60*60)); // == 30 days
154
155 // SMTP-Subsystem (keep all empty to use legacy mail() command!)
156 // CFG: SMTP-HOSTNAME
157 define('SMTP_HOSTNAME', "");
158 // CFG: SMTP-USER
159 define('SMTP_USER'    , "");
160 // CFG: SMTP-PASSWORD
161 define('SMTP_PASSWORD', "");
162
163 // SSL cookies? (enable only if you have SSL, URLs will begin with https://)
164 define('SSL_COOKIES', false);
165
166 // CFG: BACKLINK (Enable backlink to mxchange.org in footer? rel=external is set!)
167 define('ENABLE_BACKLINK', true);
168
169 // Connect to the MySQL database...
170 require(constant('PATH')."inc/mysql-connect.php");
171
172 //
173 ?>