- echo "<BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
- echo "<FORM ACTION=webmail.php METHOD=\"POST\" NAME=f>\n";
+ 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 "<HTML>";
+ echo "<HEAD><TITLE>";
+ echo _("SquirrelMail Login");
+ echo "</TITLE></HEAD>\n";
+ echo "<BODY TEXT=000000 BGCOLOR=#FFFFFF LINK=0000CC VLINK=0000CC ALINK=0000CC>\n";
+
+ echo "<FORM ACTION=\"webmail.php\" METHOD=\"POST\" NAME=f>\n";