]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - view.php
3 * poche, a read it later open source system
6 * @author Nicolas Lœuillet <nicolas@loeuillet.org>
8 * @license http://www.wtfpl.net/ see COPYING file
11 include dirname(__FILE__
).'/inc/config.php';
13 $id = (isset ($_GET['id'])) ? htmlspecialchars($_GET['id']) : '';
17 $entry = get_article($id);
20 $tpl->assign('id', $entry[0]['id']);
21 $tpl->assign('url', $entry[0]['url']);
22 $tpl->assign('title', $entry[0]['title']);
23 $tpl->assign('content', gzinflate(base64_decode($entry[0]['content'])));
24 $tpl->assign('is_fav', $entry[0]['is_fav']);
25 $tpl->assign('is_read', $entry[0]['is_read']);
26 $tpl->assign('load_all_js', 0);
27 $tpl->assign('token', $_SESSION['token_poche']);
31 logm('error in view call : entry is NULL');
35 logm('error in view call : id is empty');