PHP_SMART_HOME_V3/app/views/Logout.php
2019-10-11 16:32:05 +02:00

12 lines
172 B
PHP

<?php
class Logout extends Template
{
function __construct()
{
global $userManager;
$userManager->logout();
header('Location: ' . BASEDIR . 'login');
die();
}
}