7 * @author Jan Altensen (Stricted)
8 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
9 * @copyright 2014-2016 Jan Altensen (Stricted)
11 class LoginPage
extends AbstractPage
{
12 const AVAILABLE_DURING_OFFLINE_MODE
= true;
14 public function prepare() {
15 if (isset($_POST['submit']) && isset($_POST['username']) && isset($_POST['password'])) {
16 if (!empty($_POST['submit']) && !empty($_POST['username']) && !empty($_POST['password'])) {
18 if (isset($_POST['remember']) && !empty($_POST['remember'])) {
22 User
::login(trim($_POST['username']), trim($_POST['password']), $remember);
23 header("Location: index.php?index");