]> git.immae.eu Git - github/wallabag/wallabag.git/blame - view.php
Fixed #13 - tri par date / tri par titre
[github/wallabag/wallabag.git] / view.php
CommitLineData
67e79104 1<?php
2/**
3 * poche, a read it later open source system
4 *
5 * @category poche
6 * @author Nicolas LÅ“uillet <nicolas@loeuillet.org>
7 * @copyright 2013
8 * @license http://www.wtfpl.net/ see COPYING file
9 */
10
67e79104 11include dirname(__FILE__).'/inc/config.php';
67e79104 12
263d6c67 13$id = (isset ($_GET['id'])) ? htmlspecialchars($_GET['id']) : '';
67e79104 14
263d6c67 15if(!empty($id)) {
67e79104 16
263d6c67 17 $entry = get_article($id);
67e79104 18
c8bbe19b 19 if ($entry != NULL) {
8046748b 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', $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);
cf3180f6 27 $tpl->assign('token', $_SESSION['token_poche']);
8046748b 28 $tpl->draw('view');
c8bbe19b 29 }
30 else {
31 die('error in view call');
32 }
33}
34else {
35 die('error in view call');
67e79104 36}