]> SAFE projects GIT repository - jmp/mailleur/commitdiff
fix lvlrmt.php code
authorJean-Marc Pigeon <jmp@safe.c>
Mon, 24 Nov 2025 15:21:52 +0000 (10:21 -0500)
committerJean-Marc Pigeon <jmp@safe.c>
Mon, 24 Nov 2025 15:21:52 +0000 (10:21 -0500)
www/lvlrmt.php

index d141bec38d695e070ff5320bbd6c1c856f80a1a8..e9f5b2e35f67acec05d285146431b93746f438a8 100644 (file)
@@ -89,7 +89,6 @@ global $logname;
 $limit=20;
 $offset=0;
 $remoteip="";
-$dbsql=sql_connect();
 if (isset($_POST['limit']))
   $limit=intval($_POST['limit']);
 if (isset($_POST['offset']))
@@ -97,7 +96,7 @@ if (isset($_POST['offset']))
 $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'])) {
@@ -121,7 +120,7 @@ if (isset($_POST['scanner'])) {
   }
 $remotes=$rqst->order("remoteip asc")
               ->limit($limit)
-              ->get()
+              ->get();
 $line="";
 $count=$offset;
 foreach($remotes as $remote) {
@@ -144,7 +143,6 @@ foreach($remotes as $remote) {
   $line=$line."<TD align=center>$credit</TD>\r\n";
   $line=$line."</TR>";
   }
-sql_close($dbsql);
 
 $start=starthtml("directives");
 $stop=endhtml();