if(!empty($_REQUEST['lang'])){
o3 K; j* C8 e/ K1 A $_SESSION['lang']=$_REQUEST['lang'];$ H* V' d0 y6 J. ]
}
$ I$ F$ |. I# u; x! k* t' _/ yif (!empty($_SESSION['lang']))6 n$ J1 A4 `/ ?: p0 w0 A+ i* [! D. W
{
& B3 ~$ l1 j9 ~switch($_SESSION['lang']){. X6 U) \, [6 a. z
case 'zh_cn':3 B& \4 U/ ?: t: l5 H
$_CFG['lang']="zh_cn";
( \1 h Y& I0 O D2 o break;! [; g( b. D0 {. r8 C5 z
case 'zh_tw':
4 _3 G, o2 Z- D& H3 Y5 K% J $_CFG['lang']="zh_tw";9 G; u2 K4 x/ s7 b4 x. L0 ]0 `6 a
break;
& c0 p$ D- P% x# m case 'en_us':8 H, l( Y7 G2 L6 h( z
$_CFG['lang']="en_us";1 V7 n4 k' u( ^9 j
break;( F( t9 N) A; `6 X: ]" L5 `
} }# l" L' A4 R, Y2 f0 G# d+ T& r
require(ROOT_PATH . 'languages/' . $_CFG['lang'] . '/common.php');' g7 z6 b+ S- h* H" H8 e
$smarty->assign('lang', $_LANG); |