X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Flogin.php;h=dd73704f69a6504119d72a40de2ce88dfad0987a;hp=9814a3a26e6d46f97c8e8695c13c988b8555f065;hb=31e4027a33c78b19f4aff48dd6999284a034c7c0;hpb=dd88d31f69c41238a0adb6ba699d4ae1e043dfb0 diff --git a/src/login.php b/src/login.php index 9814a3a2..dd73704f 100644 --- a/src/login.php +++ b/src/login.php @@ -1,58 +1,138 @@ - - /** - ** login.php - ** - ** Very simple login screen that clears the cookie every time it's loaded - ** - **/ - - setcookie("username", "", time(), "/"); - setcookie("key", "", time(), "/"); - setcookie("logged_in", 0, time(), "/"); -?> - -
- - include("../config/config.php"); - - echo "\n"; -?> + - document.f.username.focus(); - +/* Output the javascript onload function. */ - - +$header = "\n"; +$custom_css = 'none'; +displayHtmlHeader( "$org_name - " . _("Login"), $header, FALSE ); +/* Set the title of this page. */ +echo ''; + +$username_form_name = 'login_username'; +$password_form_name = 'secretkey'; +do_hook('login_top'); + +$loginname_value = (isset($loginname) ? htmlspecialchars($loginname) : ''); + +/* Display width and height like good little people */ +$width_and_height = ''; +if (isset($org_logo_width) && is_numeric($org_logo_width) && $org_logo_width>0) { + $width_and_height = " width=\"$org_logo_width\""; +} +if (isset($org_logo_height) && is_numeric($org_logo_height) && $org_logo_height>0) { + $width_and_height .= " height=\"$org_logo_height\""; +} + +echo "\n" . '' . "\n"; + +do_hook('login_form'); + +do_hook('login_bottom'); +echo "\n". + "