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.
7 * @author Roland Haeder <webmaster@shipsimu.org>
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
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.
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.
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/>.
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');
32 // Get a new configuration instance
33 $cfg = FrameworkConfiguration::getSelfInstance();
36 $cfg->setConfigEntry('base_path', ApplicationEntryPoint::detectCorePath() . '/');
39 $cfg->setConfigEntry('base_url', $cfg->detectBaseUrl());
42 $cfg->setConfigEntry('db_type', 'local');
45 $cfg->setConfigEntry('local_db_path', $cfg->getConfigEntry('base_path') . 'db/');
48 $cfg->setDefaultTimezone('Europe/Berlin');
50 // CFG: MAGIC-QUOTES-RUNTIME
51 $cfg->setMagicQuotesRuntime(FALSE);
54 $cfg->setConfigEntry('class_prefix', 'class_');
57 $cfg->setConfigEntry('class_suffix', '.php');
59 // CFG: RAW-TEMPLATE-EXTENSION
60 $cfg->setConfigEntry('raw_template_extension', '.tpl');
62 // CFG: CODE-TEMPLATE-EXTENSION
63 $cfg->setConfigEntry('code_template_extension', '.ctp');
66 $cfg->setConfigEntry('selector_path', 'selector');
68 // CFG: APPLICATION-HELPER-CLASS
69 $cfg->setConfigEntry('app_helper_class', 'ApplicationHelper');
72 $cfg->setConfigEntry('entry_method', 'entryPoint');
74 // CFG: TEMPLATE-BASE-PATH
75 $cfg->setConfigEntry('tpl_base_path', 'templates/');
77 // CFG: LANGUAGE-BASE-PATH
78 $cfg->setConfigEntry('lang_base_path', 'inc/language/');
80 // CFG: COMPRESSOR-BASE-PATH
81 $cfg->setConfigEntry('compressor_base_path', 'inc/classes/main/compressor/');
83 // CFG: APPLICATION-BASE-PATH
84 $cfg->setConfigEntry('application_base_path', 'application/');
86 // CFG: APPLICATION-PATH
87 $cfg->setConfigEntry('application_path', $cfg->getConfigEntry('base_path') . $cfg->getConfigEntry('application_base_path'));
89 // CFG: COMPILE-OUTPUT-PATH
90 $cfg->setConfigEntry('compile_output_path', 'templates/_compiled/');
92 // CFG: TEMPLATE-CLASS
93 $cfg->setConfigEntry('web_template_class', 'WebTemplateEngine');
95 // CFG: DECO-XML-REWRITER-TEMPLATE-CLASS
96 $cfg->setConfigEntry('deco_xml_rewriter_template_class', 'XmlRewriterTemplateDecorator');
99 $cfg->setConfigEntry('debug_class', 'DebugWebOutput');
101 // CFG: DEFAULT-LANGUAGE
102 $cfg->setConfigEntry('default_lang', 'de'); // A two-char language string: de for german, en for english and so on
104 // CFG: WEB-TEMPLATE-TYPE
105 $cfg->setConfigEntry('web_template_type', 'html');
107 // CFG: EMAIL-TEMPLATE-TYPE
108 $cfg->setConfigEntry('email_template_type', 'emails');
110 // CFG: CODE-TEMPLATE-TYPE
111 $cfg->setConfigEntry('code_template_type', 'code');
113 // CFG: IMAGE-TEMPLATE-TYPE
114 $cfg->setConfigEntry('image_template_type', 'image');
116 // CFG: MENU-TEMPLATE-TYPE
117 $cfg->setConfigEntry('menu_template_type', 'menu');
120 $cfg->setConfigEntry('output_class', 'WebOutput');
122 // CFG: SELECTOR-TEMPLATE-PREFIX
123 $cfg->setConfigEntry('tpl_selector_prefix', 'selector');
125 // CFG: WEB-CONTENT-TYPE
126 $cfg->setConfigEntry('web_content_type', 'text/html');
128 // CFG: VALID-TEMPLATE-VARIABLE
129 $cfg->setConfigEntry('tpl_valid_var', 'content');
132 $cfg->setConfigEntry('meta_author', 'Your-name-here');
134 // CFG: META-PUBLISHER
135 $cfg->setConfigEntry('meta_publisher', 'Your-name-here');
137 // CFG: META-KEYWORDS
138 $cfg->setConfigEntry('meta_keywords', 'test,test,test');
140 // CFG: META-DESCRIPTION
141 $cfg->setConfigEntry('meta_description', 'A description for your website');
143 // CFG: SELECTOR-MAIN-TEMPLATE
144 $cfg->setConfigEntry('selector_main_tpl', 'selector_main');
146 // CFG: SELECTOR-APPS-TEMPLATE
147 $cfg->setConfigEntry('selector_apps_tpl', 'selector_apps');
149 // CFG: SELECTOR-NAME
150 $cfg->setConfigEntry('selector_name', 'selector');
152 // CFG: DEFAULT-APPLICATION
153 $cfg->setConfigEntry('default_application', 'selector');
155 // CFG: VERBOSE-LEVEL
156 $cfg->setConfigEntry('verbose_level', 0);
159 $cfg->setConfigEntry('cache_class', 'MemoryCache');
161 // CFG: SEARCH-CRITERIA-CLASS
162 $cfg->setConfigEntry('search_criteria_class', 'SearchCriteria');
164 // CFG: DATASET-CRITERIA-CLASS
165 $cfg->setConfigEntry('dataset_criteria_class', 'DataSetCriteria');
167 // CFG: UPDATE-CRITERIA-CLASS
168 $cfg->setConfigEntry('update_criteria_class', 'UpdateCriteria');
170 // CFG: FILE-IO-CLASS
171 $cfg->setConfigEntry('file_io_class', 'FileIoHandler');
173 // CFG: DATABASE-RESULT-CLASS
174 $cfg->setConfigEntry('database_result_class', 'CachedDatabaseResult');
176 // CFG: FILTER-CHAIN-CLASS
177 $cfg->setConfigEntry('filter_chain_class', 'FilterChain');
179 // CFG: FILE-INPUT-CLASS
180 $cfg->setConfigEntry('file_input_class', 'FileIoStream');
182 // CFG: FILE-OUTPUT-CLASS
183 $cfg->setConfigEntry('file_output_class', 'FileIoStream');
185 // CFG: EMAIL-VALIDATOR-FILTER
186 $cfg->setConfigEntry('email_validator_filter', 'EmailValidatorFilter');
188 // CFG: USERNAME-VALIDATOR-FILTER
189 $cfg->setConfigEntry('username_validator_filter', 'UserNameValidatorFilter');
191 // CFG: USERNAME-IS-GUEST-FILTER
192 $cfg->setConfigEntry('username_is_guest_filter', 'UserNameIsGuestFilter');
194 // CFG: PASSWORD-VALIDATOR-FILTER
195 $cfg->setConfigEntry('password_validator_filter', 'PasswordValidatorFilter');
197 // CFG: RULES-ACCEPTED-FILTER
198 $cfg->setConfigEntry('rules_accepted_filter', 'RulesAcceptedFilter');
200 // CFG: USERNAME-VERIFIER-FILTER
201 $cfg->setConfigEntry('username_verifier_filter', 'UserNameVerifierFilter');
203 // CFG: USER-GUEST-VERIFIER-FILTER
204 $cfg->setConfigEntry('user_guest_verifier_filter', 'UserGuestVerifierFilter');
206 // CFG: EMAIL-VERIFIER-FILTER
207 $cfg->setConfigEntry('email_verifier_filter', 'EmailVerifierFilter');
209 // CFG: PASSWORD-VERIFIER-FILTER
210 $cfg->setConfigEntry('password_verifier_filter', 'PasswordVerifierFilter');
212 // CFG: PASSWD-GUEST-VERIFIER-FILTER
213 $cfg->setConfigEntry('passwd_guest_verifier_filter', 'PasswordGuestVerifierFilter');
215 // CFG: EMAIL-CHANGE-FILTER
216 $cfg->setConfigEntry('email_change_filter', 'EmailChangeFilter');
218 // CFG: PASSWORD-CHANGE-FILTER
219 $cfg->setConfigEntry('password_change_filter', 'PasswordChangeFilter');
221 // CFG: ACCOUNT-PASSWORD-FILTER
222 $cfg->setConfigEntry('account_password_filter', 'AccountPasswordVerifierFilter');
224 // CFG: USER-STATUS-FILTER
225 $cfg->setConfigEntry('user_status_filter', 'UserStatusVerifierFilter');
227 // CFG: USER-UNCONFIRMED-FILTER
228 $cfg->setConfigEntry('user_unconfirmed_filter', 'UserUnconfirmedVerifierFilter');
231 $cfg->setConfigEntry('crypto_class', 'CryptoHelper');
234 $cfg->setConfigEntry('rng_class', 'RandomNumberGenerator');
236 // CFG: USER-DB-WRAPPER-CLASS
237 $cfg->setConfigEntry('user_db_wrapper_class', 'UserDatabaseWrapper');
239 // CFG: NEWS-DB-WRAPPER-CLASS
240 $cfg->setConfigEntry('news_db_wrapper_class', 'NewsDatabaseWrapper');
242 // CFG: WEB-CMD-RESOLVER-CLASS
243 $cfg->setConfigEntry('web_cmd_resolver_class', 'WebCommandResolver');
245 // CFG: WEB-CMD-LOGIN-RESOLVER-CLASS
246 $cfg->setConfigEntry('web_cmd_login_resolver_class', 'WebCommandResolver');
248 // CFG: IMAGE-CMD-RESOLVER-CLASS
249 $cfg->setConfigEntry('image_cmd_resolver_class', 'ImageCommandResolver');
251 // CFG: IMAGE-CMD-CODE-CAPTCHA-RESOLVER-CLASS
252 $cfg->setConfigEntry('image_cmd_code_captcha_resolver_class', 'ImageCommandResolver');
255 $cfg->setConfigEntry('mailer_class', 'DebugMailer');
257 // CFG: XML-PARSER-CLASS
258 $cfg->setConfigEntry('xml_parser_class', 'XmlParser');
260 // CFG: DECO-COMPACTING-XML-PARSER-CLASS
261 $cfg->setConfigEntry('deco_compacting_xml_parser_class', 'XmlCompactorDecorator');
264 $cfg->setConfigEntry('math_prime', 591623);
267 $cfg->setConfigEntry('date_key', date('d-m-Y (l-F-T)', time()));
270 $cfg->setConfigEntry('salt_length', 10);
272 // CFG: RND-STR-LENGTH
273 $cfg->setConfigEntry('rnd_str_length', 128);
275 // CFG: HASH-EXTRA-MASK
276 $cfg->setConfigEntry('hash_extra_mask', "%1s:%2s:%3s"); // 1=salt, 2=extra salt, 3=plain password/string
278 // CFG: HASH-NORMAL-MASK
279 $cfg->setConfigEntry('hash_normal_mask', "%1s:%2s"); // 1=salt, 2=plain password/string
281 // CFG: IS-SINGLE-SERVER
282 $cfg->setConfigEntry('is_single_server', 'Y');
284 // CFG: POST-REGISTRATION-CLASS
285 $cfg->setConfigEntry('post_registration_class', 'LoginAfterRegistrationAction');
288 $cfg->setConfigEntry('user_class', 'Member');
291 $cfg->setConfigEntry('guest_class', 'Guest');
293 // CFG: COOKIE-EXPIRE
294 $cfg->setConfigEntry('cookie_expire', (60*60*2)); // Two hours!
297 $cfg->setConfigEntry('cookie_path', $cfg->detectScriptPath() . '/');
299 // CFG: COOKIE-DOMAIN
300 $cfg->setConfigEntry('cookie_domain', $cfg->detectDomain()); // Is mostly the same...
303 $cfg->setConfigEntry('cookie_ssl', $cfg->isHttpSecured());
305 // CFG: CRYPT-FIXED-SALT
306 $cfg->setConfigEntry('crypt_fixed_salt', 'N');
308 // CFG: DB-UPDATE-PRIMARY-FORCED
309 $cfg->setConfigEntry('db_update_primary_forced', 'Y');
311 // CFG: GERMAN-DATE-TIME
312 $cfg->setConfigEntry('german_date_time', "%3\$s.%2\$s.%1\$s, %4\$s:%5\$s:%6\$s");
314 // CFG: PRODUCT-INSTALL-MODE
315 $cfg->setConfigEntry('product_install_mode', 'debug');
318 $cfg->setConfigEntry('decimals', 3);
320 // CFG: MENU-STACKER-CLASS
321 $cfg->setConfigEntry('menu_stacker_class', 'FiLoStacker');
323 // CFG: STACKER-GENERIC-MAX-SIZE
324 $cfg->setConfigEntry('stacker_generic_max_size', 100);
326 // CFG: STACKER-CURRENT-NODE-MAX-SIZE
327 $cfg->setConfigEntry('stacker_current_node_max_size', 20);
329 // CFG: LOCAL-FILE-DATABASE-CLASS
330 $cfg->setConfigEntry('local_file_database_class', 'CachedLocalFileDatabase');
332 // CFG: COMPRESSOR-CHANNEL-CLASS
333 $cfg->setConfigEntry('compressor_channel_class', 'CompressorChannel');
335 // CFG: DEBUG-OUTPUT-TIMINGS
336 $cfg->setConfigEntry('debug_output_timings', 'N');
339 $cfg->setConfigEntry('proxy_host', '');
342 $cfg->setConfigEntry('proxy_port', '');
344 // CFG: PROXY-USERNAME
345 $cfg->setConfigEntry('proxy_username', '');
347 // CFG: PROXY-PASSWORD
348 $cfg->setConfigEntry('proxy_password', '');
350 // CFG: PROXY-CONNECT-METHOD
351 $cfg->setConfigEntry('proxy_connect_method', 'Y');
353 // CFG: HOSTNAME-FILE
354 $cfg->setConfigEntry('hostname_file', '/etc/hostname');
356 // CFG: DATABASE-CACHE-ENABLED
357 $cfg->setConfigEntry('database_cache_enabled', FALSE);
359 // CFG: DIRECTORY-CLASS
360 $cfg->setConfigEntry('directory_class', 'FrameworkDirectoryPointer');
362 // CFG: FILE-RAW-INPUT-CLASS
363 $cfg->setConfigEntry('file_raw_input_class', 'FrameworkRawFileInputPointer');
365 // CFG: FILE-RAW-OUTPUT-CLASS
366 $cfg->setConfigEntry('file_raw_output_class', 'FrameworkRawFileOutputPointer');
368 // CFG: FILE-RAW-INPUT-OUTPUT-CLASS
369 $cfg->setConfigEntry('file_raw_input_output_class', 'FrameworkFileInputOutputPointer');
371 // CFG: TEXT-FILE-INPUT-CLASS
372 $cfg->setConfigEntry('text_file_input_class', 'FrameworkTextFileInputPointer');
374 // CFG: CSV-INPUT-FILE-CLASS
375 $cfg->setConfigEntry('csv_input_file_class', 'CsvInputFile');
377 // CFG: FILE-ITERATOR-CLASS
378 $cfg->setConfigEntry('file_iterator_class', 'FileIterator');
380 // CFG: FILE-STACK-PRE-ALLOCATE-ENABLED
381 $cfg->setConfigEntry('file_stack_pre_allocate_enabled', 'Y');
383 // CFG: FILE-STACK-PRE-ALLOCATE-COUNT
384 $cfg->setConfigEntry('file_stack_pre_allocate_count', 10000);
386 // CFG: INDEX-INDEX-CLASS
387 $cfg->setConfigEntry('file_stack_index_class', 'FileStackIndex');
389 // CFG: INDEX-PRE-ALLOCATE-ENABLED
390 $cfg->setConfigEntry('index_pre_allocate_enabled', 'Y');
392 // CFG: INDEX-PRE-ALLOCATE-COUNT
393 $cfg->setConfigEntry('index_pre_allocate_count', 10000);
395 // CFG: STACK-FILE-CLASS
396 $cfg->setConfigEntry('stack_file_class', 'StackFile');
398 // CFG: INDEX-FILE-CLASS
399 $cfg->setConfigEntry('index_file_class', 'IndexFile');