/*****************************************************************************
File name: config.php
Site: villasbysilvia.com
Copyright 2025 Michael J. Miller, All rights reserved
Purpose: Contains the data needed to establish a DB connection for this
* site. Any remaining params are stored in the DB.
Revision History:
Date Version Details
-------- -------- -------------------------------------------------
* 9/9/25 3.3 New config design.
******************************************************************************/
/*
*
* block attempts to directly run this script
*
*/
if (getcwd() == __DIR__) {
error_log("------------------- ATTEMPTED TO RUN CONFIG.PHP -------------------------");
die('You cannot do that');
}
// these are the major configuration flags for enabling/disabling web services
const MAINTENANCE_MODE = false; // when set, site displays a dead page telling users to try later
const DEV_MODE = true; // In development or live? Development mode = true | Live = false
//TODO change this to a global setting to it can be turned on or off at will
const DEBUG = false; // controls logging detail including on emails - normally set to false
const CONFIG_ID = 2; // id of conguration file from
const DB_NAME = 'silvia_dev'; // DEV1 config file
const DB_USER = 'server';
const DB_PASSWORD = '#k#?EHG7~cWM'; // DEV1
const DB_PORT = 3306; // DEV1
const MAMP = false;
Fatal error: Uncaught Error: Undefined constant "DEMO_MODE" in /home/a1th60wbch3z/src/bootstrap.php:52
Stack trace:
#0 /home/a1th60wbch3z/public_html/index.php(48): require_once()
#1 {main}
thrown in /home/a1th60wbch3z/src/bootstrap.php on line 52