getNewsPage(); if ($_GET['id_news']){ $smarty->assign('news', $news -> getNewsById($_GET['id_news'])); } else { $smarty->assign('newsList', $news -> newsList()); $smarty->assign('pages', $news->pages()); } # Fuer Random Flags $flags = new Flags(); $smarty->assign('flagsRandom', $flags -> getFlagsRandom(603)); $smarty->assign('picsfolder', $conf['folder'][$_SESSION['id_language']]); $smarty->display('news.tpl'); ?>