/web/acc/phpsysinfo/language/language.php |
---|
50,6 → 50,13 |
&& file_exists(PSI_APP_ROOT.'/language/'.$_GET['lang'].'.xml')) { |
$lang = strtolower($_GET['lang']); |
} |
/** ALCASAR changes |
* $lang set by the web browser config |
* |
*/ |
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { |
$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']); |
$lang = strtolower(substr(chop($Langue[0]), 0, 2)); |
if (isset($_GET['plugin'])) { |
if ((trim($_GET['plugin'])!=="") && !preg_match('/[^A-Za-z]/', $_GET['plugin'])) { |