summaryrefslogtreecommitdiff
path: root/inc/admin_acl.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-06-05 12:38:42 +0200
committerandi <andi@splitbrain.org>2005-06-05 12:38:42 +0200
commitf62ea8a1d1cf10eddeae777b11420624e111b7ea (patch)
tree87a15e898308a5de1ef37874645a4cdcb83c707b /inc/admin_acl.php
parent248a73214063d2fe47787c8c4aa292777cddb12b (diff)
downloadrpg-f62ea8a1d1cf10eddeae777b11420624e111b7ea.tar.gz
rpg-f62ea8a1d1cf10eddeae777b11420624e111b7ea.tar.bz2
directory layout cleanup !IMPORTANT
This patch changes the directory structure of dokuwiki as suggested in http://www.freelists.org/archives/dokuwiki/06-2005/msg00045.html As the changes.log is not managed through darcs you need to move it your self to the new location in data/changes.log I think I modified the code at all nessessary places, but I may have forgotten a few things. darcs-hash:20050605103842-9977f-af20f63c1d604888375d175d89ac6bd71566d47d.gz
Diffstat (limited to 'inc/admin_acl.php')
-rw-r--r--inc/admin_acl.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/admin_acl.php b/inc/admin_acl.php
index fcf9d9ae3..15332b3b4 100644
--- a/inc/admin_acl.php
+++ b/inc/admin_acl.php
@@ -43,7 +43,7 @@ function admin_acl_handler(){
}
// reload ACL config
- $AUTH_ACL = file('conf/acl.auth.php');
+ $AUTH_ACL = file(DOKU_INC.'conf/acl.auth.php');
}
/**
@@ -117,7 +117,7 @@ function get_acl_config($id){
* @author Frank Schubert <frank@schokilade.de>
*/
function admin_acl_add($acl_scope, $acl_user, $acl_level){
- $acl_config = join("",file('conf/acl.auth.php'));
+ $acl_config = join("",file(DOKU_INC.'conf/acl.auth.php'));
// max level for pagenames is edit
if(strpos($acl_scope,'*') === false) {
@@ -128,7 +128,7 @@ function admin_acl_add($acl_scope, $acl_user, $acl_level){
$new_config = $acl_config.$new_acl;
- return io_saveFile("conf/acl.auth.php", $new_config);
+ return io_saveFile(DOKU_INC.'conf/acl.auth.php', $new_config);
}
/**
@@ -137,14 +137,14 @@ function admin_acl_add($acl_scope, $acl_user, $acl_level){
* @author Frank Schubert <frank@schokilade.de>
*/
function admin_acl_del($acl_scope, $acl_user){
- $acl_config = file('conf/acl.auth.php');
+ $acl_config = file(DOKU_INC.'conf/acl.auth.php');
$acl_pattern = '^'.preg_quote($acl_scope,'/').'\s+'.$acl_user.'\s+[0-8].*$';
// save all non!-matching #FIXME invert is available from 4.2.0 only!
$new_config = preg_grep("/$acl_pattern/", $acl_config, PREG_GREP_INVERT);
- return io_saveFile("conf/acl.auth.php", join("",$new_config));
+ return io_saveFile(DOKU_INC.'conf/acl.auth.php', join('',$new_config));
}
// --- HTML OUTPUT FUNCTIONS BELOW --- //