]>
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 if(isset($_GET['id']) && $_GET['id'] != '') {
15 $sql = "SELECT * FROM entries WHERE id=?";
16 $params = array(intval($_GET['id']));
21 $query = $db->getHandle()->prepare($sql);
22 $query->execute($params);
23 $entry = $query->fetchAll();
27 die('query error : '.$e->getMessage());
31 $tpl->assign('id', $entry[0]['id']);
32 $tpl->assign('url', $entry[0]['url']);
33 $tpl->assign('title', $entry[0]['title']);
34 $tpl->assign('content', $entry[0]['content']);
35 $tpl->assign('is_fav', $entry[0]['is_fav']);
36 $tpl->assign('is_read', $entry[0]['is_read']);
37 $tpl->assign('load_all_js', 0);
41 die('error in view call');
45 die('error in view call');