From: Jean-Marc Pigeon Date: Mon, 8 Sep 2025 11:28:36 +0000 (-0400) Subject: Adding user list limit to 20 X-Git-Tag: end-0.15~7 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=55609230ef35501f42c447335acc7490a43b7542;p=jmp%2Fmailleur Adding user list limit to 20 --- 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 ) {