aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index 0a778d08..5de8f7f0 100644
--- a/index.php
+++ b/index.php
@@ -54,7 +54,7 @@ elseif (isset($_GET['config'])) {
54 if (isset($_POST['password']) && isset($_POST['password_repeat'])) { 54 if (isset($_POST['password']) && isset($_POST['password_repeat'])) {
55 if ($_POST['password'] == $_POST['password_repeat'] && $_POST['password'] != "") { 55 if ($_POST['password'] == $_POST['password_repeat'] && $_POST['password'] != "") {
56 logm('password updated'); 56 logm('password updated');
57 if (!DEMO) { 57 if (!MODE_DEMO) {
58 $store->updatePassword(encode_string($_POST['password'] . $_SESSION['login'])); 58 $store->updatePassword(encode_string($_POST['password'] . $_SESSION['login']));
59 $msg->add('s', 'your password has been updated'); 59 $msg->add('s', 'your password has been updated');
60 } 60 }
@@ -79,6 +79,7 @@ $tpl->assign('isLogged', Session::isLogged());
79$tpl->assign('referer', $ref); 79$tpl->assign('referer', $ref);
80$tpl->assign('view', $view); 80$tpl->assign('view', $view);
81$tpl->assign('poche_url', myTool::getUrl()); 81$tpl->assign('poche_url', myTool::getUrl());
82$tpl->assign('demo', MODE_DEMO);
82$tpl->assign('title', 'poche, a read it later open source system'); 83$tpl->assign('title', 'poche, a read it later open source system');
83 84
84if (Session::isLogged()) { 85if (Session::isLogged()) {
@@ -86,5 +87,6 @@ if (Session::isLogged()) {
86 display_view($view, $id, $full_head); 87 display_view($view, $id, $full_head);
87} 88}
88else { 89else {
90
89 $tpl->draw('login'); 91 $tpl->draw('login');
90} 92}