Made the DBCS a text file that can be changed to other engines, e.g. mysql, if needed
This commit is contained in:
parent
0ba75643bd
commit
166a1d7e2b
11
init.php
11
init.php
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user