[pmwiki-users] HTTP Authentication and use of login name

Patrick R. Michaud pmichaud at pobox.com
Fri Jun 9 21:27:44 CDT 2006


On Sat, Jun 10, 2006 at 02:31:59AM +0200, christian.ridderstrom at gmail.com wrote:
> 
> How could I get the name from Apache BA as the default user name, only 
> when no user name is known? (Alternatively, set it as the default the 
> first time)

if (@$_SERVER['REMOTE_USER'] && !@$_COOKIE['author'])
  $_POST['author'] = $_SERVER['REMOTE_USER'];

Pm





More information about the pmwiki-users mailing list