[pmwiki-users] FAQ: Editable RecentChanges
H. Fox
haganfox at gmail.com
Sat Aug 6 16:42:52 CDT 2005
I edited the following Q/A in the FAQ.
~~~~
Q: Why are 'RecentChanges', 'AllRecentChanges', 'RecentUploads',
'AllRecentUploads' editable?
A: There are times when you might want to edit these pages, such as
when a spammer creates a page with an unsavory name.
You can disallow editing of these pages by inserting the following
lines into your local/config.php file:
## Disallow editing of RecentChanges and RecentUploads pages.
if ($action=='edit'
&& preg_match('/\\.(All)?Recent(Changes|Uploads)$/', $pagename)) {
unset($_POST['post']); unset($_POST['postedit']);
}
~~~~
How would someone password-protect the pages, even ones that don't
exist yet, rather than disabling editing them completely. Or a better
question: How can the answer be improved while remaining concise?
Does this one belong on the FAQ page?
Hagan
More information about the pmwiki-users
mailing list