X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Foptions.php;h=e13c771057fbf5d191971467464435884f4f6757;hp=3a819a09b486905bfcc0aead28402bc3c14bd7e2;hb=d068c0ec5447e8f373ebd536b08ed902c00de0f5;hpb=65b14f90f66fb256ca4cfe5d4096a251f5a1eaf0 diff --git a/src/options.php b/src/options.php index 3a819a09..e13c7710 100644 --- a/src/options.php +++ b/src/options.php @@ -1,23 +1,282 @@ - include("../config/config.php"); - include("../functions/mailbox.php"); - include("../functions/strings.php"); - include("../functions/page_header.php"); - include("../functions/display_messages.php"); - include("../functions/imap.php"); - include("../functions/array.php"); - include("../functions/prefs.php"); + if (!isset($config_php)) + include("../config/config.php"); + if (!isset($strings_php)) + include("../functions/strings.php"); + if (!isset($page_header_php)) + include("../functions/page_header.php"); + if (!isset($display_messages_php)) + include("../functions/display_messages.php"); + if (!isset($imap_php)) + include("../functions/imap.php"); + if (!isset($array_php)) + include("../functions/array.php"); + + include("../src/load_prefs.php"); + + + $imapConnection = sqimap_login($username, $key, $imapServerAddress); + $boxes = sqimap_mailbox_list($imapConnection, $boxes); + fputs($imapConnection, "1 logout\n"); echo "
\n"; displayPageHeader($color, "None"); + /** load up some of the values from the pref file **/ + $fullname = getPref($data_dir, $username, "full_name"); + $replyto = getPref($data_dir, $username, "reply_to"); + $email_address = getPref($data_dir, $username, "email_address"); + echo "\n"; - echo " Options\n"; + echo " "; + echo _("Options"); + echo "\n"; echo " |