summaryrefslogtreecommitdiff
path: root/inc/auth
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-07-29 17:54:57 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-07-29 17:54:57 +0200
commite7cb32dcb57d3ae03544db66367d6aaa02f7ddf8 (patch)
tree7d7f82cc8049656bc859ebfc2961d9a2fd2f9918 /inc/auth
parent9f830448ee35b709be3c303585a230dfbf8582b3 (diff)
downloadrpg-e7cb32dcb57d3ae03544db66367d6aaa02f7ddf8.tar.gz
rpg-e7cb32dcb57d3ae03544db66367d6aaa02f7ddf8.tar.bz2
DOKU_CONF define for config directory #479
darcs-hash:20050729155457-7ad00-94554865259e4cbd6a1c75bb62a93f37304adbf0.gz
Diffstat (limited to 'inc/auth')
-rw-r--r--inc/auth/plain.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/auth/plain.php b/inc/auth/plain.php
index 039fb422d..6178f1260 100644
--- a/inc/auth/plain.php
+++ b/inc/auth/plain.php
@@ -73,7 +73,7 @@ function auth_createUser($user,$pass,$name,$mail){
$mail,
$conf['defaultgroup']));
$userline .= "\n";
- $fh = fopen(DOKU_INC.'conf/users.auth.php','a');
+ $fh = fopen(DOKU_CONF.'users.auth.php','a');
if($fh){
fwrite($fh,$userline);
fclose($fh);
@@ -93,10 +93,10 @@ function auth_createUser($user,$pass,$name,$mail){
*/
function auth_plain_loadUserData(){
$data = array();
- if(!@file_exists(DOKU_INC.'conf/users.auth.php')){
+ if(!@file_exists(DOKU_CONF.'users.auth.php')){
return $data;
}
- $lines = file(DOKU_INC.'conf/users.auth.php');
+ $lines = file(DOKU_CONF.'users.auth.php');
foreach($lines as $line){
$line = preg_replace('/#.*$/','',$line); //ignore comments
$line = trim($line);