PHP_SMART_HOME_V3/app/views/Login.php

23 lines
365 B
PHP
Raw Normal View History

2020-05-16 15:18:27 +00:00
<?php
class Login extends Template
{
function __construct()
{
$userManager = new UserManager();
2020-12-09 11:19:19 +00:00
2020-05-16 15:18:27 +00:00
if ($userManager->isLogin()){
header('Location: ' . BASEURL);
}
$template = new Template('login');
$template->prepare('baseDir', BASEDIR);
2020-12-09 11:19:19 +00:00
$template->prepare('baseUrl', BASEURL);
2020-05-16 15:18:27 +00:00
$template->prepare('title', 'Home');
$template->render();
}
}