]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Adding user list limit to 20
authorJean-Marc Pigeon <jmp@safe.c>
Mon, 8 Sep 2025 11:28:36 +0000 (07:28 -0400)
committerJean-Marc Pigeon <jmp@safe.c>
Mon, 8 Sep 2025 11:28:36 +0000 (07:28 -0400)
www/gessql.php
www/lvlusr.php

index b20c5d70dafe981fa6ddd0bd808699571bd0a47f..f83c303146ce787bf45f757b00b1f9db360300ca 100644 (file)
@@ -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();
 }
index f41b45e3150f88cc1839cb4c7b36f7adf3e16130..b68d7236106453c8c693453edd949a1595948634 100644 (file)
@@ -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 ) {