3 * Additional/overwritten configuration parts
5 * @author Roland Haeder <webmaster@ship-simu.org>
7 * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software
8 * @license GNU GPL 3.0 or any newer version
9 * @link http://www.ship-simu.org
11 * This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <http://www.gnu.org/licenses/>.
25 // Get a configuration instance for shorter lines
26 $cfg = FrameworkConfiguration::getInstance();
28 // CFG: DEFAULT-COMMAND
29 $cfg->setConfigEntry('default_command', "home");
31 // CFG: PAGE-WITH-NEWS
32 $cfg->setConfigEntry('page_with_news', "home");
35 $cfg->setConfigEntry('form_action', "index.php?app={?app_short_name?}&page=do_form");
38 $cfg->setConfigEntry('form_method', "post");
41 $cfg->setConfigEntry('form_target', "_self");
43 // CFG: REGISTER-REQUIRES-EMAIL
44 $cfg->setConfigEntry('register_requires_email', "Y");
46 // CFG: REGISTER-INCLUDES-PROFILE
47 $cfg->setConfigEntry('register_includes_profile', "Y");
49 // CFG: REGISTER-PERSONAL-DATA
50 $cfg->setConfigEntry('register_personal_data', "Y");
52 // CFG: REGISTER-EMAIL-UNIQUE
53 $cfg->setConfigEntry('register_email_unique', "Y");
55 // CFG: CHAT-ENABLED-ICQ
56 $cfg->setConfigEntry('chat_enabled_icq', "Y");
58 // CFG: CHAT-ENABLED-JABBER
59 $cfg->setConfigEntry('chat_enabled_jabber', "Y");
61 // CFG: CHAT-ENABLED-YAHOO
62 $cfg->setConfigEntry('chat_enabled_yahoo', "Y");
64 // CFG: CHAT-ENABLED-AOL
65 $cfg->setConfigEntry('chat_enabled_aol', "Y");
67 // CFG: CHAT-ENABLED-MSN
68 $cfg->setConfigEntry('chat_enabled_msn', "Y");
70 // CFG: USER-REGISTRATION
71 $cfg->setConfigEntry('user_registration_class', "ShipSimuRegistration");
73 // CFG: USER-LOGIN-CLASS
74 $cfg->setConfigEntry('user_login_class', "ShipSimuUserLogin");
76 // CFG: GUEST-LOGIN-CLASS
77 $cfg->setConfigEntry('guest_login_class', "ShipSimuGuestLogin");
79 // CFG: USER-STATUS-REGISTER
80 $cfg->setConfigEntry('user_status_unconfirmed', "UNCONFIRMED");
82 // CFG: USER-STATUS-GUEST
83 $cfg->setConfigEntry('user_status_guest', "GUEST");
85 // CFG: USER-STATUS-CONFIRMED
86 $cfg->setConfigEntry('user_status_confirmed', "CONFIRMED");
88 // CFG: LOGIN-HELPER-CLASS
89 $cfg->setConfigEntry('login_helper_class', "ShipSimuLoginHelper");
91 // CFG: AUTH-METHOD-CLASS
92 $cfg->setConfigEntry('auth_method_class', "CookieAuth");
95 $cfg->setConfigEntry('app_login_url', "index.php?app=ship-simu&page=login_area");
97 // CFG: LOGIN-FAILED-URL
98 $cfg->setConfigEntry('login_failed_url', "index.php?app=ship-simu&page=login_failed");
100 // CFG: LOGOUT-DONE-URL
101 $cfg->setConfigEntry('logout_done_url', "index.php?app=ship-simu&page=logout_done");
103 // CFG: LOGIN-USER-STATUS-URL
104 $cfg->setConfigEntry('login_user_status_url', "index.php?app=ship-simu&page=login_area&action=status_problem");
106 // CFG: LOGIN-USER-UNCONFIRMED-URL
107 $cfg->setConfigEntry('login_user_unconfirmed_url', "index.php?app=ship-simu&page=status_unconfirmed_problem");
109 // CFG: LOGIN-DEFAULT-ACTION
110 $cfg->setConfigEntry('login_default_action', "welcome");
112 // CFG: NEWS-READER-CLASS
113 $cfg->setConfigEntry('news_reader_class', "DefaultNewsReader");
115 // CFG: NEWS-DOWNLOAD-CLASS
116 $cfg->setConfigEntry('news_download_class', "NewsDownloadFilter");
118 // CFG: NEWS-PROCESS-CLASS
119 $cfg->setConfigEntry('news_process_class', "NewsProcessFilter");
121 // CFG: USER-AUTH-CLASS
122 $cfg->setConfigEntry('user_auth_class', "UserAuthFilter");
124 // CFG: USER-UPDATE-CLASS
125 $cfg->setConfigEntry('user_update_class', "UserUpdateFilter");
127 // CFG: NEWS-HOME-LIMIT
128 $cfg->setConfigEntry('news_home_limit', 10);
130 // CFG: NEWS-LOGIN-AREA-LIMIT
131 $cfg->setConfigEntry('news_login_area_limit', 15);
133 // CFG: LOGIN-ENABLED
134 $cfg->setConfigEntry('login_enabled', "Y");
136 // CFG: LOGIN-DISABLED-REASON
137 $cfg->setConfigEntry('login_disabled_reason', "Loginbereich befindet sich noch im Aufbau.");
140 $cfg->setConfigEntry('login_type', "username"); // username, email, both
142 // CFG: GUEST-LOGIN-ALLOWED
143 $cfg->setConfigEntry('guest_login_allowed', "Y");
145 // CFG: EMAIL-CHANGE-CONFIRMATION
146 $cfg->setConfigEntry('email_change_confirmation', "Y");
148 // CFG: EMAIL-CHANGE-ALLOWED
149 $cfg->setConfigEntry('email_change_allowed', "Y");
151 // CFG: GUEST-LOGIN-USERNAME
152 $cfg->setConfigEntry('guest_login_username', "guest");
154 // CFG: GUEST-LOGIN-PASSWORD
155 $cfg->setConfigEntry('guest_login_password', "guest");
157 // CFG: LOGIN-WELCOME-ACTION-CLASS
158 $cfg->setConfigEntry('login_welcome_action_class', "ShipSimuLoginAction");
160 // CFG: LOGIN-LOGOUT-ACTION-CLASS
161 $cfg->setConfigEntry('login_logout_action_class', "ShipSimuLogoutAction");
163 // CFG: LOGIN-PROFILE-ACTION-CLASS
164 $cfg->setConfigEntry('login_profile_action_class', "ShipSimuProfileAction");
166 // CFG: LOGOUT-IMMEDIATE
167 $cfg->setConfigEntry('logout_immediate', "N");