added patch to allow use of sendmail instead of connecting to SMTP port
[squirrelmail.git] / src / options_submit.php
1 <?
2 include("../config/config.php");
3 include("../functions/mailbox.php");
4 include("../functions/strings.php");
5 include("../functions/page_header.php");
6 include("../functions/display_messages.php");
7 include("../functions/imap.php");
8 include("../functions/array.php");
9
10 include("../src/load_prefs.php");
11
12 echo "<HTML>";
13 echo "<BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
14 displayPageHeader($color, "None");
15
16 setPref($data_dir, $username, "full_name", stripslashes($full_name));
17 setPref($data_dir, $username, "reply_to", stripslashes($reply_to));
18 setPref($data_dir, $username, "chosen_theme", $chosentheme);
19 setPref($data_dir, $username, "move_to_trash", $movetotrash);
20 setPref($data_dir, $username, "wrap_at", $wrapat);
21 setPref($data_dir, $username, "editor_size", $editorsize);
22 setPref($data_dir, $username, "use_signature", $usesignature);
23
24 setSig($data_dir, $username, stripslashes($signature_edit));
25
26 echo "<FONT FACE=\"Arial,Helvetica\">";
27 echo "<BR><BR><BR><CENTER><B>Options Saved!</B><BR><BR>";
28 echo "Your options have been saved.<BR><A HREF=\"webmail.php\" TARGET=_top>Click here</A> to continue.";
29 echo "</CENTER></FONT>";
30 echo "</BODY></HTML>";
31 ?>