From: Jean-Marc Pigeon Date: Fri, 28 Nov 2025 14:19:53 +0000 (-0500) Subject: Improving display for remote and user X-Git-Tag: tag-0.19~17 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=f12a6dd1bfc7c2075a035a505fdc1ced619a959a;p=jmp%2Fmailleur Improving display for remote and user --- diff --git a/www/lvlrmt.php b/www/lvlrmt.php index ebe508c..c4474b4 100644 --- a/www/lvlrmt.php +++ b/www/lvlrmt.php @@ -19,6 +19,7 @@ $debut=$offset+1; $email=gettranslate($userlang,"Remote SMTP server"); $STR = <<
@@ -72,6 +73,7 @@ $email:
+ EOT; return $STR; @@ -151,6 +153,9 @@ $stop=endhtml(); $top=topper($isadmin,$logname,"lvlrmt"); $footer=footer("lvlrmt"); $tblheader=tblheader($remoteip,$numrec,$offset,$limit); +$tblfooter=""; +if ($limit>30) + $tblfooter=$tblheader; $STR = <<
- $tblheader
@@ -181,7 +185,7 @@ $tblheader $line
- +$tblfooter


diff --git a/www/lvlusr.php b/www/lvlusr.php index 6dfae09..5a14b68 100644 --- a/www/lvlusr.php +++ b/www/lvlusr.php @@ -19,6 +19,7 @@ $debut=$offset+1; $email=gettranslate($userlang,"Email"); $STR = <<
@@ -72,6 +73,7 @@ $email:
+ EOT; return $STR; @@ -96,7 +98,7 @@ if (isset($_POST['offset'])) $rqst=NEW probe("emails",$limit,$offset); if (isset($_POST['username'])) { $username=trim(($_POST['username'])); - if (stlen($username)>0) + if (strlen($username)>0) $rqst->where("email like '%$username%'"); } $numrec=$rqst->getnumrec(); @@ -151,6 +153,9 @@ $stop=endhtml(); $top=topper($isadmin,$logname,"lvlusr"); $footer=footer("lvlusr"); $tblheader=tblheader($username,$numrec,$offset,$limit); +$tblfooter=""; +if ($limit>30) + $tblfooter=$tblheader; $STR = << $line - +$tblfooter