aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2013-05-31 22:55:52 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2013-05-31 22:55:52 +0200
commitaa8c9f2a32ea75278d52c86c6a3a39d34bce5cc7 (patch)
tree0f87b4812a968e85383eedb6803170e913cb6275 /index.php
parentbaa8617364c3888fd28c3ffe83cfeb5345914356 (diff)
downloadwallabag-aa8c9f2a32ea75278d52c86c6a3a39d34bce5cc7.tar.gz
wallabag-aa8c9f2a32ea75278d52c86c6a3a39d34bce5cc7.tar.zst
wallabag-aa8c9f2a32ea75278d52c86c6a3a39d34bce5cc7.zip
Installation mode
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/index.php b/index.php
index 829d5513..1522a2ec 100644
--- a/index.php
+++ b/index.php
@@ -25,9 +25,14 @@ $ref = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER'];
25if (isset($_GET['login'])) { 25if (isset($_GET['login'])) {
26 // Login 26 // 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// echo $_SESSION['login']."<br>";
29// echo $_SESSION['pass']."<br>";
30// echo $_POST['login']."<br>";
31// echo encode_string($_POST['password'] . $_POST['login']);
32// die;
33 if (Session::login($_SESSION['login'], $_SESSION['pass'], $_POST['login'], encode_string($_POST['password'] . $_POST['login']))) {
29 logm('login successful'); 34 logm('login successful');
30 $msg->add('s', 'welcome in your pocket!'); 35 $msg->add('s', 'welcome in your poche!');
31 if (!empty($_POST['longlastingsession'])) { 36 if (!empty($_POST['longlastingsession'])) {
32 $_SESSION['longlastingsession'] = 31536000; 37 $_SESSION['longlastingsession'] = 31536000;
33 $_SESSION['expires_on'] = time() + $_SESSION['longlastingsession']; 38 $_SESSION['expires_on'] = time() + $_SESSION['longlastingsession'];