1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-06-27 16:36:00 +00:00
wallabag/view.php
PeaceCopathe aa18d7bb62 Compression sur le content et correction bug
- Rajout de gzinflate() et base64_encode() sur le "content".
- Correction bug si tentative de suppression répertoire archiveImg non
existant
2013-04-15 23:51:48 +02:00

35 lines
No EOL
904 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', gzinflate(base64_decode($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 {
die('error in view call');
}
}
else {
die('error in view call');
}