Fixes some bugs in preferences
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 6 Jan 2000 21:15:33 +0000 (21:15 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 6 Jan 2000 21:15:33 +0000 (21:15 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@118 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/smtp.php
src/left_main.php
src/load_prefs.php
src/options.php
src/right_main.php

index 6150e24ce24e859301b864f04b6d56b5a6994b4e..0bfaf93506fe66af7a0fc54382749b8c6b297904 100644 (file)
@@ -26,6 +26,7 @@
       $from_addr = "$username@$domain";
       $reply_to = getPref($data_dir, $username, "reply_to");
       $from = getPref($data_dir, $username, "full_name");
+
       if ($from == "")
          $from = "<$from_addr>";
       else
          fputs($smtpConnection, "Cc: <$cc_list>\n"); // Who the CCs are
       }
       fputs($smtpConnection, "X-Mailer: SquirrelMail (version $version)\n"); // Identify SquirrelMail
-      fputs($smtpConnection, "Reply-To: $reply_to\n");
       fputs($smtpConnection, "MIME-Version: 1.0\n");
       fputs($smtpConnection, "Content-Type: text/plain\n");
+      if ($reply_to != "")
+         fputs($smtpConnection, "Reply-To: $reply_to\n");
 
       fputs($smtpConnection, "$body\n"); // send the body of the message
 
index db84533b8c3f7f6c2532e892884ce2ba8ae830cb..655895448b9ec9216046a69752a01cece893bf01 100644 (file)
@@ -70,7 +70,6 @@
 
    /** If it was a successful login, lets load their preferences **/
    include("../src/load_prefs.php");
-   checkForPrefs($data_dir, $username);
    echo "<BODY BGCOLOR=\"$color[3]\" TEXT=\"$color[6]\" LINK=\"$color[6]\" VLINK=\"$color[6]\" ALINK=\"$color[6]\">";
    echo "<FONT FACE=\"Arial,Helvetica\">";
 
index 5b5803551e6e90f6749445d219f4bb86dab996c8..e302658ea472e160e7ad3769e5967067b08c1286 100644 (file)
@@ -2,6 +2,8 @@
    include("../config/config.php");
    include("../functions/prefs.php");
 
+   checkForPrefs($data_dir, $username);
+
    $chosen_theme = getPref($data_dir, $username, "chosen_theme");
 
    if ((isset($chosen_theme)) && (file_exists($chosen_theme))) {
index 17aabaf146a54626999a1d41c52f974f30d558ff..362a22a53b3e318fb5c78e5b4f598a4414cabcc7 100644 (file)
@@ -16,8 +16,6 @@
    /** load up some of the values from the pref file **/
    $fullname = getPref($data_dir, $username, "full_name");
    $replyto  = getPref($data_dir, $username, "reply_to");
-   if ($replyto == "")
-      $replyto = "$username@$domain";
 
    echo "<TABLE WIDTH=100% COLS=1 ALIGN=CENTER>\n";
    echo "   <TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER>\n";
@@ -36,7 +34,7 @@
    echo "      </TD>";
    echo "      <TD WIDTH=80% ALIGN=LEFT>";
    echo "         <FONT FACE=\"Arial,Helvetica\">";
-   echo "         <INPUT TYPE=TEXT NAME=full_name VALUE=\"$fullname\" SIZE=50>";
+   echo "         <INPUT TYPE=TEXT NAME=full_name VALUE=\"$fullname\" SIZE=50><BR>";
    echo "         </FONT>";
    echo "      </TD>";
    echo "   </TR>";
@@ -49,7 +47,7 @@
    echo "      </TD>";
    echo "      <TD WIDTH=80% ALIGN=LEFT>";
    echo "         <FONT FACE=\"Arial,Helvetica\">";
-   echo "         <INPUT TYPE=TEXT NAME=reply_to VALUE=\"$replyto\" SIZE=50>";
+   echo "         <INPUT TYPE=TEXT NAME=reply_to VALUE=\"$replyto\" SIZE=50><BR>";
    echo "         </FONT>";
    echo "      </TD>";
    echo "   </TR>";
index 288ce90d70a546d24c672e94c623191c34e91edb..d706044314632ada5592f2c9a13fce4e757043f5 100644 (file)
@@ -49,7 +49,6 @@
 
    /** If it was a successful login, lets load their preferences **/
    include("../src/load_prefs.php");
-   checkForPrefs($data_dir, $username);
    echo "<BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
    echo "<FONT FACE=\"Arial,Helvetica\">";