Recent Changes - Search:

PmWiki

pmwiki.org

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.2.0-beta68 -- Last modified by {{Joris}}?

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

Edit - History - Print - Recent Changes - Search
Page last modified on November 26, 2004, at 10:22 AM