assign("user",$user); } $lang = "en"; if(isset($_GET['lang'])){ $lang = $_GET['lang']; } $menu = $lang; $submenu = $lang; $smarty->assign("menu",$menu); $smarty->assign("submenu",$submenu); $lang = "_".$lang; $tbl = "about".$lang; $db->sql_query("select * from subpages where page='".$tbl."' order by position"); $about = $db->fetched_array(); $smarty->assign("about",$about); $tbl = "prices".$lang; $db->sql_query("select * from subpages where page='".$tbl."' order by position"); $prices = $db->fetched_array(); $smarty->assign("prices",$prices); $tbl = "features".$lang; $db->sql_query("select * from subpages where page='".$tbl."' order by position"); $features = $db->fetched_array(); $smarty->assign("features",$features); $tbl = "routes".$lang; $db->sql_query("select * from subpages where page='".$tbl."' order by position"); $routes = $db->fetched_array(); $smarty->assign("routes",$routes); $tbl = "contact".$lang; $db->sql_query("select * from subpages where page='".$tbl."' order by position"); $contact = $db->fetched_array(); $smarty->assign("contact",$contact); $tbl = "gcats"; $db->sql_query("select * from gcats order by position"); $gcats = $db->fetched_array(); $smarty->assign("gcats",$gcats); $smarty->display("autoad.html"); ?>