added css theme stuff to signout.php
[squirrelmail.git] / functions / mailbox_display.php
index 2a85413642b930c2da511fc50b419b7d9fc517a9..d83111f781fdc90bbe60996bca7c7303b2dccdd7 100644 (file)
       
       for ($i=0; $i < count($message_highlight_list); $i++) {
          if ($message_highlight_list[$i]["match_type"] == "to_cc") {
       
       for ($i=0; $i < count($message_highlight_list); $i++) {
          if ($message_highlight_list[$i]["match_type"] == "to_cc") {
-            if (eregi($message_highlight_list[$i]["value"],$msg["TO"]) || eregi($message_highlight_list[$i]["value"],$msg["CC"])) {
+            if (strpos("^^".$msg["TO"], strtolower($message_highlight_list[$i]["value"])) || strpos("^^".$msg["CC"], strtolower($message_highlight_list[$i]["value"]))) {
                $hlt_color = $message_highlight_list[$i]["color"];
                continue;
             }
                $hlt_color = $message_highlight_list[$i]["color"];
                continue;
             }
-         } else if (eregi($message_highlight_list[$i]["value"],$msg[strtoupper($message_highlight_list[$i]["match_type"])])) {
+         } else if (strpos("^^".strtolower($msg[strtoupper($message_highlight_list[$i]["match_type"])]),$message_highlight_list[$i]["value"])) {
             $hlt_color = $message_highlight_list[$i]["color"];
             continue;
          }   
             $hlt_color = $message_highlight_list[$i]["color"];
             continue;
          }