[pmwiki-devel] Require a password to edit RecentChanges (etc.) pages: regex problem
Simon
s-i-m-o-n at paradise.net.nz
Tue Dec 5 01:02:39 CST 2006
I've added the following to my config.php,
but I don't get the prompt for a password.
I suspect my regex is wrong, can anyone help please
## Require a password to edit RecentChanges (etc.) pages.
if ($action=='edit'
&&
preg_match('/\\.(Search|(Main|Side)Bar|Group(Header|Footer|Attributes)|(All)?RecentChanges)$/',
$pagename))
{ $DefaultPasswords['edit'] = crypt('mysecretpassword!'); }
thanks
Simon
.
More information about the pmwiki-devel
mailing list