|
PmWiki /
Security-TalkThis is a talk page for improving Security. How do I, in You cannot, go to the Group.GroupAttributes?action=attr or Page?action=attr. How do I only allow authors to post if they have a Profile? Add this to your local/config.php below if(!PageExists('Profiles.'.$Author)&&$action=='edit')
This is a possible solution, but be warned: author can't edit their wiki page in Profiles group too.
Add I am having trouble with password-protecting the read action on certain groups. I'd like a user to be able to login on the main page of that group with This seems like a problem with sessions, either client-side cookies (check your browser, proxy) or server-side (the directory where PHP writes session data should exist and be read-writable). On some hostings you need to create a "/.sessions" directory at the document root, or use in config.php Is there a way to reveal all the markup as is revealed in an edit page without enabling editing? This is possible if you allow the action source. Page download is protected for editing, but adding The following is related to PITS:01257 and needs fixing: How do I password protect all common pages in all groups such as recent changes, search, group header, group footer, and so on? Insert the following lines into your local/config.php file. Editing these pages then requires the admin password.
## Require admin password to edit RecentChanges (etc.) pages.
if ($action=='edit'
&& preg_match('/\\.(Search|Group(Header|Footer)|(All)?RecentChanges)$/', $pagename))
{ $DefaultPasswords['edit'] = crypt('secret phrase'); }
Note that all GroupAttributes pages are protected by the attr password. Alternative: you can require 'admin' authentication for these pages:
## Require admin password to edit RecentChanges (etc.) pages.
if ($action=='edit'
&& preg_match('(Search|Group(Header|Footer)|(All)?RecentChanges)', $pagename))
{ $HandleAuth['edit'] = 'admin'; }
How to make a rule that allows only authors to edit their own wiki page in Profiles group? Add this to your local/config.php $name = PageVar($pagename, '$Name');
$group = PageVar($pagename, '$Group');
if($group=='Profiles')
This is a talk page for improving PmWiki.Security. |