diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-01-26 10:03:59 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-01-26 10:03:59 +0000 |
commit | abe57bbb424379b5a6a897caee4eae541fb3dcdd (patch) | |
tree | 804fca3e38e61cdb91d37bc4131841a6f1878917 | |
parent | f162723fe49114779940e1cb34903a15b23de566 (diff) | |
download | brdo-abe57bbb424379b5a6a897caee4eae541fb3dcdd.tar.gz brdo-abe57bbb424379b5a6a897caee4eae541fb3dcdd.tar.bz2 |
- added port + directory patch for loading configuration files
-rw-r--r-- | includes/common.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc index 43246384e..392fc474b 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1,6 +1,7 @@ <? -include_once "includes/". getenv("HTTP_HOST") .".conf"; +$cf = strtr($HTTP_HOST ."". substr($REQUEST_URI, 0, strrpos($REQUEST_URI, "/")), "/:", ".."); +include_once "includes/$cf.conf"; include_once "includes/database.inc"; include_once "includes/watchdog.inc"; include_once "includes/function.inc"; |