Changed temp file write to from due to leftover file possiblity, At least they...
[squirrelmail.git] / src / options_submit.php
index b96d03111d0eafd00837fa59ee7f345fa1ad08b3..ea4276f1330b2336a81620b0ef97fc1b1c011aba 100644 (file)
@@ -9,13 +9,14 @@
       include("../functions/page_header.php");
    if (!isset($dipslay_messages_php))
       include("../functions/display_messages.php");
-   if (!isset($imap_php))
-      include("../functions/imap.php");
    if (!isset($array_php))
       include("../functions/array.php");
+   if (!isset($auth_php))
+      include ("../functions/auth.php");
 
    include("../src/load_prefs.php");
 
+   is_logged_in();
 
    setPref($data_dir, $username, "full_name", stripslashes($full_name));
    setPref($data_dir, $username, "email_address", stripslashes($email_address));
@@ -29,6 +30,7 @@
    setPref($data_dir, $username, "language", $language);
    setPref($data_dir, $username, "left_size", $leftsize);
    setPref($data_dir, $username, "folder_prefix", $folderprefix);
+   setPref($data_dir, $username, "use_javascript_addr_book", $javascript_abook);
 
        if ($trash != "none") {
        setPref($data_dir, $username, "move_to_trash", true);
@@ -51,8 +53,6 @@
    setcookie("squirrelmail_language", $language, time()+2592000);
    $squirrelmail_language = $language;
 
-   echo "<HTML>";
-   echo "<BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
    displayPageHeader($color, "None");
    echo "<BR><BR><BR><CENTER><B>";
    echo _("Options Saved!");