3 require 'includes/config.inc.php';
4 require INCLUDES_PATH
.'prepend.php';
8 } catch (PDOException
$e) {
9 die("pdo error: ".$e->getMessage());
12 $tpl = new templates();
13 $tpl->addFile('_begin','header.tpl.php');
14 $tpl->addFile('_end','footer.tpl.php');
15 $tpl->addFile('index','index.tpl.php');
17 $tpl->title
= "AYANS";
20 $news = new news_node();
22 $news->setView(news_node
::DEFAULT_VIEW
);
23 $news->add_filter('Markdown','text');
25 // Comment this if you have some charset problems in cache
26 $news->add_filter('utf8_decode','title');
29 $news->add_filter('htmlentities','title');
30 $news->add_filter('set_bolder','author');
31 $tpl->content
= $news->render(isset($_GET['reload']) ?
true : false);
35 $tpl->render('index');