diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-02-18 15:14:56 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-02-18 15:14:56 +0000 |
commit | 4371b627d51ffc5af9498fa1877d8e519a5f2c6e (patch) | |
tree | bc83240be6329005e30a5c21ff83163397ca0fd1 /includes/common.inc | |
parent | c93bcff8b85a24fe200fe27bd4c8f860f7d01b9c (diff) | |
download | brdo-4371b627d51ffc5af9498fa1877d8e519a5f2c6e.tar.gz brdo-4371b627d51ffc5af9498fa1877d8e519a5f2c6e.tar.bz2 |
- added fine-grained user permission system which allows us to give
certain users access to specific administration sections only.
Ex. a FAQ maintainer can only edit the FAQ, and members of an
"editorial board" can only edit comments, diaries and
stories, ..
- code review => rewrote include/user.inc which is much easier now
- fixed 4 small bugs
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/common.inc b/includes/common.inc index 7ee1034c6..046f6a1cf 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1,6 +1,6 @@ <? -function conf_load() { +function conf_init() { global $HTTP_HOST, $REQUEST_URI; $file = strtr($HTTP_HOST ."". substr($REQUEST_URI, 0, strrpos($REQUEST_URI, "/")), "/:", ".."); while ($file && !file_exists("includes/$file.conf")) { @@ -9,7 +9,7 @@ function conf_load() { return $file; } -$conf = conf_load(); +$conf = conf_init(); include_once "includes/$conf.conf"; include_once "includes/database.inc"; @@ -21,8 +21,8 @@ include_once "includes/search.inc"; include_once "includes/theme.inc"; include_once "includes/user.inc"; -user_load(); -$locale = locale_load(); -$theme = theme_load(); +user_init(); +$locale = locale_init(); +$theme = theme_init(); ?>
\ No newline at end of file |