817a337926b5b69325cb0a76d2c0b24d5a4691ae
[core.git] / inc / config.php
1 <?php
2 /**
3  * General configuration. Do not touch this file! If you need different settings
4  * create a config-local.php in this directory at and set your changed
5  * configuration entries there.
6  *
7  * @author              Roland Haeder <webmaster@ship-simu.org>
8  * @version             0.0.0
9  * @copyright   Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
10  * @license             GNU GPL 3.0 or any newer version
11  * @link                http://www.ship-simu.org
12  *
13  * This program is free software: you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation, either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program. If not, see <http://www.gnu.org/licenses/>.
25  */
26
27 // Load the class from inc/config direktory
28 require(ApplicationEntryPoint::detectCorePath() . '/inc/classes/interfaces/class_FrameworkInterface.php');
29 require(ApplicationEntryPoint::detectCorePath() . '/inc/classes/interfaces/registry/class_Registerable.php');
30 require(ApplicationEntryPoint::detectCorePath() . '/inc/config/class_FrameworkConfiguration.php');
31
32 // Get a new configuration instance
33 $cfg = FrameworkConfiguration::getInstance();
34
35 // CFG: SERVER-PATH
36 $cfg->setConfigEntry('base_path', ApplicationEntryPoint::detectCorePath() . '/');
37
38 // CFG: BASE-URL
39 $cfg->setConfigEntry('base_url', $cfg->detectBaseUrl());
40
41 // CFG: DATABASE-TYPE
42 $cfg->setConfigEntry('db_type', 'local');
43
44 // CFG: LOCAL-DB-PATH
45 $cfg->setConfigEntry('local_db_path', $cfg->getConfigEntry('base_path') . 'db/');
46
47 // CFG: TIME-ZONE
48 $cfg->setDefaultTimezone('Europe/Berlin');
49
50 // CFG: MAGIC-QUOTES-RUNTIME
51 $cfg->setMagicQuotesRuntime(false);
52
53 // CFG: CLASS-PREFIX
54 $cfg->setConfigEntry('class_prefix', 'class_');
55
56 // CFG: CLASS-SUFFIX
57 $cfg->setConfigEntry('class_suffix', '.php');
58
59 // CFG: RAW-TEMPLATE-EXTENSION
60 $cfg->setConfigEntry('raw_template_extension', '.tpl');
61
62 // CFG: CODE-TEMPLATE-EXTENSION
63 $cfg->setConfigEntry('code_template_extension', '.ctp');
64
65 // CFG: SELECTOR-PATH
66 $cfg->setConfigEntry('selector_path', 'selector');
67
68 // CFG: APPLICATION-HELPER-CLASS
69 $cfg->setConfigEntry('app_helper_class', 'ApplicationHelper');
70
71 // CFG: LAUNCH-METHOD
72 $cfg->setConfigEntry('entry_method', 'entryPoint');
73
74 // CFG: TEMPLATE-BASE-PATH
75 $cfg->setConfigEntry('tpl_base_path', 'templates/');
76
77 // CFG: LANGUAGE-BASE-PATH
78 $cfg->setConfigEntry('lang_base_path', 'inc/language/');
79
80 // CFG: COMPRESSOR-BASE-PATH
81 $cfg->setConfigEntry('compressor_base_path', 'inc/classes/main/compressor/');
82
83 // CFG: APPLICATION-BASE-PATH
84 $cfg->setConfigEntry('application_base_path', 'application/');
85
86 // CFG: APPLICATION-PATH
87 $cfg->setConfigEntry('application_path', $cfg->getConfigEntry('base_path') . $cfg->getConfigEntry('application_base_path'));
88
89 // CFG: COMPILE-OUTPUT-PATH
90 $cfg->setConfigEntry('compile_output_path', 'templates/_compiled/');
91
92 // CFG: TEMPLATE-CLASS
93 $cfg->setConfigEntry('web_template_class', 'WebTemplateEngine');
94
95 // CFG: DEBUG-CLASS
96 $cfg->setConfigEntry('debug_class', 'DebugWebOutput');
97
98 // CFG: DEFAULT-LANGUAGE
99 $cfg->setConfigEntry('default_lang', 'de'); // A two-char language string: de for german, en for english and so on
100
101 // CFG: WEB-TEMPLATE-TYPE
102 $cfg->setConfigEntry('web_template_type', 'html');
103
104 // CFG: EMAIL-TEMPLATE-TYPE
105 $cfg->setConfigEntry('email_template_type', 'emails');
106
107 // CFG: CODE-TEMPLATE-TYPE
108 $cfg->setConfigEntry('code_template_type', 'code');
109
110 // CFG: IMAGE-TEMPLATE-TYPE
111 $cfg->setConfigEntry('image_template_type', 'image');
112
113 // CFG: MENU-TEMPLATE-TYPE
114 $cfg->setConfigEntry('menu_template_type', 'menu');
115
116 // CFG: OUTPUT-CLASS
117 $cfg->setConfigEntry('output_class', 'WebOutput');
118
119 // CFG: SELECTOR-TEMPLATE-PREFIX
120 $cfg->setConfigEntry('tpl_selector_prefix', 'selector');
121
122 // CFG: WEB-CONTENT-TYPE
123 $cfg->setConfigEntry('web_content_type', 'text/html');
124
125 // CFG: VALID-TEMPLATE-VARIABLE
126 $cfg->setConfigEntry('tpl_valid_var', 'content');
127
128 // CFG: META-AUTHOR
129 $cfg->setConfigEntry('meta_author', 'Your-name-here');
130
131 // CFG: META-PUBLISHER
132 $cfg->setConfigEntry('meta_publisher', 'Your-name-here');
133
134 // CFG: META-KEYWORDS
135 $cfg->setConfigEntry('meta_keywords', 'test,test,test');
136
137 // CFG: META-DESCRIPTION
138 $cfg->setConfigEntry('meta_description', 'A description for your website');
139
140 // CFG: SELECTOR-MAIN-TEMPLATE
141 $cfg->setConfigEntry('selector_main_tpl', 'selector_main');
142
143 // CFG: SELECTOR-APPS-TEMPLATE
144 $cfg->setConfigEntry('selector_apps_tpl', 'selector_apps');
145
146 // CFG: SELECTOR-NAME
147 $cfg->setConfigEntry('selector_name', 'selector');
148
149 // CFG: DEFAULT-APPLICATION
150 $cfg->setConfigEntry('default_application', 'selector');
151
152 // CFG: VERBOSE-LEVEL
153 $cfg->setConfigEntry('verbose_level', 0);
154
155 // CFG: CACHE-CLASS
156 $cfg->setConfigEntry('cache_class', 'MemoryCache');
157
158 // CFG: SEARCH-CRITERIA-CLASS
159 $cfg->setConfigEntry('search_criteria_class', 'SearchCriteria');
160
161 // CFG: DATASET-CRITERIA-CLASS
162 $cfg->setConfigEntry('dataset_criteria_class', 'DataSetCriteria');
163
164 // CFG: UPDATE-CRITERIA-CLASS
165 $cfg->setConfigEntry('update_criteria_class', 'UpdateCriteria');
166
167 // CFG: FILE-IO-CLASS
168 $cfg->setConfigEntry('file_io_class', 'FileIoHandler');
169
170 // CFG: FILTER-CHAIN-CLASS
171 $cfg->setConfigEntry('filter_chain_class', 'FilterChain');
172
173 // CFG: FILE-INPUT-CLASS
174 $cfg->setConfigEntry('file_input_class', 'FileIoStream');
175
176 // CFG: FILE-OUTPUT-CLASS
177 $cfg->setConfigEntry('file_output_class', 'FileIoStream');
178
179 // CFG: EMAIL-VALIDATOR-FILTER
180 $cfg->setConfigEntry('email_validator_filter', 'EmailValidatorFilter');
181
182 // CFG: USERNAME-VALIDATOR-FILTER
183 $cfg->setConfigEntry('username_validator_filter', 'UserNameValidatorFilter');
184
185 // CFG: USERNAME-IS-GUEST-FILTER
186 $cfg->setConfigEntry('username_is_guest_filter', 'UserNameIsGuestFilter');
187
188 // CFG: PASSWORD-VALIDATOR-FILTER
189 $cfg->setConfigEntry('password_validator_filter', 'PasswordValidatorFilter');
190
191 // CFG: RULES-ACCEPTED-FILTER
192 $cfg->setConfigEntry('rules_accepted_filter', 'RulesAcceptedFilter');
193
194 // CFG: USERNAME-VERIFIER-FILTER
195 $cfg->setConfigEntry('username_verifier_filter', 'UserNameVerifierFilter');
196
197 // CFG: USER-GUEST-VERIFIER-FILTER
198 $cfg->setConfigEntry('user_guest_verifier_filter', 'UserGuestVerifierFilter');
199
200 // CFG: EMAIL-VERIFIER-FILTER
201 $cfg->setConfigEntry('email_verifier_filter', 'EmailVerifierFilter');
202
203 // CFG: PASSWORD-VERIFIER-FILTER
204 $cfg->setConfigEntry('password_verifier_filter', 'PasswordVerifierFilter');
205
206 // CFG: PASSWD-GUEST-VERIFIER-FILTER
207 $cfg->setConfigEntry('passwd_guest_verifier_filter', 'PasswordGuestVerifierFilter');
208
209 // CFG: EMAIL-CHANGE-FILTER
210 $cfg->setConfigEntry('email_change_filter', 'EmailChangeFilter');
211
212 // CFG: PASSWORD-CHANGE-FILTER
213 $cfg->setConfigEntry('password_change_filter', 'PasswordChangeFilter');
214
215 // CFG: ACCOUNT-PASSWORD-FILTER
216 $cfg->setConfigEntry('account_password_filter', 'AccountPasswordVerifierFilter');
217
218 // CFG: USER-STATUS-FILTER
219 $cfg->setConfigEntry('user_status_filter', 'UserStatusVerifierFilter');
220
221 // CFG: USER-UNCONFIRMED-FILTER
222 $cfg->setConfigEntry('user_unconfirmed_filter', 'UserUnconfirmedVerifierFilter');
223
224 // CFG: CRYPTO-CLASS
225 $cfg->setConfigEntry('crypto_class', 'CryptoHelper');
226
227 // CFG: RNG-CLASS
228 $cfg->setConfigEntry('rng_class', 'RandomNumberGenerator');
229
230 // CFG: USER-DB-WRAPPER-CLASS
231 $cfg->setConfigEntry('user_db_wrapper_class', 'UserDatabaseWrapper');
232
233 // CFG: NEWS-DB-WRAPPER-CLASS
234 $cfg->setConfigEntry('news_db_wrapper_class', 'NewsDatabaseWrapper');
235
236 // CFG: WEB-CMD-RESOLVER-CLASS
237 $cfg->setConfigEntry('web_cmd_resolver_class', 'WebCommandResolver');
238
239 // CFG: WEB-CMD-LOGIN-RESOLVER-CLASS
240 $cfg->setConfigEntry('web_cmd_login_resolver_class', 'WebCommandResolver');
241
242 // CFG: IMAGE-CMD-RESOLVER-CLASS
243 $cfg->setConfigEntry('image_cmd_resolver_class', 'ImageCommandResolver');
244
245 // CFG: IMAGE-CMD-CODE-CAPTCHA-RESOLVER-CLASS
246 $cfg->setConfigEntry('image_cmd_code_captcha_resolver_class', 'ImageCommandResolver');
247
248 // CFG: MAILER-CLASS
249 $cfg->setConfigEntry('mailer_class', 'DebugMailer');
250
251 // CFG: XML-PARSER-CLASS
252 $cfg->setConfigEntry('xml_parser_class', 'XmlParser');
253
254 // CFG: MATH-PRIME
255 $cfg->setConfigEntry('math_prime', 591623);
256
257 // CFG: DATE-KEY
258 $cfg->setConfigEntry('date_key', date('d-m-Y (l-F-T)', time()));
259
260 // CFG: SALT-LENGTH
261 $cfg->setConfigEntry('salt_length', 10);
262
263 // CFG: RND-STR-LENGTH
264 $cfg->setConfigEntry('rnd_str_length', 128);
265
266 // CFG: HASH-MASK
267 $cfg->setConfigEntry('hash_mask', "%1s:%2s:%3s"); // 1=salt, 2=extra salt, 3=plain password
268
269 // CFG: IS-SINGLE-SERVER
270 $cfg->setConfigEntry('is_single_server', 'Y');
271
272 // CFG: POST-REGISTRATION-CLASS
273 $cfg->setConfigEntry('post_registration_class', 'LoginAfterRegistrationAction');
274
275 // CFG: USER-CLASS
276 $cfg->setConfigEntry('user_class', 'Member');
277
278 // CFG: GUEST-CLASS
279 $cfg->setConfigEntry('guest_class', 'Guest');
280
281 // CFG: COOKIE-EXPIRE
282 $cfg->setConfigEntry('cookie_expire', (60*60*2)); // Two hours!
283
284 // CFG: COOKIE-PATH
285 $cfg->setConfigEntry('cookie_path', $cfg->detectScriptPath() . '/');
286
287 // CFG: COOKIE-DOMAIN
288 $cfg->setConfigEntry('cookie_domain', $cfg->detectDomain()); // Is mostly the same...
289
290 // CFG: COOKIE-SSL
291 $cfg->setConfigEntry('cookie_ssl', $cfg->isHttpSecured());
292
293 // CFG: CRYPT-FIXED-SALT
294 $cfg->setConfigEntry('crypt_fixed_salt', 'N');
295
296 // CFG: DB-UPDATE-PRIMARY-FORCED
297 $cfg->setConfigEntry('db_update_primary_forced', 'Y');
298
299 // CFG: GERMAN-DATE-TIME
300 $cfg->setConfigEntry('german_date_time', "%3\$s.%2\$s.%1\$s, %4\$s:%5\$s:%6\$s");
301
302 // CFG: PRODUCT-INSTALL-MODE
303 $cfg->setConfigEntry('product_install_mode', 'debug');
304
305 // CFG: DECIMALS
306 $cfg->setConfigEntry('decimals', 3);
307
308 // CFG: STACKER-CLASS
309 $cfg->setConfigEntry('menu_stacker_class', 'FiLoStacker');
310
311 // CFG: STACKER-GENERIC-MAX-SIZE
312 $cfg->setConfigEntry('stacker_generic_max_size', 100);
313
314 // CFG: STACKER-CURRENT-NODE-MAX-SIZE
315 $cfg->setConfigEntry('stacker_current_node_max_size', 20);
316
317 // [EOF]
318 ?>