From: Jean-Marc Pigeon Date: Mon, 15 Sep 2025 09:51:28 +0000 (-0400) Subject: Improving main screen display X-Git-Tag: tag-0.17~69 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=aad0b4dbcc714d06840029f894b547970183cfd9;p=jmp%2Fmailleur Improving main screen display --- diff --git a/www/lvllog.php b/www/lvllog.php index cf86ae5..0cb7da7 100644 --- a/www/lvllog.php +++ b/www/lvllog.php @@ -21,7 +21,7 @@ function login() { $STR = << +\r\n"; - $line=$line."\r\n"; $line=$line."\r\n"; - $line=$line."\r\n"; - $line=$line."\r\n"; + $line=$line."\r\n"; $line=$line."\r\n"; + $line=$line."\r\n"; $line=$line.""; $count++; } @@ -79,11 +85,11 @@ $top
diff --git a/www/lvlmai.php b/www/lvlmai.php index fd36102..bb59b87 100644 --- a/www/lvlmai.php +++ b/www/lvlmai.php @@ -34,25 +34,31 @@ if (isset($_POST['offset'])) $actions=sql_getactionslist($dbsql,$username,$limit,$offset); $line=""; -$count=$offset; +$count=$offset+1; foreach($actions as $action) { + $info=substr($action['info'],3,1); + if ($info=="-") + continue; $bgcolor="white"; if ($count & 1 ) { $bgcolor="green"; } + $status=substr($action['info'],0,4); $date=$action['creation']; $smtpfrom=$action['smtpfrom']; $emailfrom=$action['emailfrom']; - $emailfrom=str_replace("<","<",$emailfrom); - $emailfrom=str_replace(">",">",$emailfrom); - rou_alert(0,"JMPDBG <$emailfrom>"); + $emailfrom=htmlspecialchars($emailfrom,ENT_QUOTES); $recipient=$action['rcptto']; + $subject=$action['subject']; $line=$line."
$count \r\n"; + $line=$line."$count $status$date$smtpfrom$emailfrom"; + $line=$line."$emailfrom
"; + $line=$line."$smtpfrom"; + $line=$line."
$recipient$subject
- + - - + + $line
Status DateSMTP OriginatorEmail FromOriginator Recipientsubject