X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Flogin.php;h=4c4c41c3f0fa3c3115ba34c69f3f97cdc997fea1;hb=c3ccfa1912b4ca47279d259bb587ceb293ce5d83;hp=0466b50c47cf97a72d1992b4ab43944789748e3d;hpb=2a32fc83f95eba42be0d1752ef685adf10e1edc9;p=squirrelmail.git
diff --git a/src/login.php b/src/login.php
index 0466b50c..4c4c41c3 100644
--- a/src/login.php
+++ b/src/login.php
@@ -1,80 +1,161 @@
-
- /**
- ** 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".
+ "