Revision 1872
Added by Dietmar over 11 years ago
- bugfix preferences timezone, date_format, time_format settings, backend and frontend
initialize.php | ||
---|---|---|
203 | 203 |
} |
204 | 204 |
} |
205 | 205 |
}else { throw new AppException($database->get_error()); } |
206 |
// set error-reporting from loaded settings --- |
|
207 |
if(intval(ER_LEVEL) > 0 ) { |
|
208 |
error_reporting(ER_LEVEL); |
|
209 |
if( intval(ini_get ( 'display_errors' )) == 0 ) { |
|
210 |
ini_set('display_errors', 1); |
|
211 |
} |
|
212 |
} |
|
213 |
// Start a session --- |
|
214 |
if(!defined('SESSION_STARTED')) { |
|
215 |
session_name(APP_NAME.'_session_id'); |
|
216 |
@session_start(); |
|
217 |
define('SESSION_STARTED', true); |
|
218 |
} |
|
206 | 219 |
// get/set users timezone --- |
207 | 220 |
define('TIMEZONE', (isset($_SESSION['TIMEZONE']) ? $_SESSION['TIMEZONE'] : DEFAULT_TIMEZONE)); |
208 | 221 |
define('DATE_FORMAT', (isset($_SESSION['DATE_FORMAT']) ? $_SESSION['DATE_FORMAT'] : DEFAULT_DATE_FORMAT)); |
... | ... | |
218 | 231 |
$sSecMod = (defined('SECURE_FORM_MODULE') && SECURE_FORM_MODULE != '') ? '.'.SECURE_FORM_MODULE : ''; |
219 | 232 |
$sSecMod = WB_PATH.'/framework/SecureForm'.$sSecMod.'.php'; |
220 | 233 |
require_once($sSecMod); |
221 |
// set error-reporting from loaded settings --- |
|
222 |
if(intval(ER_LEVEL) > 0 ) { |
|
223 |
error_reporting(ER_LEVEL); |
|
224 |
if( intval(ini_get ( 'display_errors' )) == 0 ) { |
|
225 |
ini_set('display_errors', 1); |
|
226 |
} |
|
227 |
} |
|
228 |
// Start a session --- |
|
229 |
if(!defined('SESSION_STARTED')) { |
|
230 |
session_name(APP_NAME.'_session_id'); |
|
231 |
@session_start(); |
|
232 |
define('SESSION_STARTED', true); |
|
233 |
} |
|
234 | 234 |
// *** begin deprecated part ************************************************************* |
235 | 235 |
// load settings for use in Captch and ASP module |
236 | 236 |
if (!defined("WB_INSTALL_PROCESS")) { |
Also available in: Unified diff