Improved register_globals
This commit is contained in:
parent
f50a5494eb
commit
0e57576b94
1 changed files with 3 additions and 1 deletions
|
@ -101,7 +101,9 @@
|
||||||
"tr_TR" => "Türkçe",
|
"tr_TR" => "Türkçe",
|
||||||
"zh_CN" => "中文(简体)");
|
"zh_CN" => "中文(简体)");
|
||||||
|
|
||||||
if($_SESSION['_config']['language'] == "")
|
$value=array();
|
||||||
|
|
||||||
|
if(!(array_key_exists('language',$_SESSION['_config']) && $_SESSION['_config']['language'] != ""))
|
||||||
{
|
{
|
||||||
$bits = explode(",", strtolower(str_replace(" ", "", mysql_real_escape_string($_SERVER['HTTP_ACCEPT_LANGUAGE']))));
|
$bits = explode(",", strtolower(str_replace(" ", "", mysql_real_escape_string($_SERVER['HTTP_ACCEPT_LANGUAGE']))));
|
||||||
foreach($bits as $lang)
|
foreach($bits as $lang)
|
||||||
|
|
Loading…
Reference in a new issue