From a1953dff8f39b225b408c3046246e9446a01f305 Mon Sep 17 00:00:00 2001 From: nicosomb Date: Fri, 19 Apr 2013 11:41:12 +0200 Subject: =?UTF-8?q?tout=20est=20recentr=C3=A9=20sur=20index.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view.php | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 view.php (limited to 'view.php') diff --git a/view.php b/view.php deleted file mode 100644 index 29a5b324..00000000 --- a/view.php +++ /dev/null @@ -1,35 +0,0 @@ - - * @copyright 2013 - * @license http://www.wtfpl.net/ see COPYING file - */ - -include dirname(__FILE__).'/inc/config.php'; - -$id = (isset ($_GET['id'])) ? htmlspecialchars($_GET['id']) : ''; - -if(!empty($id)) { - - $entry = get_article($id); - - if ($entry != NULL) { - $tpl->assign('id', $entry[0]['id']); - $tpl->assign('url', $entry[0]['url']); - $tpl->assign('title', $entry[0]['title']); - $tpl->assign('content', $entry[0]['content']); - $tpl->assign('is_fav', $entry[0]['is_fav']); - $tpl->assign('is_read', $entry[0]['is_read']); - $tpl->assign('load_all_js', 0); - $tpl->draw('view'); - } - else { - logm('error in view call : entry is NULL'); - } -} -else { - logm('error in view call : id is empty'); -} \ No newline at end of file -- cgit v1.2.3