193cf262be42afcfe494dbf1d1e2c4c21cf246c7
[squirrelmail.git] / src / options_submit.php
1 <?
2 if (!isset($config_php))
3 include("../config/config.php");
4 if (!isset($strings_php))
5 include("../functions/strings.php");
6 if (!isset($page_header_php))
7 include("../functions/page_header.php");
8 if (!isset($dipslay_messages_php))
9 include("../functions/display_messages.php");
10 if (!isset($imap_php))
11 include("../functions/imap.php");
12 if (!isset($array_php))
13 include("../functions/array.php");
14
15 include("../src/load_prefs.php");
16
17
18 setPref($data_dir, $username, "full_name", stripslashes($full_name));
19 setPref($data_dir, $username, "email_address", stripslashes($email_address));
20 setPref($data_dir, $username, "reply_to", stripslashes($reply_to));
21 setPref($data_dir, $username, "chosen_theme", $chosentheme);
22 setPref($data_dir, $username, "move_to_trash", $movetotrash);
23 setPref($data_dir, $username, "wrap_at", $wrapat);
24 setPref($data_dir, $username, "editor_size", $editorsize);
25 setPref($data_dir, $username, "use_signature", $usesignature);
26 setPref($data_dir, $username, "left_refresh", $leftrefresh);
27 setPref($data_dir, $username, "language", $language);
28 setPref($data_dir, $username, "left_size", $leftsize);
29 setPref($data_dir, $username, "folder_prefix", $folderprefix);
30
31 setSig($data_dir, $username, stripslashes($signature_edit));
32
33 setcookie("squirrelmail_language", $language, time()+2592000);
34
35 echo "<HTML>";
36 echo "<BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
37 displayPageHeader($color, "None");
38 echo "<BR><BR><BR><CENTER><B>";
39 echo _("Options Saved!");
40 echo "</B><BR><BR>";
41 echo _("Your options have been saved.");
42 echo "<BR><A HREF=\"webmail.php\" TARGET=_top>";
43 echo _("Click here");
44 echo "</A> ";
45 echo _("to continue.");
46 echo "</CENTER>";
47 echo "</BODY></HTML>";
48 ?>