X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Flogin.php;h=dd73704f69a6504119d72a40de2ce88dfad0987a;hb=b135de9c8c0238f850abca25b972b0969bc5d205;hp=a9bb27947dd57d7b7336e3a12bd5a5bd97cb90e5;hpb=20db5033a7f36d40c7fe11d561069de9c9a2a970;p=squirrelmail.git diff --git a/src/login.php b/src/login.php index a9bb2794..dd73704f 100644 --- a/src/login.php +++ b/src/login.php @@ -1,58 +1,138 @@ - - /** - ** login.php3 - ** - ** 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.php3"); - - 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". + "