From: Jean-Marc Pigeon (Delson) Date: Thu, 28 Aug 2025 17:24:56 +0000 (-0400) Subject: Adding trace to devsql.php X-Git-Tag: end-0.15~53 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=d1f01e613659039455e4f5b0621585f5e43810bb;p=jmp%2Fmailleur Adding trace to devsql.php --- diff --git a/www/devsql.php b/www/devsql.php index e219c85..5f92ef4 100644 --- a/www/devsql.php +++ b/www/devsql.php @@ -12,6 +12,7 @@ $dbtype=getenv("DB_TYPE"); switch($dbtype) { case 'MYSQL' : include_once "unimar.php"; + $STR=mar_connect(); break; case 'POSTGRESQL' : include_once "unipos.php"; @@ -21,6 +22,7 @@ switch($dbtype) { throw new ErrorException($daterr); break; } +return $STR; } function sql_close() @@ -29,6 +31,7 @@ function sql_close() $dbtype=getenv("DB_TYPE"); switch($dbtype) { case 'MYSQL' : + $STR=mar_close(); break; case 'POSTGRESQL' : break; @@ -37,5 +40,6 @@ switch($dbtype) { throw new ErrorException($daterr); break; } +return $STR; } ?> diff --git a/www/unimar.php b/www/unimar.php index 7efdc23..e7f53b9 100644 --- a/www/unimar.php +++ b/www/unimar.php @@ -5,7 +5,16 @@ // //============================================================== -mar_close() +function mar_connect() + +{ +$STR="unimar.php, mar_connect\n"; + +return $STR; +} + + +function mar_close() { $STR="unimar.php, mar_close\n";