From: Jean-Marc Pigeon Date: Fri, 5 Sep 2025 10:28:01 +0000 (-0400) Subject: Renaming scrfun.php to unidis.php X-Git-Tag: end-0.15~28 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=ab9b14a669b719d1f708758ce28f265af48512d4;p=jmp%2Fmailleur Renaming scrfun.php to unidis.php --- 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