|
SessionAuthFormNote: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
GoalTo embed authentication seamlessly into the Wiki page design without fiddling with HTML, CSS etc. SolutionAttach:sessionauthform.php.txt DiscussionPmWiki provides a login form (sessionauth.php). But the output is simple HTML and without a certain effort not easily embeddable into your Wiki design. See http://beeblebrox.net/System/Login for an example of SessionAuthForm. InstallationTo install SessionAuthForm, perform the following steps: 1. Place the Attach:sessionauthform.php.txt script in your local/ subdirectory, then add the following line to your local configuration: include_once('local/sessionauthform.php');
2. Set configuration variables in your local configuration if you want
<p> </p>
<p> </p>
<b>Please enter author and password</b>
<p> </p>
<form name='authform' action='{$_SERVER['REQUEST_URI']}' method='post'>
<dl>
<dt>
<label for='author' title='Enter your author name here'>Author:</label>
</dt>
<dd>
<input tabindex='1' id='author' name='author' value='$author' />
</dd>
<dt>
<label for='password' title='Enter your password here'>Password:</label>
</dt>
<dd>
<input tabindex='2' type='password' id='password' name='authpw' value='' />
</dd>
<dd>
<input tabindex='3' type='submit' value='OK' />
</dd>
</dl>
</form>
<p> </p>
<p> </p>
See Also
History2004-08-29 Initial release Comments & BugsPlease post bugs and comments.
But: how can I use it with PmWiki 2 ? I'm not that kind of programer to customize it at all, but would like to use this way also for another site running with pmwiki2. Contributorspmwiki-2.2.0-beta68 -- Last modified by {{ZimPet}}?
|