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