Revision 1327
Added by Dietmar over 14 years ago
index.php | ||
---|---|---|
3 | 3 |
* |
4 | 4 |
* @category admin |
5 | 5 |
* @package preferences |
6 |
* @author Independend-Software-Team |
|
6 | 7 |
* @author WebsiteBaker Project |
7 | 8 |
* @copyright 2004-2009, Ryan Djurovich |
8 | 9 |
* @copyright 2009-2010, Website Baker Org. e.V. |
... | ... | |
58 | 59 |
} |
59 | 60 |
} |
60 | 61 |
// Insert default timezone values |
62 |
$user_time = true; |
|
61 | 63 |
include_once( ADMIN_PATH.'/interface/timezones.php' ); |
62 | 64 |
$template->set_block('main_block', 'timezone_list_block', 'timezone_list'); |
63 | 65 |
foreach( $TIMEZONES AS $hour_offset => $title ) |
... | ... | |
68 | 70 |
$template->parse('timezone_list', 'timezone_list_block', true); |
69 | 71 |
} |
70 | 72 |
// Insert date format list |
71 |
$user_time = true; |
|
72 | 73 |
include_once( ADMIN_PATH.'/interface/date_formats.php' ); |
73 | 74 |
$template->set_block('main_block', 'date_format_list_block', 'date_format_list'); |
74 | 75 |
foreach( $DATE_FORMATS AS $format => $title ) |
... | ... | |
76 | 77 |
$format = str_replace('|', ' ', $format); // Add's white-spaces (not able to be stored in array key) |
77 | 78 |
$template->set_var( 'VALUE', ($format != 'system_default' ? $format : 'system_default') ); |
78 | 79 |
$template->set_var( 'NAME', $title ); |
79 |
if( (DATE_FORMAT == $format AND !isset($_SESSION['USE_DEFAULT_DATE_FORMAT'])) OR
|
|
80 |
('system_default' == $format AND isset($_SESSION['USE_DEFAULT_DATE_FORMAT'])) )
|
|
80 |
if( (DATE_FORMAT == $format && !isset($_SESSION['USE_DEFAULT_DATE_FORMAT'])) ||
|
|
81 |
('system_default' == $format && isset($_SESSION['USE_DEFAULT_DATE_FORMAT'])) )
|
|
81 | 82 |
{ |
82 | 83 |
$template->set_var('SELECTED', ' selected="selected"'); |
83 | 84 |
}else { |
... | ... | |
93 | 94 |
$format = str_replace('|', ' ', $format); // Add's white-spaces (not able to be stored in array key) |
94 | 95 |
$template->set_var('VALUE', $format != 'system_default' ? $format : 'system_default' ); |
95 | 96 |
$template->set_var('NAME', $title); |
96 |
if( (TIME_FORMAT == $format AND !isset($_SESSION['USE_DEFAULT_TIME_FORMAT'])) OR
|
|
97 |
('system_default' == $format AND isset($_SESSION['USE_DEFAULT_TIME_FORMAT'])) )
|
|
97 |
if( (TIME_FORMAT == $format && !isset($_SESSION['USE_DEFAULT_TIME_FORMAT'])) ||
|
|
98 |
('system_default' == $format && isset($_SESSION['USE_DEFAULT_TIME_FORMAT'])) )
|
|
98 | 99 |
{ |
99 | 100 |
$template->set_var('SELECTED', ' selected="selected"'); |
100 | 101 |
} else { |
Also available in: Unified diff
litte fix to show GMT value in default view
fixed file_list