]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Improving myfilename definition within lvlmai.php
authorJean-Marc Pigeon <jmp@safe.c>
Mon, 24 Nov 2025 19:48:03 +0000 (14:48 -0500)
committerJean-Marc Pigeon <jmp@safe.c>
Mon, 24 Nov 2025 19:48:03 +0000 (14:48 -0500)
www/lvlmai.php

index 97326b79d1d2be43eafe34140c564fe02b825335..6693eaa05ec6f4c0a44bb898544c1b6a9f84c419 100644 (file)
@@ -10,6 +10,12 @@ include_once "unienv.php";
 include_once "gesdis.php";
 include_once "gessql.php";
 
+
+//Defining the applcation name
+global $myfilename;
+$myfilename="lvlmai";
+
+
 function tblheader(string $remoteip,int $numrec,int $offset,int $limit)
 
 {
@@ -21,7 +27,7 @@ $email=gettranslate($userlang,"Received email");
 $STR  = <<<EOT
 <TR>
 <TD align=left>
-<FORM action="lvlmai.php" method="post">
+<FORM action="$myfilename.php" method="post">
 <input type="hidden" name="username" value="$username"/>
 <input type="hidden" name="offset" value="$offset"/>
 <input type="hidden" name="limit" value="$limit"/>
@@ -49,7 +55,7 @@ $STR  = <<<EOT
 </FORM>
 </TD>
 <TD align=left>
-<FORM action="lvlrmt.php" method="post">
+<FORM action="$myfilename.php" method="post">
 <FONT SIZE=+1>
 $email:
 <input type="text" value="$username" name="remoteip" size=20 style="font-size: 100%;">
@@ -172,8 +178,8 @@ foreach($actions as $action) {
 }
 $start=starthtml(NULL);
 $stop=endhtml();
-$top=topper($isadmin,$logname,"lvlmai");
-$footer=footer("lvlmai");
+$top=topper($isadmin,$logname,"$myfilename");
+$footer=footer("$myfilename");
 $tblheader=tblheader($username,$numrec,$offset,$limit);
 
 $rqst->close();