isLogin()){ header('Location: ' . BASEDIR); } $template = new Template('login'); $template->prepare('title', 'Home'); $template->prepare('lang', $lang); $template->render(); } }