diff options
author | nicosomb <nicolas@loeuillet.org> | 2013-04-23 08:07:47 +0200 |
---|---|---|
committer | nicosomb <nicolas@loeuillet.org> | 2013-04-23 08:07:47 +0200 |
commit | 88958248fab89c8bfa0014c6e4c300cb27a522b2 (patch) | |
tree | c71dee457204bb0ccfe3cf8f44d119644402e665 | |
parent | 2761de0184d03ad85f69589c379c94049bb43d24 (diff) | |
download | wallabag-88958248fab89c8bfa0014c6e4c300cb27a522b2.tar.gz wallabag-88958248fab89c8bfa0014c6e4c300cb27a522b2.tar.zst wallabag-88958248fab89c8bfa0014c6e4c300cb27a522b2.zip |
message de bienvenue
-rw-r--r-- | index.php | 1 | ||||
-rw-r--r-- | tpl/home.html | 2 | ||||
-rw-r--r-- | tpl/login.html | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -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']; |
diff --git a/tpl/home.html b/tpl/home.html index e99e1680..90e247f7 100644 --- a/tpl/home.html +++ b/tpl/home.html | |||
@@ -1,6 +1,6 @@ | |||
1 | <body class="light-style"> | 1 | <body class="light-style"> |
2 | <header> | 2 | <header> |
3 | <h1><a href="/"><img src="./img/logo.png" alt="logo poche" /></a>poche</h1> | 3 | <h1><a href="index.php"><img src="./img/logo.png" alt="logo poche" /></a>poche</h1> |
4 | </header> | 4 | </header> |
5 | <div id="main"> | 5 | <div id="main"> |
6 | <ul id="links"> | 6 | <ul id="links"> |
diff --git a/tpl/login.html b/tpl/login.html index 66dac99b..ebe4b5e5 100644 --- a/tpl/login.html +++ b/tpl/login.html | |||
@@ -1,7 +1,7 @@ | |||
1 | {include="head"} | 1 | {include="head"} |
2 | <body class="light-style"> | 2 | <body class="light-style"> |
3 | <header> | 3 | <header> |
4 | <h1><a href="/"><img src="./img/logo.png" alt="logo poche" /></a>poche</h1> | 4 | <h1><a href="index.php"><img src="./img/logo.png" alt="logo poche" /></a>poche</h1> |
5 | </header> | 5 | </header> |
6 | <div id="main"> | 6 | <div id="main"> |
7 | <form method="post" action="?login" name="loginform"> | 7 | <form method="post" action="?login" name="loginform"> |