2001-03-10 11:07:52 +00:00
|
|
|
<?php
|
2000-12-23 23:25:28 +00:00
|
|
|
|
2001-02-18 15:14:56 +00:00
|
|
|
function conf_init() {
|
2001-02-04 22:09:38 +00:00
|
|
|
global $HTTP_HOST, $REQUEST_URI;
|
2001-03-10 18:38:47 +00:00
|
|
|
$file = strtolower(strtr($HTTP_HOST ."". substr($REQUEST_URI, 0, strrpos($REQUEST_URI, "/")), "/:", ".."));
|
2001-02-04 22:09:38 +00:00
|
|
|
while ($file && !file_exists("includes/$file.conf")) {
|
|
|
|
$file = substr($file, 0, strrpos($file, "."));
|
|
|
|
}
|
|
|
|
return $file;
|
|
|
|
}
|
|
|
|
|
2001-02-18 15:14:56 +00:00
|
|
|
$conf = conf_init();
|
2001-02-04 22:09:38 +00:00
|
|
|
|
|
|
|
include_once "includes/$conf.conf";
|
2000-12-23 23:25:28 +00:00
|
|
|
include_once "includes/database.inc";
|
|
|
|
include_once "includes/watchdog.inc";
|
|
|
|
include_once "includes/function.inc";
|
2001-03-18 08:44:01 +00:00
|
|
|
include_once "includes/comment.inc";
|
2001-02-10 11:59:06 +00:00
|
|
|
include_once "includes/module.inc";
|
2001-02-17 12:59:24 +00:00
|
|
|
include_once "includes/locale.inc";
|
|
|
|
include_once "includes/search.inc";
|
2000-12-23 23:25:28 +00:00
|
|
|
include_once "includes/theme.inc";
|
|
|
|
include_once "includes/user.inc";
|
2001-03-24 17:04:11 +00:00
|
|
|
include_once "includes/node.inc";
|
2000-12-23 23:25:28 +00:00
|
|
|
|
2001-02-18 15:14:56 +00:00
|
|
|
user_init();
|
|
|
|
$locale = locale_init();
|
|
|
|
$theme = theme_init();
|
2000-12-23 23:25:28 +00:00
|
|
|
|
2000-12-30 11:58:14 +00:00
|
|
|
?>
|