<?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");