AuthorFromPasswordPrompt

Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.


Question

How can I fill in the contents of the edit page's "Author" field with a username entered from the password prompt?

Answer

Add the following lines to your local/config.php:

    if (@$_SERVER['PHP_AUTH_USER']) 
      $Author = $_SERVER['PHP_AUTH_USER'];

(If that file is still empty, don't forget to add the php <? and ?>)

Contributors

pmwiki-2.3.38 -- Last modified by {{Joris}}?

from IP: 85.171.160.186 ip should be disabled by default for security reasons