From 776c7431dd930f97155adcc11cc2ed33cff5b3a2 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Wed, 12 Jul 2000 11:01:46 +0000 Subject: [PATCH] - fixed bugs in conf.pl, removed some unnecessary options - tweaked UI in a few more places - made fonts larger when viewing full header git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@614 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- config/conf.pl | 44 +++++++-------------------------------- config/config_default.php | 4 ---- functions/page_header.php | 4 ++-- functions/smtp.php | 9 ++++++-- src/read_body.php | 4 ++-- 5 files changed, 18 insertions(+), 47 deletions(-) diff --git a/config/conf.pl b/config/conf.pl index 3066133c..a05223e0 100755 --- a/config/conf.pl +++ b/config/conf.pl @@ -173,10 +173,9 @@ while (($command ne "q") && ($command ne "Q")) { } elsif ($menu == 4) { print $WHT."General Options\n".$NRM; print "1. Default Charset : $WHT$default_charset$NRM\n"; - print "2. Auto Forward : $WHT$auto_forward$NRM\n"; - print "3. Data Directory : $WHT$data_dir$NRM\n"; - print "4. Attachment Directory : $WHT$attachment_dir$NRM\n"; - print "5. Default Left Size : $WHT$default_left_size$NRM\n"; + print "2. Data Directory : $WHT$data_dir$NRM\n"; + print "3. Attachment Directory : $WHT$attachment_dir$NRM\n"; + print "4. Default Left Size : $WHT$default_left_size$NRM\n"; print "\n"; print "R Return to Main Menu\n"; } elsif ($menu == 5) { @@ -264,10 +263,9 @@ while (($command ne "q") && ($command ne "Q")) { elsif ($command == 11){ $show_contain_subfolders_option = command211(); } } elsif ($menu == 4) { if ($command == 1) { $default_charset = command31 (); } - elsif ($command == 2) { $auto_forward = command32 (); } - elsif ($command == 3) { $data_dir = command33 (); } - elsif ($command == 4) { $attachment_dir = command34 (); } - elsif ($command == 5) { $default_left_size = command35 (); } + elsif ($command == 2) { $data_dir = command33 (); } + elsif ($command == 3) { $attachment_dir = command34 (); } + elsif ($command == 4) { $default_left_size = command35 (); } } elsif ($menu == 5) { if ($command == 1) { command41 (); @@ -614,8 +612,7 @@ sub command25 { sub command26 { print "By default, should messages get moved to the sent folder? You\n"; print "can specify the default sent folder in option 4. If this is set\n"; - print "to false, messages will get deleted immediately without moving\n"; - print "to the sent folder.\n"; + print "to false, messages will get sent an no copy will be made.\n"; print "\n"; print "Trash folder is currently: $sent_folder\n"; print "\n"; @@ -778,32 +775,6 @@ sub command31 { return $new_default_charset; } -# Auto Forward -sub command32 { - print "There are some places that we will automatically forward the user\n"; - print "rather than display pointless messages like 'Message sent!' or\n"; - print "stuff like that. Use this or not?\n"; - print "\n"; - print "NOTE: This is not working currently as we are trying to find a\n"; - print " better way to handle this. This option really doesn't do\n"; - print " much.\n"; - print "\n"; - - if ($auto_forward eq "true") { - $default_value = "y"; - } else { - $default_value = "n"; - } - print "Auto forward (y/n) [$WHT$default_value$NRM]: $WHT"; - $new_show = ; - if (($new_show =~ /^y\n/i) || (($new_show =~ /^\n/) && ($default_value eq "y"))) { - $auto_forward = "true"; - } else { - $auto_forward = "false"; - } - return $auto_forward; -} - # Data directory sub command33 { print "It is a possible security hole to have a writable directory\n"; @@ -1164,7 +1135,6 @@ sub save_data { print FILE "\n"; print FILE "\t\$default_charset = \"$default_charset\";\n"; - print FILE "\t\$auto_forward = $auto_forward;\n"; print FILE "\t\$data_dir = \"$data_dir\";\n"; print FILE "\t\$attachment_dir = \"$attachment_dir\";\n"; print FILE "\t\$default_left_size = $default_left_size;\n"; diff --git a/config/config_default.php b/config/config_default.php index 69ea08ed..2e6dc03f 100644 --- a/config/config_default.php +++ b/config/config_default.php @@ -121,10 +121,6 @@ // since this implementation is faster than the alternatives. $default_charset = "iso-8859-1"; -// Whether or not to use META tags and automatically forward after an -// action has been completed. - $auto_forward = true; - // Path to the data/ directory // It is a possible security hole to have a writable directory // under the web server's root directory (ex: /home/httpd/html). diff --git a/functions/page_header.php b/functions/page_header.php index aaf5abb6..57282df0 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -87,7 +87,7 @@ echo "\n\n"; echo "\n"; echo " \n"; - echo " \n"; echo " \n"; diff --git a/functions/smtp.php b/functions/smtp.php index 4c273614..709de553 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -352,7 +352,12 @@ function errorCheck($line) { + global $page_header_php; global $color; + if (!isset($page_header_php)) { + include "../functions/page_header.php"; + } + // Status: 0 = fatal // 5 = ok @@ -434,9 +439,9 @@ } if ($status == 0) { - echo ""; + displayPageHeader($color, "None"); echo ""; - echo "
ERROR

"; + echo "
ERROR

"; echo "   Error Number: $err_num
"; echo "         Reason: $message
"; echo "Server Response: $line
"; diff --git a/src/read_body.php b/src/read_body.php index 7a61361b..62efd219 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -39,7 +39,7 @@ echo ""; echo ""._("View message") . "
\n"; + echo " \n"; $urlMailbox = $mailbox; displayInternalLink ("src/compose.php?mailbox=$urlMailbox", _("Compose"), "right"); echo "  \n"; @@ -102,7 +102,7 @@ do_hook("menuline"); - echo " \n"; + echo " \n"; echo " SquirrelMail\n"; echo "
\n"; echo "\n"; - echo "
";
+      echo "
"; for ($i=1; $i < count($read)-1; $i++) { $read[$i] = htmlspecialchars($read[$i]); if (substr($read[$i], 0, 1) != "\t" && @@ -51,7 +51,7 @@ } echo "$read[$i]"; } - echo "
\n"; + echo "
\n"; echo ""; exit; } -- 2.25.1