diff options
author | andi <andi@splitbrain.org> | 2005-02-19 11:20:55 +0100 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-02-19 11:20:55 +0100 |
commit | ed7b5f0908941f1bacef7e7c3a02c106a42cd5cc (patch) | |
tree | 6582419f82a87837adaefee934e1cb2a5316d8cb /inc/auth.php | |
parent | f840b65d632cd5e155f4d6e39c8a42ae9fd5f566 (diff) | |
download | rpg-ed7b5f0908941f1bacef7e7c3a02c106a42cd5cc.tar.gz rpg-ed7b5f0908941f1bacef7e7c3a02c106a42cd5cc.tar.bz2 |
added init.php - may have broken something! (related to #153)
darcs-hash:20050219102055-9977f-575d654e742934c911ffab855d82aa91f198b5cf.gz
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/inc/auth.php b/inc/auth.php index 0266899a8..094319377 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -1,4 +1,4 @@ -<? +<?php /** * Authentication library * @@ -9,12 +9,13 @@ * @author Andreas Gohr <andi@splitbrain.org> */ - require_once("inc/common.php"); - require_once("inc/io.php"); - require_once("inc/blowfish.php"); - require_once("inc/mail.php"); + if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/'); + require_once(DOKU_INC.'inc/common.php'); + require_once(DOKU_INC.'inc/io.php'); + require_once(DOKU_INC.'inc/blowfish.php'); + require_once(DOKU_INC.'inc/mail.php'); // load the the auth functions - require_once('inc/auth_'.$conf['authtype'].'.php'); + require_once(DOKU_INC.'inc/auth_'.$conf['authtype'].'.php'); // some ACL level defines define('AUTH_NONE',0); @@ -324,7 +325,7 @@ function auth_sendPassword($user,$password){ if(!$userinfo['mail']) return false; $text = rawLocale('password'); - $text = str_replace('@DOKUWIKIURL@',getBaseURL(true),$text); + $text = str_replace('@DOKUWIKIURL@',DOKU_URL,$text); $text = str_replace('@FULLNAME@',$userinfo['name'],$text); $text = str_replace('@LOGIN@',$user,$text); $text = str_replace('@PASSWORD@',$password,$text); |