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