Improved register_globals

This commit is contained in:
root 2008-08-25 21:00:20 +00:00
parent f50a5494eb
commit 0e57576b94

View file

@ -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)