From 694a562a4e2ff94e6d440f92acdbc989b5f03995 Mon Sep 17 00:00:00 2001 From: Jean-Marc Pigeon Date: Mon, 22 Sep 2025 16:34:35 -0400 Subject: [PATCH] Working on lvlmai.php table color --- www/lvlmai.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/www/lvlmai.php b/www/lvlmai.php index 6cb0dff..c72aa97 100644 --- a/www/lvlmai.php +++ b/www/lvlmai.php @@ -38,10 +38,17 @@ $count=$offset+1; foreach($actions as $action) { $info=substr($action['info'],3,1); $status=$action['status']; + $subject=htmlspecialchars($action['subject'],ENT_QUOTES); + if (($subject==NULL) || (strlen($subject)==0)) + $subject=htmlspecialchars($action['info'],ENT_QUOTES); switch ($status) { case 250 : $bgcolor="#90EE90"; //light green break; + case 460 : + $bgcolor="#ff6666"; //light red + $subject=htmlspecialchars($action['info'],ENT_QUOTES); + break; case 555 : $bgcolor="#D3D3D3"; //light gray break; @@ -54,9 +61,6 @@ foreach($actions as $action) { $smtpfrom=$action['smtpfrom']; $recipient=$action['rcptto']; $emailfrom=htmlspecialchars($action['emailfrom'],ENT_QUOTES); - $subject=$action['subject']; - if (($subject==NULL) || (strlen($subject)==0)) - $subject=htmlspecialchars($action['info'],ENT_QUOTES); //generating the table contents $line=$line."\r\n"; $line=$line."$count $status\r\n"; -- 2.47.3