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