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

20 lines
318 B
PHP

<?php
class Login extends Template
{
function __construct()
{
global $userManager;
global $lang;
if ($userManager->isLogin()){
header('Location: ' . BASEDIR);
}
$template = new Template('login');
$template->prepare('title', 'Home');
$template->prepare('lang', $lang);
$template->render();
}
}