From: Jean-Marc Pigeon Date: Sun, 7 Sep 2025 18:33:08 +0000 (-0400) Subject: Able to disply user liste X-Git-Tag: end-0.15~13 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=f715976ab278da544e4749692256130bd33127ab;p=jmp%2Fmailleur Able to disply user liste --- diff --git a/www/gessql.php b/www/gessql.php index 5f98835..daa745f 100644 --- a/www/gessql.php +++ b/www/gessql.php @@ -134,4 +134,22 @@ while ($proceed==true) { rou_alert(0,"$OPEP, now logname=<$logname>"); return $logname; } + +//============================================================== +// +// Function to retreive a some email record +// +//============================================================== +function sql_getemaillist($dbsql,$limit,$skip) + +{ +$OPEP="gessql.php:sql_getemaillist"; + +$strsel="Select * from emails order by email asc"; +$strlim=""; +$strskip=""; +$stmt=$dbsql->Select("$strsel $strlim $strskip"); +return $stmt->fetchAll(); +} + ?> diff --git a/www/lvlusr.php b/www/lvlusr.php index b61530b..ef839a4 100644 --- a/www/lvlusr.php +++ b/www/lvlusr.php @@ -16,18 +16,43 @@ function body($logname) { global $isadmin; +$line=""; +$dbsql=sql_connect(); +$emails=sql_getemaillist($dbsql,NULL,NULL); +foreach($emails as $email) { + $name=$email['email']; + $last=$email['lastemail']; + $max=$email['mxspace']; + $lock=$email['locked']; + $line=$line.""; + $line=$line."$name"; + $line=$line."$last"; + $line=$line."$max"; + $line=$line."$lock"; + $line=$line.""; + } +sql_close($dbsql); + $start=starthtml(NULL); $stop=endhtml(); $top=topper($isadmin,$logname,"lvlusr"); $footer=footer("lvlusr"); + $STR = << -Within LVLUSR - -
+
+ + + + + + + +$line +
Emaillastemailmxspacelocked
+
$footer $stop EOT;