include("../functions/display_messages.php");
include("../functions/imap.php");
include("../functions/array.php");
- include("../functions/prefs.php");
+
+ include("../src/load_prefs.php");
echo "<HTML>";
- if ($auto_forward == true)
- echo "<META HTTP-EQUIV=\"REFRESH\" CONTENT=\"0;URL=right_main.php\">";
echo "<BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
displayPageHeader($color, "None");
- setPref($username, "full_name", $full_name);
- setPref($username, "reply_to", $reply_to);
+ setPref($data_dir, $username, "full_name", stripslashes($full_name));
+ setPref($data_dir, $username, "reply_to", stripslashes($reply_to));
+ setPref($data_dir, $username, "chosen_theme", $chosentheme);
+ setPref($data_dir, $username, "move_to_trash", $movetotrash);
+ setPref($data_dir, $username, "wrap_at", $wrapat);
+ setPref($data_dir, $username, "editor_size", $editorsize);
+ setPref($data_dir, $username, "use_signature", $usesignature);
+
+ echo $signature_edit;
+ echo stripslashes($signature_edit);
+
+ setSig($data_dir, $username, stripslashes($signature_edit));
echo "<FONT FACE=\"Arial,Helvetica\">";
echo "<BR><BR><BR><CENTER><B>Options Saved!</B><BR><BR>";
- echo "You will be automatically forwarded.<BR>If not, <A HREF=\"right_main.php\">click here</A>";
+ echo "Your options have been saved.<BR><A HREF=\"webmail.php\" TARGET=_top>Click here</A> to continue.";
echo "</CENTER></FONT>";
echo "</BODY></HTML>";
?>
\ No newline at end of file