diff options
author | jan <jan@jandecaluwe.com> | 2005-05-12 22:42:25 +0200 |
---|---|---|
committer | jan <jan@jandecaluwe.com> | 2005-05-12 22:42:25 +0200 |
commit | 8c4f28e8218f0ffb4c01bfd99c7420114b839c4e (patch) | |
tree | 7e555672525e915191303d319ded5dc70b64bfda /inc/auth_plain.php | |
parent | 7009a5a9c3eec40fc7ae8aba3932be002d157b98 (diff) | |
download | rpg-8c4f28e8218f0ffb4c01bfd99c7420114b839c4e.tar.gz rpg-8c4f28e8218f0ffb4c01bfd99c7420114b839c4e.tar.bz2 |
Turn sensitive files into scripts that exit immediately
darcs-hash:20050512204225-45605-bee22b4df3d23374bc4922ede8f48106ea217209.gz
Diffstat (limited to 'inc/auth_plain.php')
-rw-r--r-- | inc/auth_plain.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/auth_plain.php b/inc/auth_plain.php index 93168a26f..6bc666802 100644 --- a/inc/auth_plain.php +++ b/inc/auth_plain.php @@ -76,13 +76,13 @@ function auth_createUser($user,$pass,$name,$mail){ $mail, $conf['defaultgroup'])); $userline .= "\n"; - $fh = fopen('conf/users.auth','a'); + $fh = fopen('conf/users.auth.php','a'); if($fh){ fwrite($fh,$userline); fclose($fh); return $pass; } - msg('The users.auth file is not writable. Please inform the Wiki-Admin',-1); + msg('The users.auth.php file is not writable. Please inform the Wiki-Admin',-1); return null; } @@ -96,7 +96,7 @@ function auth_createUser($user,$pass,$name,$mail){ */ function auth_plain_loadUserData(){ $data = array(); - $lines = file('conf/users.auth'); + $lines = file('conf/users.auth.php'); foreach($lines as $line){ $line = preg_replace('/#.*$/','',$line); //ignore comments $line = trim($line); |