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;
$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."<TR bgcolor=\"$bgcolor\">\r\n";
$line=$line."<TD align=left>$count $status</TD>\r\n";