From e90872be70f5d6722ddaa3d430986937d9e8ab5e Mon Sep 17 00:00:00 2001 From: lkehresman Date: Thu, 3 Aug 2000 10:13:36 +0000 Subject: [PATCH] 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 --- functions/mailbox_display.php | 4 ++-- src/options_highlight.php | 5 ++--- src/signout.php | 11 ++++++++++- 3 files changed, 14 insertions(+), 6 deletions(-) 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 "