$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."<TR>\r\n";
- $line=$line."<TD><FONT SIZE=-1>$count </FONT>\r\n";
+ $line=$line."<TD align=left>$count $status</TD>\r\n";
$line=$line."<TD align=left>$date</TD>\r\n";
- $line=$line."<TD align=left>$smtpfrom</TD>\r\n";
- $line=$line."<TD align=left>$emailfrom</TD>\r\n";
+ $line=$line."<TD align=left>";
+ $line=$line."$emailfrom<BR>";
+ $line=$line."<FONT SIZE=-1>$smtpfrom</FONT>";
+ $line=$line."</TD>\r\n";
$line=$line."<TD align=left>$recipient</TD>\r\n";
+ $line=$line."<TD align=left>$subject</TD>\r\n";
$line=$line."</TR>";
$count++;
}
<table WIDTH="100%" BORDER="0" CellSpacing="0">
<table class="table-userlist" WIDTH="100%" BORDER="1" CellSpacing="0">
<TR>
-<TH align=center></TH>
+<TH align=center>Status</TH>
<TH align=center>Date</TH>
-<TH align=center>SMTP Originator</TH>
-<TH align=center>Email From</TH>
+<TH align=center>Originator</TH>
<TH align=center>Recipient</TH>
+<TH align=center>subject</TH>
</TR>
$line
</Table>