<?php
namespace phorkie;
-session_start();
+if (session_id() == "") {
+ session_start();
+}
+
set_include_path(
__DIR__ . '/../src/'
. PATH_SEPARATOR . get_include_path()
);
//$twig->addExtension(new \Twig_Extension_Debug());
-function render($tplname, $vars)
+require __DIR__ . '/www-security.php';
+
+function render($tplname, $vars = array())
{
$vars['css'] = $GLOBALS['phorkie']['cfg']['css'];
$vars['title'] = $GLOBALS['phorkie']['cfg']['title'];