Revision 1780
Added by Dietmar about 12 years ago
initialize.php | ||
---|---|---|
142 | 142 |
if(defined('ENABLED_ASP') && ENABLED_ASP && !isset($_SESSION['session_started'])) |
143 | 143 |
$_SESSION['session_started'] = time(); |
144 | 144 |
|
145 |
|
|
146 |
|
|
145 | 147 |
// Get users language |
146 |
if(isset($_GET['lang']) AND $_GET['lang'] != '' AND !is_numeric($_GET['lang']) AND strlen($_GET['lang']) == 2) { |
|
147 |
define('LANGUAGE', strtoupper($_GET['lang'])); |
|
148 |
$requestMethod = '_'.strtoupper($_SERVER['REQUEST_METHOD']); |
|
149 |
$language = (intval(isset(${$requestMethod}['lang'])) ? ${$requestMethod}['lang'] : null); |
|
150 |
if(isset($language) AND $language != '' AND !is_numeric($language) AND strlen($language) == 2) { |
|
151 |
define('LANGUAGE', strtoupper($language)); |
|
148 | 152 |
$_SESSION['LANGUAGE']=LANGUAGE; |
149 | 153 |
} else { |
150 | 154 |
if(isset($_SESSION['LANGUAGE']) AND $_SESSION['LANGUAGE'] != '') { |
Also available in: Unified diff
! change help mouseover to onclick in page settings only on help icon
+ add help to input filename
! /framework/initialize.php now accept _GET and _POST to set user language