From 2fd204f8c0029830727db74f13af580e07ffec55 Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 26 Jan 2012 17:32:12 +0000 Subject: [PATCH] note how to change system-level settings --- index.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 405c4d4e..e632c15f 100644 --- a/index.php +++ b/index.php @@ -56,10 +56,8 @@ if(empty($database_dsn) && !file_exists("config.php")) { } require_once "config.php"; -// set up and purify the environment -function _d($name, $value) { - if(!defined($name)) define($name, $value); -} +// to change these system-level settings, do define("FOO", 123); in config.php +function _d($name, $value) {if(!defined($name)) define($name, $value);} _d("DATABASE_DSN", null); // string PDO database connection details _d("CACHE_DSN", null); // string cache connection details _d("DEBUG", false); // boolean print various debugging details @@ -76,6 +74,7 @@ _d("VERSION", 'trunk'); // string shimmie version _d("SCORE_VERSION", 's2hack/'.VERSION); // string SCore version _d("TIMEZONE", 'UTC'); // string timezone +// set up and purify the environment date_default_timezone_set(TIMEZONE); require_once "core/util.inc.php";