From: Jean-Marc Pigeon Date: Mon, 22 Sep 2025 20:34:35 +0000 (-0400) Subject: Working on lvlmai.php table color X-Git-Tag: tag-0.17~56 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=694a562a4e2ff94e6d440f92acdbc989b5f03995;p=jmp%2Fmailleur Working on lvlmai.php table color --- 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";