2019-08-23 11:39:42 +00:00
|
|
|
<?php
|
|
|
|
class Login extends Template
|
|
|
|
{
|
|
|
|
function __construct()
|
|
|
|
{
|
|
|
|
global $userManager;
|
|
|
|
global $lang;
|
|
|
|
|
|
|
|
if ($userManager->isLogin()){
|
2019-10-11 14:32:05 +00:00
|
|
|
header('Location: ' . BASEDIR);
|
2019-08-23 11:39:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$template = new Template('login');
|
2019-10-11 14:38:20 +00:00
|
|
|
$template->prepare('baseDir', BASEDIR);
|
2019-08-23 11:39:42 +00:00
|
|
|
$template->prepare('title', 'Home');
|
|
|
|
$template->prepare('lang', $lang);
|
|
|
|
|
2020-01-17 09:27:51 +00:00
|
|
|
|
|
|
|
|
2019-08-23 11:39:42 +00:00
|
|
|
$template->render();
|
|
|
|
}
|
|
|
|
}
|