assign('error', $error_message); } $flash = Display::getFlashToString(); Display::cleanFlashMessages(); if (api_get_setting('allow_registration') === 'true') { $urlRegister = api_get_path(WEB_CODE_PATH).'auth/inscription.php?language='.api_get_interface_language(); $template->assign('url_register', $urlRegister); } $urlLostPassword = api_get_path(WEB_CODE_PATH).'auth/lostPassword.php?language='.api_get_interface_language(); $template->assign('url_lost_password', $urlLostPassword); $template->assign('mgs_flash', $flash); $layout = $template->get_template('custompage/login.tpl'); $content = $template->fetch($layout); $template->assign('content', $content); $template->display_blank_template();