From: Reini U. <ru...@x-...> - 2003-12-17 12:37:52
|
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/ |