diff options
-rw-r--r-- | scire/.lib/common.php | 5 | ||||
-rw-r--r-- | scire/.lib/config.php.example (renamed from scire/.lib/config.php) | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/scire/.lib/common.php b/scire/.lib/common.php index 4d82b03..032597f 100644 --- a/scire/.lib/common.php +++ b/scire/.lib/common.php @@ -1,5 +1,7 @@ <?php +$CONFIG_DIR='/etc/scire'; + # Validate the path if it exists. if (isset($path)) { if ($path != "../") { @@ -14,7 +16,8 @@ if (isset($path)) { } # Configuration -require_once('config.php'); + +require_once($CONFIG_DIR.'/config.php'); # Functions require_once('functions.php'); diff --git a/scire/.lib/config.php b/scire/.lib/config.php.example index d2cf12a..f9b4674 100644 --- a/scire/.lib/config.php +++ b/scire/.lib/config.php.example @@ -9,8 +9,8 @@ $baseurl = '/scire/'; # Database $db_name = 'scire'; $db_host = 'localhost'; -$db_username = 'hobbit'; -$db_password = 'moria'; +$db_username = 'USERNAME GOES HERE'; +$db_password = 'PASSWORD GOES HERE'; $db_sessions_table = 'sessions'; # ADOdb path |