mirror of
https://github.com/wallabag/wallabag.git
synced 2024-10-31 22:28:54 +00:00
36 lines
No EOL
935 B
PHP
Executable file
36 lines
No EOL
935 B
PHP
Executable file
<?php
|
|
/**
|
|
* poche, a read it later open source system
|
|
*
|
|
* @category poche
|
|
* @author Nicolas Lœuillet <nicolas@loeuillet.org>
|
|
* @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->assign('token', $_SESSION['token_poche']);
|
|
$tpl->draw('view');
|
|
}
|
|
else {
|
|
die('error in view call');
|
|
}
|
|
}
|
|
else {
|
|
die('error in view call');
|
|
} |