);
require_once __DIR__ . '/../data/config.default.php';
+if (file_exists(__DIR__ . '/../data/config.php')) {
+ require_once __DIR__ . '/../data/config.php';
+}
require_once 'VersionControl/Git.php';
require_once 'Twig/Autoloader.php';
\Twig_Autoloader::register();
function render($tplname, $vars)
{
+ $vars['css'] = $GLOBALS['phorkie']['cfg']['css'];
$template = $GLOBALS['twig']->loadTemplate($tplname . '.htm');
echo $template->render($vars);
}
function redirect($target)
{
- header('Location: /' . $target);
+ header('Location: ' . $target);
exit();
}
?>
\ No newline at end of file