Renamed more stuff (will break app_die(), so it needs fixing).
[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@shipsimu.org>
8  * @version             0.0.0
9  * @copyright   Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
10  * @license             GNU GPL 3.0 or any newer version
11  * @link                http://www.shipsimu.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 very basic classes, required to bootstrap
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::getSelfInstance();
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: HTML-TEMPLATE-CLASS
93 $cfg->setConfigEntry('html_template_class', 'HtmlTemplateEngine');
94
95 // CFG: DECO-XML-REWRITER-TEMPLATE-CLASS
96 $cfg->setConfigEntry('deco_xml_rewriter_template_class', 'XmlRewriterTemplateDecorator');
97
98 // CFG: DEBUG-CLASS
99 $cfg->setConfigEntry('debug_class', 'DebugWebOutput');
100
101 // CFG: DEFAULT-LANGUAGE
102 $cfg->setConfigEntry('default_lang', 'de'); // A two-char language string: de for german, en for english and so on
103
104 // CFG: WEB-TEMPLATE-TYPE
105 $cfg->setConfigEntry('web_template_type', 'html');
106
107 // CFG: EMAIL-TEMPLATE-TYPE
108 $cfg->setConfigEntry('email_template_type', 'emails');
109
110 // CFG: CODE-TEMPLATE-TYPE
111 $cfg->setConfigEntry('code_template_type', 'code');
112
113 // CFG: IMAGE-TEMPLATE-TYPE
114 $cfg->setConfigEntry('image_template_type', 'image');
115
116 // CFG: MENU-TEMPLATE-TYPE
117 $cfg->setConfigEntry('menu_template_type', 'menu');
118
119 // CFG: OUTPUT-CLASS
120 $cfg->setConfigEntry('output_class', 'WebOutput');
121
122 // CFG: LANGUAGE-SYSTEM-CLASS
123 $cfg->setConfigEntry('language_system_class', 'LanguageSystem');
124
125 // CFG: SELECTOR-TEMPLATE-PREFIX
126 $cfg->setConfigEntry('tpl_selector_prefix', 'selector');
127
128 // CFG: WEB-CONTENT-TYPE
129 $cfg->setConfigEntry('web_content_type', 'text/html');
130
131 // CFG: VALID-TEMPLATE-VARIABLE
132 $cfg->setConfigEntry('tpl_valid_var', 'content');
133
134 // CFG: META-AUTHOR
135 $cfg->setConfigEntry('meta_author', 'Your-name-here');
136
137 // CFG: META-PUBLISHER
138 $cfg->setConfigEntry('meta_publisher', 'Your-name-here');
139
140 // CFG: META-KEYWORDS
141 $cfg->setConfigEntry('meta_keywords', 'test,test,test');
142
143 // CFG: META-DESCRIPTION
144 $cfg->setConfigEntry('meta_description', 'A description for your website');
145
146 // CFG: SELECTOR-MAIN-TEMPLATE
147 $cfg->setConfigEntry('selector_main_tpl', 'selector_main');
148
149 // CFG: SELECTOR-APPS-TEMPLATE
150 $cfg->setConfigEntry('selector_apps_tpl', 'selector_apps');
151
152 // CFG: SELECTOR-NAME
153 $cfg->setConfigEntry('selector_name', 'selector');
154
155 // CFG: DEFAULT-APPLICATION
156 $cfg->setConfigEntry('default_application', 'selector');
157
158 // CFG: VERBOSE-LEVEL
159 $cfg->setConfigEntry('verbose_level', 0);
160
161 // CFG: CACHE-CLASS
162 $cfg->setConfigEntry('cache_class', 'MemoryCache');
163
164 // CFG: SEARCH-CRITERIA-CLASS
165 $cfg->setConfigEntry('search_criteria_class', 'SearchCriteria');
166
167 // CFG: DATASET-CRITERIA-CLASS
168 $cfg->setConfigEntry('dataset_criteria_class', 'DataSetCriteria');
169
170 // CFG: UPDATE-CRITERIA-CLASS
171 $cfg->setConfigEntry('update_criteria_class', 'UpdateCriteria');
172
173 // CFG: FILE-IO-CLASS
174 $cfg->setConfigEntry('file_io_class', 'FileIoHandler');
175
176 // CFG: DATABASE-RESULT-CLASS
177 $cfg->setConfigEntry('database_result_class', 'CachedDatabaseResult');
178
179 // CFG: FILTER-CHAIN-CLASS
180 $cfg->setConfigEntry('filter_chain_class', 'FilterChain');
181
182 // CFG: FILE-INPUT-CLASS
183 $cfg->setConfigEntry('file_input_class', 'FileIoStream');
184
185 // CFG: FILE-OUTPUT-CLASS
186 $cfg->setConfigEntry('file_output_class', 'FileIoStream');
187
188 // CFG: EMAIL-VALIDATOR-FILTER
189 $cfg->setConfigEntry('email_validator_filter', 'EmailValidatorFilter');
190
191 // CFG: USERNAME-VALIDATOR-FILTER
192 $cfg->setConfigEntry('username_validator_filter', 'UserNameValidatorFilter');
193
194 // CFG: USERNAME-IS-GUEST-FILTER
195 $cfg->setConfigEntry('username_is_guest_filter', 'UserNameIsGuestFilter');
196
197 // CFG: PASSWORD-VALIDATOR-FILTER
198 $cfg->setConfigEntry('password_validator_filter', 'PasswordValidatorFilter');
199
200 // CFG: RULES-ACCEPTED-FILTER
201 $cfg->setConfigEntry('rules_accepted_filter', 'RulesAcceptedFilter');
202
203 // CFG: USERNAME-VERIFIER-FILTER
204 $cfg->setConfigEntry('username_verifier_filter', 'UserNameVerifierFilter');
205
206 // CFG: USER-GUEST-VERIFIER-FILTER
207 $cfg->setConfigEntry('user_guest_verifier_filter', 'UserGuestVerifierFilter');
208
209 // CFG: EMAIL-VERIFIER-FILTER
210 $cfg->setConfigEntry('email_verifier_filter', 'EmailVerifierFilter');
211
212 // CFG: PASSWORD-VERIFIER-FILTER
213 $cfg->setConfigEntry('password_verifier_filter', 'PasswordVerifierFilter');
214
215 // CFG: PASSWD-GUEST-VERIFIER-FILTER
216 $cfg->setConfigEntry('passwd_guest_verifier_filter', 'PasswordGuestVerifierFilter');
217
218 // CFG: EMAIL-CHANGE-FILTER
219 $cfg->setConfigEntry('email_change_filter', 'EmailChangeFilter');
220
221 // CFG: PASSWORD-CHANGE-FILTER
222 $cfg->setConfigEntry('password_change_filter', 'PasswordChangeFilter');
223
224 // CFG: ACCOUNT-PASSWORD-FILTER
225 $cfg->setConfigEntry('account_password_filter', 'AccountPasswordVerifierFilter');
226
227 // CFG: USER-STATUS-FILTER
228 $cfg->setConfigEntry('user_status_filter', 'UserStatusVerifierFilter');
229
230 // CFG: USER-UNCONFIRMED-FILTER
231 $cfg->setConfigEntry('user_unconfirmed_filter', 'UserUnconfirmedVerifierFilter');
232
233 // CFG: CRYPTO-CLASS
234 $cfg->setConfigEntry('crypto_class', 'CryptoHelper');
235
236 // CFG: RNG-CLASS
237 $cfg->setConfigEntry('rng_class', 'RandomNumberGenerator');
238
239 // CFG: USER-DB-WRAPPER-CLASS
240 $cfg->setConfigEntry('user_db_wrapper_class', 'UserDatabaseWrapper');
241
242 // CFG: NEWS-DB-WRAPPER-CLASS
243 $cfg->setConfigEntry('news_db_wrapper_class', 'NewsDatabaseWrapper');
244
245 // CFG: HTML-CMD-RESOLVER-CLASS
246 $cfg->setConfigEntry('html_cmd_resolver_class', 'WebCommandResolver');
247
248 // CFG: HTML-CMD-LOGIN-RESOLVER-CLASS
249 $cfg->setConfigEntry('html_cmd_login_resolver_class', 'WebCommandResolver');
250
251 // CFG: IMAGE-CMD-RESOLVER-CLASS
252 $cfg->setConfigEntry('image_cmd_resolver_class', 'ImageCommandResolver');
253
254 // CFG: IMAGE-CMD-CODE-CAPTCHA-RESOLVER-CLASS
255 $cfg->setConfigEntry('image_cmd_code_captcha_resolver_class', 'ImageCommandResolver');
256
257 // CFG: MAILER-CLASS
258 $cfg->setConfigEntry('mailer_class', 'DebugMailer');
259
260 // CFG: XML-PARSER-CLASS
261 $cfg->setConfigEntry('xml_parser_class', 'XmlParser');
262
263 // CFG: DECO-COMPACTING-XML-PARSER-CLASS
264 $cfg->setConfigEntry('deco_compacting_xml_parser_class', 'XmlCompactorDecorator');
265
266 // CFG: MATH-PRIME
267 $cfg->setConfigEntry('math_prime', 591623);
268
269 // CFG: DATE-KEY
270 $cfg->setConfigEntry('date_key', date('d-m-Y (l-F-T)', time()));
271
272 // CFG: SALT-LENGTH
273 $cfg->setConfigEntry('salt_length', 10);
274
275 // CFG: RND-STR-LENGTH
276 $cfg->setConfigEntry('rnd_str_length', 128);
277
278 // CFG: HASH-EXTRA-MASK
279 $cfg->setConfigEntry('hash_extra_mask', "%1s:%2s:%3s"); // 1=salt, 2=extra salt, 3=plain password/string
280
281 // CFG: HASH-NORMAL-MASK
282 $cfg->setConfigEntry('hash_normal_mask', "%1s:%2s"); // 1=salt, 2=plain password/string
283
284 // CFG: IS-SINGLE-SERVER
285 $cfg->setConfigEntry('is_single_server', 'Y');
286
287 // CFG: POST-REGISTRATION-CLASS
288 $cfg->setConfigEntry('post_registration_class', 'LoginAfterRegistrationAction');
289
290 // CFG: USER-CLASS
291 $cfg->setConfigEntry('user_class', 'Member');
292
293 // CFG: GUEST-CLASS
294 $cfg->setConfigEntry('guest_class', 'Guest');
295
296 // CFG: COOKIE-EXPIRE
297 $cfg->setConfigEntry('cookie_expire', (60*60*2)); // Two hours!
298
299 // CFG: COOKIE-PATH
300 $cfg->setConfigEntry('cookie_path', $cfg->detectScriptPath() . '/');
301
302 // CFG: COOKIE-DOMAIN
303 $cfg->setConfigEntry('cookie_domain', $cfg->detectDomain()); // Is mostly the same...
304
305 // CFG: COOKIE-SSL
306 $cfg->setConfigEntry('cookie_ssl', $cfg->isHttpSecured());
307
308 // CFG: CRYPT-FIXED-SALT
309 $cfg->setConfigEntry('crypt_fixed_salt', 'N');
310
311 // CFG: DB-UPDATE-PRIMARY-FORCED
312 $cfg->setConfigEntry('db_update_primary_forced', 'Y');
313
314 // CFG: GERMAN-DATE-TIME
315 $cfg->setConfigEntry('german_date_time', "%3\$s.%2\$s.%1\$s, %4\$s:%5\$s:%6\$s");
316
317 // CFG: PRODUCT-INSTALL-MODE
318 $cfg->setConfigEntry('product_install_mode', 'debug');
319
320 // CFG: DECIMALS
321 $cfg->setConfigEntry('decimals', 3);
322
323 // CFG: MENU-STACKER-CLASS
324 $cfg->setConfigEntry('menu_stacker_class', 'FiLoStacker');
325
326 // CFG: STACKER-GENERIC-MAX-SIZE
327 $cfg->setConfigEntry('stacker_generic_max_size', 100);
328
329 // CFG: STACKER-CURRENT-NODE-MAX-SIZE
330 $cfg->setConfigEntry('stacker_current_node_max_size', 20);
331
332 // CFG: LOCAL-FILE-DATABASE-CLASS
333 $cfg->setConfigEntry('local_file_database_class', 'CachedLocalFileDatabase');
334
335 // CFG: COMPRESSOR-CHANNEL-CLASS
336 $cfg->setConfigEntry('compressor_channel_class', 'CompressorChannel');
337
338 // CFG: DEBUG-OUTPUT-TIMINGS
339 $cfg->setConfigEntry('debug_output_timings', 'N');
340
341 // CFG: PROXY-HOST
342 $cfg->setConfigEntry('proxy_host', '');
343
344 // CFG: PROXY-PORT
345 $cfg->setConfigEntry('proxy_port', '');
346
347 // CFG: PROXY-USERNAME
348 $cfg->setConfigEntry('proxy_username', '');
349
350 // CFG: PROXY-PASSWORD
351 $cfg->setConfigEntry('proxy_password', '');
352
353 // CFG: PROXY-CONNECT-METHOD
354 $cfg->setConfigEntry('proxy_connect_method', 'Y');
355
356 // CFG: HOSTNAME-FILE
357 $cfg->setConfigEntry('hostname_file', '/etc/hostname');
358
359 // CFG: DATABASE-CACHE-ENABLED
360 $cfg->setConfigEntry('database_cache_enabled', FALSE);
361
362 // CFG: DIRECTORY-CLASS
363 $cfg->setConfigEntry('directory_class', 'FrameworkDirectoryPointer');
364
365 // CFG: FILE-RAW-INPUT-CLASS
366 $cfg->setConfigEntry('file_raw_input_class', 'FrameworkRawFileInputPointer');
367
368 // CFG: FILE-RAW-OUTPUT-CLASS
369 $cfg->setConfigEntry('file_raw_output_class', 'FrameworkRawFileOutputPointer');
370
371 // CFG: FILE-RAW-INPUT-OUTPUT-CLASS
372 $cfg->setConfigEntry('file_raw_input_output_class', 'FrameworkFileInputOutputPointer');
373
374 // CFG: TEXT-FILE-INPUT-CLASS
375 $cfg->setConfigEntry('text_file_input_class', 'FrameworkTextFileInputPointer');
376
377 // CFG: CSV-INPUT-FILE-CLASS
378 $cfg->setConfigEntry('csv_input_file_class', 'CsvInputFile');
379
380 // CFG: FILE-ITERATOR-CLASS
381 $cfg->setConfigEntry('file_iterator_class', 'FileIterator');
382
383 // CFG: FILE-STACK-PRE-ALLOCATE-ENABLED
384 $cfg->setConfigEntry('file_stack_pre_allocate_enabled', 'Y');
385
386 // CFG: FILE-STACK-PRE-ALLOCATE-COUNT
387 $cfg->setConfigEntry('file_stack_pre_allocate_count', 10000);
388
389 // CFG: INDEX-INDEX-CLASS
390 $cfg->setConfigEntry('file_stack_index_class', 'FileStackIndex');
391
392 // CFG: INDEX-PRE-ALLOCATE-ENABLED
393 $cfg->setConfigEntry('index_pre_allocate_enabled', 'Y');
394
395 // CFG: INDEX-PRE-ALLOCATE-COUNT
396 $cfg->setConfigEntry('index_pre_allocate_count', 10000);
397
398 // CFG: STACK-FILE-CLASS
399 $cfg->setConfigEntry('stack_file_class', 'StackFile');
400
401 // CFG: INDEX-FILE-CLASS
402 $cfg->setConfigEntry('index_file_class', 'IndexFile');
403
404 // [EOF]
405 ?>