logo       

Re: Username instead of ip address!?: msg#00074

web.wiki.phpwiki.talk

Subject: Re: Username instead of ip address!?

Fredrik Linderoth schrieb:
We have just installed phpwiki 1.3.6 on a Red Hat 7.3 system with mysql.
We are using htpasswd to give the users access to the site. It seems to work fine but when a user make a change in a file, the ip address is logged as the author. Is it possible to log the username that you are using when you log on (that you have created with htpasswd)?

Earlier we used phpwiki 1.2.0 and it worked great!

yes, then we did HTTP auth.

as workaround simply add

if (!empty($_SERVER['PHP_AUTH_USER']))
$request->_signIn($_SERVER['PHP_AUTH_USER']);

to main() in main.php, after the $request = new WikiRequest(); line.
not tested, but worked in previous wikis of mine.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise