Added config files named for the full server name, updated the loader accordingly.

git-svn-id: http://svn.cleancode.org/svn/pickles@2 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
Josh Sherman 2007-10-06 20:38:01 +00:00
parent 4bedbb02be
commit 7f91ed4b5b
3 changed files with 9 additions and 7 deletions

8
config/new.meatronic.com.ini Executable file
View file

@ -0,0 +1,8 @@
debug = true
[database]
hostname = "localhost"
username = "meatronic"
password = "m347r0n1c"
database = "meatronic"

View file

@ -4,12 +4,6 @@ function __autoload($class) {
require_once "classes/{$class}.php";
}
$server = explode('.', $_SERVER["SERVER_NAME"]);
$site = $server[count($server) - 2];
// @debug
$site = 'meatronic';
Config::load($site);
Config::load($_SERVER['SERVER_NAME']);
?>