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