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:
parent
4bedbb02be
commit
7f91ed4b5b
3 changed files with 9 additions and 7 deletions
8
config/new.meatronic.com.ini
Executable file
8
config/new.meatronic.com.ini
Executable file
|
@ -0,0 +1,8 @@
|
|||
debug = true
|
||||
|
||||
[database]
|
||||
hostname = "localhost"
|
||||
username = "meatronic"
|
||||
password = "m347r0n1c"
|
||||
database = "meatronic"
|
||||
|
8
jLib.php
8
jLib.php
|
@ -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']);
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue