]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Adding trace to devsql.php
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 28 Aug 2025 17:24:56 +0000 (13:24 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 28 Aug 2025 17:24:56 +0000 (13:24 -0400)
www/devsql.php
www/unimar.php

index e219c85abc50f8f084375d45d4f8198aa9c7a32a..5f92ef480483795b56ddad5b78873d988acc1710 100644 (file)
@@ -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;
 }
 ?>
index 7efdc238cdb99661768d183f7523c279a7238732..e7f53b9bd47785d01f0e8cbe3e8aae184c887138 100644 (file)
@@ -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";