]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Trying to shrink resp to one entry within TRATYP
authorJean-Marc Pigeon <jmp@safe.c>
Mon, 15 Sep 2025 23:34:23 +0000 (19:34 -0400)
committerJean-Marc Pigeon <jmp@safe.c>
Mon, 15 Sep 2025 23:34:23 +0000 (19:34 -0400)
lib/gessql.c
www/gesdis.php
www/gessql.php
www/lvlmai.php
www/lvlusr.php

index 853a5ac093b514f1ab19acc592a5e421fbdbc94c..fa10da3d71a8dcfa900cc3377cf306da47f127f6 100644 (file)
@@ -73,6 +73,7 @@ if (act!=(ACTTYP *)0) {
 
     field="code,sessid,smtpfrom,emailfrom,subject,rcptto,numline,info";
     (void) sql_request(sqlptr,del,gid,grcpt);
+    (void) rou_alert(0,"%s JMPDBG DEL sessid=<%s> rcptto=<%s>",OPEP,gid,grcpt);
     if (act->resp!=(char **)0) {
       char **resp;
       int num;
@@ -83,6 +84,8 @@ if (act!=(ACTTYP *)0) {
         char *ginfo;
 
         ginfo=sql_gooddata(sqlptr,*resp);
+        (void) rou_alert(0,"%s JMPDBG sessid=<%s> rcptto=<%s> info=<%s>",
+                            OPEP,gid,grcpt,ginfo);
         (void) sql_request(sqlptr,ins,field,
                                       gcode,gid,
                                       gsfrom,ghfrom,ghsubject,
index 393265259ef815d436e543ec17cfc67a722a02a2..3cfdd4427ee84bd119890376dd8936bbd9482fdc 100644 (file)
@@ -57,7 +57,9 @@ $STR = <<<EOT
 <Table WIDTH="100%">
 <TR>
 <TD align="left">
+<a href='/lvlmai.php'>
 <IMG src="reg-icons/Wwalczyszyn-Android-Style-Mail.96.png" ALT="mailbox">
+</a>
 </TD>
 <TD align="right">
 $entete
index 7f456e908b5d68f23615adbcee31e0f205e112d0..64e36ebba858958b98b87003831bbbea6cecc697 100644 (file)
@@ -215,12 +215,13 @@ $strlim="";
 $strskip="";
 $select="";
 if ($username!=NULL) 
-  $select="where (smtpfrom like '%$username%') or (rcptto like '%username')";
-$strsel="Select * from actions $select order by creation asc";
+  $select="where (smtpfrom like '%$username%') or (rcptto like '%username%')";
+$strsel="Select * from actions $select order by creation desc";
 if ($limit!=NULL) 
   $strlim="limit $limit";
 if ($skip!=NULL) 
   $strskip="offset $skip";
+rou_alert(0,"$OPEP JMPDBG <$strsel $strlim $strskip>");
 $stmt=$dbsql->Select("$strsel $strlim $strskip");
 return $stmt->fetchAll();
 }
index bb59b87252d3948ac24ba122d18648fb5aee3302..ecab24121f5d409ba1dec498e677babd4b9cfd9b 100644 (file)
@@ -37,8 +37,8 @@ $line="";
 $count=$offset+1;
 foreach($actions as $action) {
   $info=substr($action['info'],3,1);
-  if ($info=="-")
-    continue;
+  //if ($info=="-")
+   // continue;
   $bgcolor="white";
   if ($count & 1 ) {
     $bgcolor="green";
index cd2870f4c27d0c49304ee72aeab119f230257e8d..799378acc740af2c1a9971c58f638be78d74e79d 100644 (file)
@@ -15,6 +15,7 @@ function tblheader(string $username,int $numrec,int $offset,int $limit)
 {
 global $userlang;
 
+$debut=$offset+1;
 $email=gettranslate($userlang,"Email");
 
 $STR  = <<<EOT
@@ -44,7 +45,7 @@ $STR  = <<<EOT
 &rarrb;
 </FONT>
 </Button>
-<FONT SIZE=+2>$offset/$numrec</FONT>
+<FONT SIZE=+2>$debut/$numrec</FONT>
 </FORM>
 </TD>
 <TD align=left>
@@ -124,6 +125,7 @@ $emails=sql_getemaillist($dbsql,$username,$limit,$offset);
 $line="";
 $count=$offset;
 foreach($emails as $email) {
+  $count++;
   $bgcolor="white";
   if ($count & 1 ) {
     $bgcolor="green";
@@ -141,7 +143,6 @@ foreach($emails as $email) {
   $line=$line."<TD align=center>$max</TD>\r\n";
   $line=$line."<TD align=center>$lock</TD>\r\n";
   $line=$line."</TR>";
-  $count++;
   }
 sql_close($dbsql);