". t('Login') .'
'. variable_get('securesite_login_form', t('

Enter your %site username and password.

', array('%site' => variable_get('site_name', 'Drupal')))) . (!isset($_POST['securesite_request_form']) ? theme('status_messages') : '') .'

'; } /** * Returns complete form for password reset request -if- securesite_request_form var exists */ function _securesite_request_form() { $securesite_enabled = variable_get('securesite_enabled', SECURESITE_DISABLED); if ($form_msg = variable_get('securesite_request_form', t('

Enter your username and your e-mail address.

'))) { if ($securesite_enabled == SECURESITE_FORM) { // Only output the HR if also outputting the Login form $output = "
\n\n "; } $output .= "\n

". t('Password Reset') .'

'. $form_msg .'
'. theme('status_messages') .'

'; } else if ($securesite_enabled == SECURESITE_AUTH || $securesite_enabled == SECURESITE_AUTH_ALT) { // If password reset is disabled and the login form isn't being used, output a message // to the user informing them how to login $output = theme('status_messages') .'

'. t('Reload the page to try logging in again.') ."

\n"; } return $output; } /** * Print HTML dialog page for securesite */ function _securesite_dialog_page($content) { // Display themed dialog $theme_path = drupal_get_path('theme', variable_get('theme_default', 'garland')); $dialog_file = '/securesite-dialog.tpl.php'; if (file_exists($theme_path . $dialog_file)) { include_once($theme_path . $dialog_file); } else { include_once(drupal_get_path('module', 'securesite') . $dialog_file); } }