include dirname(__FILE__).'/inc/config.php';
-# initialize session
-Session::init();
+myTool::initPhp();
+
# XSRF protection with token
if (!empty($_POST)) {
if (!Session::isToken($_POST['token'])) {
$tpl->assign('isLogged', Session::isLogged());
$tpl->assign('referer', $ref);
$tpl->assign('view', $view);
-$tpl->assign('poche_url', get_poche_url());
+$tpl->assign('poche_url', myTool::getUrl());
$tpl->assign('title', 'poche, a read it later open source system');
if (Session::isLogged()) {