Файл: inc/language.php
Строк: 17
<?php
$qwer=mysql_fetch_assoc(mysql_query("select * from `users` where `id`='".getid()."'"));
$jaz2=mysql_fetch_assoc(mysql_query("select * from `language` order by `id` desc limit 1"));
if(islogged()){
$jaz=mysql_fetch_assoc(mysql_query("select * from `language` where `id`='$qwer[lang]'"));
if($jaz){
include ('/lang/'.$jaz['file'].'.php');
}else{
include ('/lang/'.$jaz2['file'].'.php');
}
}else{
$setlang=mysql_fetch_assoc(mysql_query("select * from `language` where `id`='$set[lang]'"));
if($setlang){
include ('/lang/'.$setlang['file'].'.php');
}else{
include ('/lang/'.$jaz2['file'].'.php');
}
}
?>