aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2013-04-22 23:34:55 -0700
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2013-04-22 23:34:55 -0700
commit37f2773aa548a92456570083abcf9776f5774906 (patch)
treed56ca95f3725c5d52c3088a53d4c85e062f6a783 /index.php
parent37c6ed4e7a75238504a28d6be5fbaad475689526 (diff)
parent69ca1455d13e27de9e3f506f294010889a560fb9 (diff)
downloadwallabag-37f2773aa548a92456570083abcf9776f5774906.tar.gz
wallabag-37f2773aa548a92456570083abcf9776f5774906.tar.zst
wallabag-37f2773aa548a92456570083abcf9776f5774906.zip
Merge pull request #74 from inthepoche/dev
v0.2.1
Diffstat (limited to 'index.php')
-rw-r--r--index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.php b/index.php
index 6eefd277..829d5513 100644
--- a/index.php
+++ b/index.php
@@ -27,6 +27,7 @@ if (isset($_GET['login'])) {
27 if (!empty($_POST['login']) && !empty($_POST['password'])) { 27 if (!empty($_POST['login']) && !empty($_POST['password'])) {
28 if (Session::login('poche', 'poche', $_POST['login'], $_POST['password'])) { 28 if (Session::login('poche', 'poche', $_POST['login'], $_POST['password'])) {
29 logm('login successful'); 29 logm('login successful');
30 $msg->add('s', 'welcome in your pocket!');
30 if (!empty($_POST['longlastingsession'])) { 31 if (!empty($_POST['longlastingsession'])) {
31 $_SESSION['longlastingsession'] = 31536000; 32 $_SESSION['longlastingsession'] = 31536000;
32 $_SESSION['expires_on'] = time() + $_SESSION['longlastingsession']; 33 $_SESSION['expires_on'] = time() + $_SESSION['longlastingsession'];