How I choose language to change site Template
For example:
x language = Template 1
y language = Template 2
For example:
x language = Template 1
y language = Template 2
Версия системы: Open SLAED 1.*
Версия PHP: PHP 5
Сервер: Сервер в интернете
# Format theme function get_theme() { global $user, $conf; if (!defined("ADMIN_FILE") && is_user()) { $utheme = $user[5]; $theme = ($utheme != "" && is_dir("templates/".$utheme)) ? $utheme : $conf['theme']; } elseif (!defined("ADMIN_FILE")) {$theme = $conf['theme']; } elseif (defined("ADMIN_FILE")) {$theme = "admin";} //start edit if(isset($_COOKIE['lang']) && !defined("ADMIN_FILE")){ if($_COOKIE['lang']=='russian'){$theme = "celestial_RUSSIAN";} elseif($_COOKIE['lang']=='english'){$theme = "celestial_ENGLAND";} elseif($_COOKIE['lang']=='german'){$theme = "celestial_GERMANY";} } //end edit return $theme; }
Форум
Контакты