* Added color theme support for the reply colors
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 12 Jun 2001 17:50:40 +0000 (17:50 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 12 Jun 2001 17:50:40 +0000 (17:50 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1410 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/strings.php

index d7f7db61e87343ec53108b37e158ba4dbe6bf78f..c0984ebca98a202f49ff720cabca65b221994177 100644 (file)
 
    function translateText(&$body, $wrap_at, $charset) {
       global $where, $what; // from searching
+      global $color; // color theme
 
       include '../functions/url_parser.php';
       
              }
          }
          
-         if ($Quotes > 1)
-            $line = '<FONT COLOR="FF0000">'.$line.'</FONT>';
-         elseif ($Quotes)
-            $line = '<FONT COLOR="800000">'.$line.'</FONT>';
+         if ($Quotes > 1) {
+           if (! isset($color[13]))
+              $color[13] = '#FF0000';
+            $line = '<FONT COLOR="' . $color[13] . '">' . $line . '</FONT>';
+        } elseif ($Quotes) {
+           if (! isset($color[14]))
+              $color[14] = '#800000';
+            $line = '<FONT COLOR="' . $color[14] . '">' . $line . '</FONT>';
+        }
 
          $body_ary[$i] = $line;
       }