', $txt['login'], '

'; // Did they make a mistake last time? if (!empty($context['login_errors'])) echo '
', implode('
', $context['login_errors']), '

'; // Or perhaps there's some special description for this time? if (isset($context['description'])) echo '
', $context['description'], '
'; // Now just get the basic information - username, password, etc. echo '
', $txt['khbb_connexion_info'], ' '; // If they have deleted their account, give them a chance to change their mind. if (isset($context['login_show_undelete'])) echo ' '; echo '

', $txt['forgot_your_password'], '

'; if (!empty($modSettings['registration_method']) && $modSettings['registration_method'] == 1) echo '

', sprintf($txt['welcome_guest_activate'], $scripturl), '

'; echo '
'; if (!empty($context['can_register'])) echo '
', sprintf($txt['register_prompt'], $scripturl), '
'; // It is a long story as to why we have this when we're clearly not going to use it. if (!empty($context['from_ajax'])) echo '
'; echo '
'; } /** * TFA authentication form */ function template_login_tfa() { global $context, $scripturl, $txt; echo '

', $txt['tfa_profile_label'], '

'; if (!empty($context['tfa_error']) || !empty($context['tfa_backup_error'])) echo '
', $txt['tfa_' . (!empty($context['tfa_error']) ? 'code_' : 'backup_') . 'invalid'], '
'; echo '

', $txt['tfa_login_desc'], '

', $txt['tfa_code'], ':

'; } /** * Tell a guest to get lost or login! */ function template_kick_guest() { global $context, $settings, $scripturl, $modSettings, $txt; // This isn't that much... just like normal login but with a message at the top. echo '

', $txt['warning'], '

'; // Show the message or default message. echo '

', empty($context['kick_message']) ? $txt['only_members_can_access'] : $context['kick_message'], '
'; if ($context['can_register']) echo sprintf($txt['login_below_or_register'], $scripturl . '?action=signup', $context['forum_name_html_safe']); else echo $txt['login_below']; // And now the login information. echo '

', $txt['login'], '

', $txt['username'], ':
', $txt['password'], ':
', $txt['time_logged_in'], ':

', $txt['forgot_your_password'], '

'; // Do the focus thing... echo ' '; } /** * This is for maintenance mode. */ function template_maintenance() { global $context, $settings, $txt, $modSettings; // Display the administrator's message at the top. echo '

', $context['title'], '

', $txt['in_maintain_mode'], ' ', $context['description'], '

', $txt['admin_login'], '

', $txt['username'], ':
', $txt['password'], ':
', $txt['time_logged_in'], ':

'; } /** * This is for the security stuff - makes administrators login every so often. */ function template_admin_login() { global $context, $settings, $scripturl, $txt, $modSettings; // Since this should redirect to whatever they were doing, send all the get data. echo '

', $txt['login'], '

'; if (!empty($context['incorrect_password'])) echo '
', $txt['admin_incorrect_password'], '
'; echo ' ', $txt['password'], ':
'; // Make sure to output all the old post data. echo $context['post_data'], '
'; // Focus on the password box. echo ' '; } /** * Activate your account manually? */ function template_retry_activate() { global $context, $txt, $scripturl; // Just ask them for their code so they can try it again... echo '

', $context['page_title'], '

'; // You didn't even have an ID? if (empty($context['member_id'])) echo '
', $txt['invalid_activation_username'], ':
'; echo '
', $txt['invalid_activation_retry'], ':

'; } /** * The form for resending the activation code. */ function template_resend() { global $context, $txt, $scripturl; // Just ask them for their code so they can try it again... echo '

', $context['page_title'], '

', $txt['invalid_activation_username'], ':

', $txt['invalid_activation_new'], '

', $txt['invalid_activation_new_email'], ':
', $txt['invalid_activation_password'], ':
'; if ($context['can_activate']) echo '

', $txt['invalid_activation_known'], '

', $txt['invalid_activation_retry'], ':
'; echo '

'; } /** * Confirm a logout. */ function template_logout() { global $context, $settings, $scripturl, $modSettings, $txt; // This isn't that much... just like normal login but with a message at the top. echo '

', $txt['logout_confirm'], '

', $txt['logout_notice'], '

'; } ?>