From: lkehresman Date: Sat, 29 Jul 2000 16:50:28 +0000 (+0000) Subject: - fixed some poorly formed HTML X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=98fe1e9ffb8c254a739f853d3b83c667b9f9f65e - fixed some poorly formed HTML - made conf.pl a bit smarter in detecting themes directory - added "configure" which points to config/conf.pl git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@650 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/config/conf.pl b/config/conf.pl index af233526..1808c2b7 100755 --- a/config/conf.pl +++ b/config/conf.pl @@ -139,6 +139,9 @@ while ($line = ) { $sub = $options[0]; $sub =~ s/\]\["PATH"\]//; $sub =~ s/.*\[//; + if (-e "../themes") { + $options[1] =~ s/^\.\.\/config/\.\.\/themes/; + } $theme_path[$sub] = $options[1]; } elsif ($options[0] =~ /^theme\[[0-9]+\]\["NAME"\]/) { $sub = $options[0]; diff --git a/configure b/configure new file mode 100755 index 00000000..e1236cef --- /dev/null +++ b/configure @@ -0,0 +1,7 @@ +#!/bin/bash +# +# Redirects to the config directory and runs conf.pl + +cd config +./conf.pl +cd .. diff --git a/functions/imap_search.php b/functions/imap_search.php index 010d2c05..b40cb4f7 100644 --- a/functions/imap_search.php +++ b/functions/imap_search.php @@ -125,7 +125,7 @@ function sqimap_search($imapConnection,$search_where,$search_what,$mailbox,$colo echo "\n\n\n
"; echo "\n"; echo " \n"; - echo "
\n"; + echo " \n"; echo " ". _("Move selected to:") .""; echo "
\n\n\n"; echo ""; echo ""; - echo ""; + echo "
"; echo ""; echo " "; /** FROM HEADER **/ diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index c485afee..638529a2 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -224,7 +224,7 @@ echo "\n\n\n"; echo "
 
\n"; echo " \n"; - echo " "; echo "
\n"; + echo " \n"; echo " ". _("Move selected to:") .""; echo "
"; - echo ""; + echo "
"; echo ""; echo " "; /** FROM HEADER **/ diff --git a/src/load_prefs.php b/src/load_prefs.php index 5979719e..94b05e35 100644 --- a/src/load_prefs.php +++ b/src/load_prefs.php @@ -30,12 +30,24 @@ if (file_exists($theme[0]["PATH"])) { require($theme[0]["PATH"]); } else { - echo _("Theme: "); - echo $theme[0]["PATH"]; - echo _(" was not found."); - echo "
"; - echo _("Exiting abnormally"); - exit; + # + # I hard coded the theme as a last resort if no themes were + # found. It makes no sense to cause the whole thing to exit + # just because themes weren't found. This is the absolute + # last resort. + # + $color[0] = "#DCDCDC"; // (light gray) TitleBar + $color[1] = "#800000"; // (red) + $color[2] = "#CC0000"; // (light red) Warning/Error Messages + $color[3] = "#A0B8C8"; // (green-blue) Left Bar Background + $color[4] = "#FFFFFF"; // (white) Normal Background + $color[5] = "#FFFFCC"; // (light yellow) Table Headers + $color[6] = "#000000"; // (black) Text on left bar + $color[7] = "#0000CC"; // (blue) Links + $color[8] = "#000000"; // (black) Normal text + $color[9] = "#ABABAB"; // (mid-gray) Darker version of #0 + $color[10] = "#666666"; // (dark gray) Darker version of #9 + $color[11] = "#770000"; // (dark red) Special Folders color } }