aboutsummaryrefslogtreecommitdiffhomepage
path: root/view.php
diff options
context:
space:
mode:
authornicosomb <nicolas@loeuillet.org>2013-04-19 11:41:12 +0200
committernicosomb <nicolas@loeuillet.org>2013-04-19 11:41:12 +0200
commita1953dff8f39b225b408c3046246e9446a01f305 (patch)
tree70b1989080f5fcf9581dc6aa208664efaeb7b02d /view.php
parentc00cdfdd3bc8e53750d34c60d13cd2d885c5d4fd (diff)
downloadwallabag-a1953dff8f39b225b408c3046246e9446a01f305.tar.gz
wallabag-a1953dff8f39b225b408c3046246e9446a01f305.tar.zst
wallabag-a1953dff8f39b225b408c3046246e9446a01f305.zip
tout est recentré sur index.php0.1
Diffstat (limited to 'view.php')
-rw-r--r--view.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/view.php b/view.php
deleted file mode 100644
index 29a5b324..00000000
--- a/view.php
+++ /dev/null
@@ -1,35 +0,0 @@
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
11include dirname(__FILE__).'/inc/config.php';
12
13$id = (isset ($_GET['id'])) ? htmlspecialchars($_GET['id']) : '';
14
15if(!empty($id)) {
16
17 $entry = get_article($id);
18
19 if ($entry != NULL) {
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);
27 $tpl->draw('view');
28 }
29 else {
30 logm('error in view call : entry is NULL');
31 }
32}
33else {
34 logm('error in view call : id is empty');
35} \ No newline at end of file