From ab9b14a669b719d1f708758ce28f265af48512d4 Mon Sep 17 00:00:00 2001 From: Jean-Marc Pigeon Date: Fri, 5 Sep 2025 06:28:01 -0400 Subject: [PATCH] Renaming scrfun.php to unidis.php --- www/gessql.php | 7 ++++--- www/login.php | 2 +- www/mailleur.php | 2 +- www/{scrfun.php => unidis.php} | 13 ++++++++++++- 4 files changed, 18 insertions(+), 6 deletions(-) rename www/{scrfun.php => unidis.php} (92%) diff --git a/www/gessql.php b/www/gessql.php index bec3ae4..5f98835 100644 --- a/www/gessql.php +++ b/www/gessql.php @@ -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) { diff --git a/www/login.php b/www/login.php index 9b4c4e0..95a519c 100644 --- a/www/login.php +++ b/www/login.php @@ -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 diff --git a/www/mailleur.php b/www/mailleur.php index 7177caf..2bf06f9 100644 --- a/www/mailleur.php +++ b/www/mailleur.php @@ -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 diff --git a/www/scrfun.php b/www/unidis.php similarity index 92% rename from www/scrfun.php rename to www/unidis.php index 09b9dd1..65cba96 100644 --- a/www/scrfun.php +++ b/www/unidis.php @@ -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 -- 2.47.3