From: Jean-Marc Pigeon Date: Sun, 14 Dec 2025 10:21:33 +0000 (-0500) Subject: Improving ;vlusr and lvlrmt translation X-Git-Tag: tag-0.19~1 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=bea89ad8a23d8b6b032c4ac86872d72bdd800cf0;p=jmp%2Fmailleur Improving ;vlusr and lvlrmt translation --- diff --git a/www/gesdis.php b/www/gesdis.php index 8dc3cd0..14d53df 100644 --- a/www/gesdis.php +++ b/www/gesdis.php @@ -39,7 +39,7 @@ switch ($pageref) { $sellang=""; break; case "lvlmai" : - $entete="Main screen"; + $entete="Email management"; $out="Logout"; if ($isadmin==true) { $remotes="SMTP servers"; @@ -52,15 +52,15 @@ switch ($pageref) { case "lvlusr" : $entete="Users management"; //$entete=gettranslate($userlang,"User Management"); - $main=gettranslate($userlang,"Main screen"); - $out=gettranslate($userlang,"Logout"); + $main="Email management"; + $out="Logout"; $click2="$main"; $click3="$out"; break; case "lvlrmt" : - $entete=gettranslate($userlang,"Remote SMTP server Management"); - $main=gettranslate($userlang,"Main screen"); - $out=gettranslate($userlang,"Logout"); + $entete="SMTP servers"; + $main="Email management"; + $out="Logout"; $click2="$main"; $click3="$out"; break; diff --git a/www/lvlmai.php b/www/lvlmai.php index 5e3a499..7e7e599 100644 --- a/www/lvlmai.php +++ b/www/lvlmai.php @@ -275,10 +275,11 @@ return $STR; //============================================================== global $logname; +rou_openlog(); + $dbsql=sql_connect(); sql_setlogname($dbsql); sql_close($dbsql); -rou_closelog(); if ($logname!=NULL) { echo body($logname); @@ -286,5 +287,6 @@ if ($logname!=NULL) { else { header('Location: lvllog.php'); } +rou_closelog(); ?> diff --git a/www/lvlrmt.php b/www/lvlrmt.php index 6b9cf99..ea8c105 100644 --- a/www/lvlrmt.php +++ b/www/lvlrmt.php @@ -95,13 +95,16 @@ if (isset($_POST['limit'])) $limit=intval($_POST['limit']); if (isset($_POST['offset'])) $offset=intval($_POST['offset']); + $rqst=NEW probe("remotes",$limit,$offset); + if (isset($_POST['remoteip'])) { $remoteip=trim(($_POST['remoteip'])); if (strlen($remoteip)>0) $rqst->where("remoteip like '%$remoteip%'"); } $numrec=$rqst->getnumrec(); + if (isset($_POST['scanner'])) { $scanner=$_POST['scanner']; switch ($scanner) { @@ -146,7 +149,11 @@ foreach($remotes as $remote) { $line=$line."$credit\r\n"; $line=$line.""; } -$rqst->close(); +//connection to database not needed anymore +$rqst->release(); +unset($rqst); + +rou_closelog(); $start=starthtml(); $stop=endhtml(); @@ -196,11 +203,10 @@ EOT; return $STR; } - +rou_openlog(); $dbsql=sql_connect(); sql_setlogname($dbsql); sql_close($dbsql); -rou_closelog(); if ($logname!=NULL) { echo body($logname); @@ -208,6 +214,7 @@ if ($logname!=NULL) { else { header('Location: lvllog.php'); } +rou_closelog(); ?> diff --git a/www/lvlusr.php b/www/lvlusr.php index 6d83894..be6a3a6 100644 --- a/www/lvlusr.php +++ b/www/lvlusr.php @@ -16,7 +16,6 @@ function tblheader(string $username,int $numrec,int $offset,int $limit) global $userlang; $debut=$offset+1; -$email=gettranslate($userlang,"Email"); $STR = << @@ -52,7 +51,7 @@ $STR = <<
-$email: +Email @@ -200,10 +199,10 @@ return $STR; } +rou_openlog(); $dbsql=sql_connect(); sql_setlogname($dbsql); sql_close($dbsql); -rou_closelog(); if ($logname!=NULL) { echo body($logname); @@ -211,6 +210,7 @@ if ($logname!=NULL) { else { header('Location: lvllog.php'); } +rou_closelog(); ?> diff --git a/www/translations.js b/www/translations.js index b2d1ffe..68d772b 100644 --- a/www/translations.js +++ b/www/translations.js @@ -6,6 +6,7 @@ const TR = ["Authentication", "Authentification"], ["Date", "Date"], ["Email", "Courriel"], + ["Email management","Gestion des courriers"], ["Login", "Connexion"], ["Logout", "Deconnexion"], ["Main screen", "Ecran Principal"],