From: lkehresman Date: Thu, 3 Aug 2000 10:13:36 +0000 (+0000) Subject: added css theme stuff to signout.php X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=e90872be70f5d6722ddaa3d430986937d9e8ab5e;ds=sidebyside added css theme stuff to signout.php made message highlighting NOT a regexp git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@670 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 2a854136..d83111f7 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -28,11 +28,11 @@ 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; } - } 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; } diff --git a/src/options_highlight.php b/src/options_highlight.php index c007c668..1a4a8fcb 100644 --- a/src/options_highlight.php +++ b/src/options_highlight.php @@ -163,9 +163,8 @@ if ($message_highlight_list[$theid]["match_type"] == "subject") echo "