Commit
This commit is contained in:
parent
26ae51c2e8
commit
bcd610f36a
@ -1,6 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
$app = require '../app/inc.php';
|
$app = require '../app/inc.php';
|
||||||
|
|
||||||
|
if (!$app->user->loggedIn)
|
||||||
|
{
|
||||||
|
$app->redirect('index.php');
|
||||||
|
}
|
||||||
|
|
||||||
$app->view('template/header', ["title" => "Bekreft avlogging"]);
|
$app->view('template/header', ["title" => "Bekreft avlogging"]);
|
||||||
$app->view('confirm_logout');
|
$app->view('confirm_logout');
|
||||||
$app->view('template/footer');
|
$app->view('template/footer');
|
@ -1,6 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
$app = require '../app/inc.php';
|
$app = require '../app/inc.php';
|
||||||
|
|
||||||
|
if (!$app->user->loggedIn)
|
||||||
|
{
|
||||||
|
$app->redirect('login.php');
|
||||||
|
}
|
||||||
|
|
||||||
$app->session->clear();
|
$app->session->clear();
|
||||||
$app->session->flash('Du har blitt logget av');
|
$app->session->flash('Du har blitt logget av');
|
||||||
$app->redirect("login.php");
|
$app->redirect("login.php");
|
Reference in New Issue
Block a user