$rqst=NEW probe("actions",$limit,$offset);
if (isset($_POST['username'])) {
$username=trim(($_POST['username']));
- $rqst->where("smtpfrom","like","%$username%");
-}
+ $rqst->where("smtpfrom like '%$username%'");
+ }
$numrec=$rqst->getnumrec();
if (isset($_POST['scanner'])) {
$scanner=$_POST['scanner'];
$line="";
$count=$offset;
foreach($actions as $action) {
- rou_alert(0,"JMPDBG count=$count");
$info=substr($action['info'],3,1);
$status=$action['status'];
$subject=htmlspecialchars($action['subject'],ENT_QUOTES);
$line=$line."</TR>";
//end of generation
$count++;
-}
+ }
+$rqst->close();
+
$start=starthtml(NULL);
$stop=endhtml();
$top=topper($isadmin,$logname,"$myfilename");
$rqst=NEW probe("remotes",$limit,$offset);
if (isset($_POST['remoteip'])) {
$remoteip=trim(($_POST['remoteip']));
- $rqst->where("remoteip","like","%$remoteip%");
-}
+ $rqst->where("remoteip like '%$remoteip%'");
+ }
$numrec=$rqst->getnumrec();
if (isset($_POST['scanner'])) {
$scanner=$_POST['scanner'];
$line=$line."<TD align=center>$credit</TD>\r\n";
$line=$line."</TR>";
}
+$rqst->close();
$start=starthtml("directives");
$stop=endhtml();
if (isset($_POST['username'])) {
$username=trim(($_POST['username']));
$rqst->where("email like '%$username%'");
-}
+ }
$numrec=$rqst->getnumrec();
if (isset($_POST['scanner'])) {
$scanner=$_POST['scanner'];