assign("IE",0); if (preg_match("/IE/i",$user_agent)) { $smarty->assign("IE",1); } $lang = array ( '1' => "en", '2' => 'nl' , '3' => 'fr' ); $smarty->assign("lgg",$lang); $smarty = $GLOBALS['smarty']; //global assigns $smarty->assign('module',$_SESSION['module']); $smarty->assign('action',$_SESSION['action']); if (!empty($_SESSION['error'])) { $smarty->assign("error",$_SESSION['error']); $_SESSION['error'] = ''; } $next = isset($_GET['next']) ? $_GET['next'] : NULL; if (!isset($next)) { $next = ($next - 1); } else { $next = 0; } // loading language translate $smarty->assign("META_KEYS",META_KEY); $smarty->assign("META_DESC",META_DESCRIPTION); //set template , action scripts require_once(INCLUDE_PATH."switch.php"); if (isset($_GET['module']) && $_GET['module'] == "admin") { include_once('menu.php'); } else { return_path(); //include_once('include/menu.php'); } $smarty->assign('includemodule',$_SESSION['tpl_name']); $smarty->assign("title",$title); if (!empty($_COOKIE['idSession']) && empty($_SESSION['user_profile']['id'])) { $sql_query = "(select * from profiles where idSession = '".$_COOKIE['idSession']."') as sel"; $data = ui::get_sub_table($sql_query, '1', '1', '', '', ''); if (!empty($data[0]['id'])) { $_SESSION['user_profile'] = $data[0]; } } $smarty->assign("trail",$trail); if ($_SESSION['module'] == "mobi") { $smarty->display("index_mobi.tpl"); } else { $rss_news = rss_news(); $smarty->assign("rss_news",$rss_news); $smarty->display("index.tpl"); } ?>