mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-22 17:18:37 +00:00
#4 - ajout système de connexion (login poche mot de passe poche pour l'instant)
This commit is contained in:
parent
b693a19e1c
commit
e4d2565e05
15 changed files with 544 additions and 118 deletions
18
index.php
18
index.php
|
@ -10,17 +10,19 @@
|
|||
|
||||
include dirname(__FILE__).'/inc/config.php';
|
||||
|
||||
$entries = display_view($view);
|
||||
$entries = get_entries($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->assign('token', $_SESSION['token_poche']);
|
||||
|
||||
$tpl->draw('head');
|
||||
$tpl->draw('home');
|
||||
$tpl->draw('entries');
|
||||
$tpl->draw('js');
|
||||
$tpl->draw('footer');
|
||||
if (Session::isLogged()) {
|
||||
$tpl->draw('home');
|
||||
$tpl->draw('entries');
|
||||
$tpl->draw('js');
|
||||
}
|
||||
else {
|
||||
$tpl->draw('login');
|
||||
}
|
||||
$tpl->draw('footer');
|
Loading…
Add table
Add a link
Reference in a new issue