aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authornicosomb <nicolas@loeuillet.org>2013-04-23 09:40:35 +0200
committernicosomb <nicolas@loeuillet.org>2013-04-23 09:40:35 +0200
commit8444bb0600f2432835a7ceaad8c87d4e63f26bd4 (patch)
treed56ca95f3725c5d52c3088a53d4c85e062f6a783 /index.php
parente682978e5b5da7c40ffd3854bd35e2d4e28dcdc8 (diff)
parent37f2773aa548a92456570083abcf9776f5774906 (diff)
downloadwallabag-8444bb0600f2432835a7ceaad8c87d4e63f26bd4.tar.gz
wallabag-8444bb0600f2432835a7ceaad8c87d4e63f26bd4.tar.zst
wallabag-8444bb0600f2432835a7ceaad8c87d4e63f26bd4.zip
Merge branch 'master' of github.com:inthepoche/poche
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'];