summaryrefslogtreecommitdiff
path: root/scire
diff options
context:
space:
mode:
authorPreston Cody <codeman@gentoo.org>2008-02-16 21:13:52 +0000
committerPreston Cody <codeman@gentoo.org>2008-02-16 21:13:52 +0000
commit922e1fe72da13364b83fa01eb0f3817b965a15b3 (patch)
treeb30378c87281c6a026d6de6b7f7182b9597bdea7 /scire
parentfixing up the jobs stuff. halfway there i'd say. (diff)
downloadscire-922e1fe72da13364b83fa01eb0f3817b965a15b3.tar.gz
scire-922e1fe72da13364b83fa01eb0f3817b965a15b3.tar.bz2
scire-922e1fe72da13364b83fa01eb0f3817b965a15b3.zip
config.php is now an example config. the real
config w/ database user/pass will be in /etc/scire/ modified common.php to account for new location. svn path=/trunk/; revision=353
Diffstat (limited to 'scire')
-rw-r--r--scire/.lib/common.php5
-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