Query('SELECT * FROM news WHERE news_active = 1 AND news_start_date <= NOW() AND news_end_date >= NOW() ORDER BY news_start_date DESC'); //AND languages_id = ' . $_SESSION['iLanguageId'] . ' $oDesign->assign_by_ref('oPager', $oPager); $oDesign->SetTitle('Nieuws'); $oDesign->ShowPage('news/index.tpl'); } else { $oNew = & new NewsEntity($news_id); if (!$oNew->Select()) { redir('index.php'); } $oDesign->assign_by_ref('oNew', $oNew); $oDesign->SetTitle($oNew->GetTitle()); $oDesign->ShowPage('news/news.tpl'); } ?>