*/ if (!defined('PmWiki')) exit(); /* * FAST Membership - Simple AuthUser addon's for PmWiki * Modified from HtpasswdForm by D.Faure (dfaure@cpan.org) * By Caveman (editor@fast.st) * * You can redistribute it and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. * * See http://www.pmwiki.org/wiki/Cookbook/FAST Membership & HtpasswdForm for info. */ # If the admin hasn't configured any password entries, just return. if (!$AuthUser) return; global $AuthUser, $HandleActions; foreach((array)($AuthUser['htpasswd']) as $f) { SDV($HtpasswdFile, $f); break; } SDVA($HtpasswordFmt, array( 'created' => "

$['%s' has been created.]

", 'exists' =>"$[Member already exists. Please try again:]", 'deleted' => "

$['%s' has been deleted.]

", 'no_user' => "

$[no user name specified.]

", 'unmatched' => "

$[passwords don't match.]

", 'renamed' => "

$['%s' has been renamed to '%s'.]

", 'updated' => "

$['%s' password has been updated.]

", )); $HandleActions['postadmhtpasswd'] = 'HandleHtpasswdAdmForm'; $HandleActions['postusrhtpasswd'] = 'HandleHtpasswdUsrForm'; $HandleActions['postnewhtpasswd'] = 'HandleHtpasswdNewForm'; SDV($_enteredName, ''); SDV($_selectedName, 0); Markup('htpasswdform', '