if (!empty($_POST['login']) && !empty($_POST['password'])) {
if (Session::login('poche', 'poche', $_POST['login'], $_POST['password'])) {
logm('login successful');
+ $msg->add('s', 'welcome in your pocket!');
if (!empty($_POST['longlastingsession'])) {
$_SESSION['longlastingsession'] = 31536000;
$_SESSION['expires_on'] = time() + $_SESSION['longlastingsession'];
<body class="light-style">
<header>
- <h1><a href="/"><img src="./img/logo.png" alt="logo poche" /></a>poche</h1>
+ <h1><a href="index.php"><img src="./img/logo.png" alt="logo poche" /></a>poche</h1>
</header>
<div id="main">
<ul id="links">
{include="head"}
<body class="light-style">
<header>
- <h1><a href="/"><img src="./img/logo.png" alt="logo poche" /></a>poche</h1>
+ <h1><a href="index.php"><img src="./img/logo.png" alt="logo poche" /></a>poche</h1>
</header>
<div id="main">
<form method="post" action="?login" name="loginform">