mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 09:45:33 +00:00
23 lines
362 B
PHP
23 lines
362 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('baseDir', BASEDIR);
|
|
$template->prepare('title', 'Home');
|
|
$template->prepare('lang', $lang);
|
|
|
|
|
|
|
|
$template->render();
|
|
}
|
|
}
|