From 55609230ef35501f42c447335acc7490a43b7542 Mon Sep 17 00:00:00 2001 From: Jean-Marc Pigeon Date: Mon, 8 Sep 2025 07:28:36 -0400 Subject: [PATCH] Adding user list limit to 20 --- www/gessql.php | 4 +++- www/lvlusr.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/www/gessql.php b/www/gessql.php index b20c5d7..f83c303 100644 --- a/www/gessql.php +++ b/www/gessql.php @@ -170,9 +170,11 @@ function sql_getemaillist($dbsql,$limit,$skip) { $OPEP="gessql.php:sql_getemaillist"; -$strsel="Select * from emails order by email asc"; $strlim=""; $strskip=""; +$strsel="Select * from emails order by email asc"; +if ($limit!=NULL) + $strlim="limit $limit"; $stmt=$dbsql->Select("$strsel $strlim $strskip"); return $stmt->fetchAll(); } diff --git a/www/lvlusr.php b/www/lvlusr.php index f41b45e..b68d723 100644 --- a/www/lvlusr.php +++ b/www/lvlusr.php @@ -20,7 +20,7 @@ global $logname; $line=""; $count=0; $dbsql=sql_connect(); -$emails=sql_getemaillist($dbsql,NULL,NULL); +$emails=sql_getemaillist($dbsql,20,NULL); foreach($emails as $email) { $bgcolor="white"; if ($count & 1 ) { -- 2.47.3