예제 #1
0
 $danhmuc = $dm[0];
 if ($dm[1] == '') {
     $page = 1;
     $page_name = '';
 } else {
     $page = $dm[1];
     $page_name = ' - Page ' . $page;
 }
 if ($danhmuc != 'danh-muc') {
     $menu_one = $tc->menu_one($danhmuc);
     $row_menu_one = mysql_fetch_array($menu_one);
     $idMenu = $row_menu_one['id'];
     $type = $row_menu_one['type_id'];
 } else {
     $alias = substr($_GET['detail'], 0, -5);
     $menu_one = $tc->menu_one_v2($alias);
     $row_menu_one = mysql_fetch_array($menu_one);
     $idMenu = $row_menu_one['id'];
     $type = $row_menu_one['type_id'];
 }
 $lang = $row_menu_one['lang'];
 include_once 'config.php';
 $dir_lang = "languages/{$lang}.php";
 if (file_exists($dir_lang)) {
     include_once $dir_lang;
 }
 if ($row_menu_one['parent_id'] != 0) {
     $menu_root = $tc->menu_root($row_menu_one['parent_id'], $idMenu);
 } else {
     $menu_root = $idMenu;
 }