This commit is contained in:
William 2022-01-25 17:31:11 +01:00
parent 26ae51c2e8
commit bcd610f36a
2 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,11 @@
<?php
$app = require '../app/inc.php';
if (!$app->user->loggedIn)
{
$app->redirect('index.php');
}
$app->view('template/header', ["title" => "Bekreft avlogging"]);
$app->view('confirm_logout');
$app->view('template/footer');

View File

@ -1,6 +1,11 @@
<?php
$app = require '../app/inc.php';
if (!$app->user->loggedIn)
{
$app->redirect('login.php');
}
$app->session->clear();
$app->session->flash('Du har blitt logget av');
$app->redirect("login.php");