wallabag/index.php

26 lines
832 B
PHP
Raw Normal View History

2013-04-03 13:14:01 +00:00
<?php
/**
* poche, a read it later open source system
*
* @category poche
2013-04-13 09:08:31 +00:00
* @author Nicolas Lœuillet <support@inthepoche.com>
2013-04-03 13:14:01 +00:00
* @copyright 2013
* @license http://www.wtfpl.net/ see COPYING file
*/
2013-04-09 13:18:39 +00:00
include dirname(__FILE__).'/inc/config.php';
2013-04-03 13:14:01 +00:00
$action = (isset ($_GET['action'])) ? htmlspecialchars($_GET['action']) : '';
2013-04-15 07:58:34 +00:00
$view = (isset ($_GET['view'])) ? htmlspecialchars($_GET['view']) : 'index';
$id = (isset ($_GET['id'])) ? htmlspecialchars($_GET['id']) : '';
2013-04-15 07:04:23 +00:00
$url = (isset ($_GET['url'])) ? $_GET['url'] : '';
2013-04-03 13:14:01 +00:00
2013-04-15 07:58:34 +00:00
action_to_do($action, $id);
$entries = display_view($view);
$tpl->assign('title', 'poche, a read it later open source system');
$tpl->assign('view', $view);
$tpl->assign('poche_url', get_poche_url());
$tpl->assign('entries', $entries);
$tpl->assign('load_all_js', 1);
$tpl->draw('home');