]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Renaming scrfun.php to unidis.php
authorJean-Marc Pigeon <jmp@safe.c>
Fri, 5 Sep 2025 10:28:01 +0000 (06:28 -0400)
committerJean-Marc Pigeon <jmp@safe.c>
Fri, 5 Sep 2025 10:28:01 +0000 (06:28 -0400)
www/gessql.php
www/login.php
www/mailleur.php
www/unidis.php [moved from www/scrfun.php with 92% similarity]

index bec3ae4dafebe03092b0c571d64b37ec684fe604..5f98835e42fc92bf9e5c1b22a06b673f45a5d514 100644 (file)
@@ -84,18 +84,19 @@ $OPEP="gessql.php:sql_getlogname";
 $isadmin=0;
 $logname=NULL;
 $expire=NULL;
-$cookie=$_COOKIE[getenv("APPNAME")];
-$cookie=htmlspecialchars($cookie);
+$cookie=NULL;
 $phase=0;
 $proceed=true;
 while ($proceed==true) {
   //rou_alert(0,"$OPEP, JMPDBG phase=$phase");
   switch ($phase) {
     case 0      :       //do we have a cookie
-      if ($cookie==NULL)
+      if (isset($_COOKIE[getenv("APPNAME")])==0) 
         $phase=999;
       break;
     case 1      :       //is the cookie within database
+      $cookie=$_COOKIE[getenv("APPNAME")];
+      $cookie=htmlspecialchars($cookie);
       $stmt=$dbsql->Select("Select * from cookies where cookuuid='$cookie'");
       $expire=$stmt->fetch(PDO::FETCH_ASSOC)['expire'];
       if ($expire==null) {
index 9b4c4e0ec5396701dd4b06fd6bf3d2799f427be8..95a519ca955a7ec590919f36ea115c3a64bef798 100644 (file)
@@ -7,7 +7,7 @@
 //==============================================================
 include_once "subrou.php";
 include_once "unienv.php";
-include_once "scrfun.php";
+include_once "unidis.php";
 include_once "gessql.php";
 
 //section to generate the main screen body
index 7177caf46f919083f9f9ab21d81ba4156db4c705..2bf06f9126a3c20c0c9cb71037d37cad360ddffd 100644 (file)
@@ -7,7 +7,7 @@
 //==============================================================
 include_once "subrou.php";
 include_once "unienv.php";
-include_once "scrfun.php";
+include_once "unidis.php";
 include_once "gessql.php";
 
 //section to generate the main screen body
similarity index 92%
rename from www/scrfun.php
rename to www/unidis.php
index 09b9dd1ea1b4771e0c8db2535811ab7d9604d2c0..65cba96ac28bc2211592fe6b88ecef9d1f91007e 100644 (file)
@@ -2,11 +2,22 @@
 
 //==============================================================
 //                                                             
-//     all screen functions implementation
+//     Basic display function
 //
 //==============================================================
 
 
+//==============================================================
+//
+//     To display header screeen part
+//
+//==============================================================
+function topper($admin,$pageref)
+
+{
+return "";
+}
+
 //==============================================================
 //
 //     To display screen footer