Revision 1315
Added by Dietmar over 14 years ago
save.php | ||
---|---|---|
47 | 47 |
$timezone = ( ($timezone >= -12 && $timezone <= 13) ? $timezone : -20 ) * 3600; |
48 | 48 |
// date_format must be a key from /interface/date_formats |
49 | 49 |
$date_format = $admin->get_post('date_format'); |
50 |
$date_format_key = str_replace(' ', '|', $date_format); |
|
50 | 51 |
$user_time = true; |
51 | 52 |
include( ADMIN_PATH.'/interface/date_formats.php' ); |
52 |
$date_format = (array_key_exists($date_format, $DATE_FORMATS) ? $date_format : $DATE_FORMATS['system_default']);
|
|
53 |
$date_format = ($DATE_FORMATS['system_default'] == $date_format ? '' : $date_format);
|
|
53 |
$date_format = (array_key_exists($date_format_key, $DATE_FORMATS) ? $date_format : 'system_default');
|
|
54 |
$date_format = ($date_format == 'system_default' ? '' : $date_format);
|
|
54 | 55 |
unset($DATE_FORMATS); |
55 | 56 |
// time_format must be a key from /interface/time_formats |
56 | 57 |
$time_format = $admin->get_post('time_format'); |
58 |
$time_format_key = str_replace(' ', '|', $time_format); |
|
57 | 59 |
$user_time = true; |
58 | 60 |
include( ADMIN_PATH.'/interface/time_formats.php' ); |
59 |
$time_format = (array_key_exists($time_format, $TIME_FORMATS) ? $time_format : $TIME_FORMATS['system_default']);
|
|
60 |
$time_format = ($TIME_FORMATS['system_default'] == $time_format ? '' : $time_format);
|
|
61 |
$time_format = (array_key_exists($time_format_key, $TIME_FORMATS) ? $time_format : 'system_default');
|
|
62 |
$time_format = ($time_format == 'system_default' ? '' : $time_format);
|
|
61 | 63 |
unset($TIME_FORMATS); |
62 | 64 |
// email should be validatet by core |
63 | 65 |
$email = ( $admin->get_post('email') == null ? '' : $admin->get_post('email') ); |
Also available in: Unified diff
fix ticket #975 some weird /pages/ header infos