From: Jean-Marc Pigeon Date: Mon, 24 Nov 2025 15:21:52 +0000 (-0500) Subject: fix lvlrmt.php code X-Git-Tag: tag-0.18~13 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=0118ec95012879220a02ec8fd0b43e959493d57e;p=jmp%2Fmailleur fix lvlrmt.php code --- diff --git a/www/lvlrmt.php b/www/lvlrmt.php index d141bec..e9f5b2e 100644 --- a/www/lvlrmt.php +++ b/www/lvlrmt.php @@ -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."$credit\r\n"; $line=$line.""; } -sql_close($dbsql); $start=starthtml("directives"); $stop=endhtml();