Revision 1849
Added by Dietmar almost 12 years ago
preferences_form.php | ||
---|---|---|
10 | 10 |
* @platform WebsiteBaker 2.8.x |
11 | 11 |
* @requirements PHP 5.2.2 and higher |
12 | 12 |
* @version $Id$ |
13 |
* @filesource $HeadURL$
|
|
13 |
* @filesource $HeadURL$
|
|
14 | 14 |
* @lastmodified $Date$ |
15 | 15 |
* |
16 | 16 |
*/ |
... | ... | |
162 | 162 |
|
163 | 163 |
// default, if no information from client available |
164 | 164 |
$sAutoLanguage = DEFAULT_LANGUAGE; |
165 |
// detect client language |
|
166 |
//if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { |
|
167 |
// if(preg_match('/([a-z]{2})(?:-[a-z]{2})*/i', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']), $matches)) { |
|
168 |
// $sAutoLanguage = strtoupper($matches[1]); |
|
169 |
// } |
|
170 |
//} |
|
171 | 165 |
|
172 | 166 |
//$sAutoLanguage = 'FR'; |
173 | 167 |
$aLangUsed = array_flip(explode(',',$wb->GetLanguagesInUsed())); |
... | ... | |
222 | 216 |
$template->parse('date_format_list', 'date_format_list_block', true); |
223 | 217 |
} |
224 | 218 |
|
219 |
$user_time = true; |
|
225 | 220 |
// Insert time format list |
226 | 221 |
$template->set_block('main_block', 'time_format_list_block', 'time_format_list'); |
227 | 222 |
foreach($TIME_FORMATS AS $format => $title) |
Also available in: Unified diff
! Fill empty option modules dropdown in admin/pages/sections.php