diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -11,6 +11,7 @@ | |||
11 | include dirname(__FILE__).'/inc/config.php'; | 11 | include dirname(__FILE__).'/inc/config.php'; |
12 | 12 | ||
13 | # initialize session | 13 | # initialize session |
14 | myTool::initPhp(); | ||
14 | Session::init(); | 15 | Session::init(); |
15 | # XSRF protection with token | 16 | # XSRF protection with token |
16 | if (!empty($_POST)) { | 17 | if (!empty($_POST)) { |
@@ -61,7 +62,7 @@ $url = (isset ($_GET['url'])) ? $_GET['url'] : ''; | |||
61 | $tpl->assign('isLogged', Session::isLogged()); | 62 | $tpl->assign('isLogged', Session::isLogged()); |
62 | $tpl->assign('referer', $ref); | 63 | $tpl->assign('referer', $ref); |
63 | $tpl->assign('view', $view); | 64 | $tpl->assign('view', $view); |
64 | $tpl->assign('poche_url', get_poche_url()); | 65 | $tpl->assign('poche_url', myTool::getUrl()); |
65 | $tpl->assign('title', 'poche, a read it later open source system'); | 66 | $tpl->assign('title', 'poche, a read it later open source system'); |
66 | 67 | ||
67 | if (Session::isLogged()) { | 68 | if (Session::isLogged()) { |