X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Flogin.php;h=fb004cacb48996f3472a0488a8e286adcb9d5d76;hb=2c86c02c16613d2e95d735e15b2b26d17c563453;hp=c6f4a10c6b986a853e5947464a8ec68c1cb0b986;hpb=175e7218bffd68523c8c32a7fae9bde6b5d5c952;p=squirrelmail.git
diff --git a/src/login.php b/src/login.php
index c6f4a10c..fb004cac 100644
--- a/src/login.php
+++ b/src/login.php
@@ -1,80 +1,167 @@
-
- /**
- ** 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(), "/");
-
- if (!isset($config_php))
- include("../config/config.php");
- if (!isset($strings_php))
- include("../functions/strings.php");
-
- // let's check to see if they compiled with gettext support
- if (!function_exists("_")) {
- function _($string) {
- return $string;
- }
- } else {
- // $squirrelmail_language is set by a cookie when the user selects
- // language
- if (isset($squirrelmail_language)) {
- if ($squirrelmail_language != "en") {
- putenv("LANG=".$squirrelmail_language);
- bindtextdomain("squirrelmail", "../locale/");
- textdomain("squirrelmail");
- }
- }
- }
-
- echo "";
- echo "
";
- echo _("SquirrelMail Login");
- echo "\n";
- echo "\n";
+\n";
- echo "
\n";
- echo "";
- echo _("SquirrelMail version $version
By the SquirrelMail Development Team");
- echo "
\n";
- echo "\n";
- echo "\n";
-?>
-
-
+header('Pragma: no-cache');
+
+do_hook('login_cookie');
+/* Output the javascript onload function. */
+
+$header = "\n";
+$custom_css = 'none';
+displayHtmlHeader( "$org_name - " . _("Login"), $header, FALSE );
+
+echo '' .
+ "\n" . '' . "\n";
+
+do_hook('login_bottom');
+echo "\n".
+ "