2020-05-16 15:18:27 +00:00
|
|
|
<?php
|
|
|
|
class Login extends Template
|
|
|
|
{
|
|
|
|
function __construct()
|
|
|
|
{
|
2020-07-20 17:15:23 +00:00
|
|
|
$userManager = new UserManager();
|
2020-05-16 15:18:27 +00:00
|
|
|
global $lang;
|
|
|
|
|
|
|
|
if ($userManager->isLogin()){
|
|
|
|
header('Location: ' . BASEURL);
|
|
|
|
}
|
|
|
|
|
|
|
|
$template = new Template('login');
|
|
|
|
$template->prepare('baseDir', BASEDIR);
|
|
|
|
$template->prepare('title', 'Home');
|
|
|
|
$template->prepare('lang', $lang);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$template->render();
|
|
|
|
}
|
|
|
|
}
|