From 0118ec95012879220a02ec8fd0b43e959493d57e Mon Sep 17 00:00:00 2001 From: Jean-Marc Pigeon Date: Mon, 24 Nov 2025 10:21:52 -0500 Subject: [PATCH] fix lvlrmt.php code --- www/lvlrmt.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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(); -- 2.47.3