Made the DBCS a text file that can be changed to other engines, e.g. mysql, if needed

This commit is contained in:
Conner Harkness 2025-06-24 14:53:46 -06:00
parent 0ba75643bd
commit 166a1d7e2b

View File

@ -1,14 +1,15 @@
<?php <?php
global $c; global $c;
$intInitialize = 1; $strDBCSFile = "dbcs.txt";
if (!file_exists("sqlite.db"))
$intInitialize = 1; if (!file_exists($strDBCSFile))
file_put_contents($strDBCSFile, "sqlite:sqlite.db");
$c = new DatabaseConnection( $c = new DatabaseConnection(
"sqlite", trim(file_get_contents($strDBCSFile)));
"sqlite.db");
$intInitialize = 1;
if ($intInitialize == 1) if ($intInitialize == 1)
{ {
$c->query( $c->query(