|
Cookbook /
AuthTableSummary: List Attributes of all pages in a wiki
Version: 1.2
Prerequisites: none
Status: Stable
Categories: Obsolete
This recipe is obsolete as of pmwiki-2.2.0; use the SiteAdmin.AuthList page instead. Questions answered by this recipeHow do I know which attributes are set?
DescriptionAll pagenames and their attributes will be displayed in a table. The page code to do this is: (:pagelist fmt=authtable:)
For a very large wiki it can take a long time to generate the list.
It is easy to speed it up by listing selected groups using the group attribute
in the pagelist: Here is an Example: http://www.pmwiki.org/wiki/Test/AuthList InstallationFrom the user list: Starting with 2.2.0-beta52 it's in the core, at the Site.AuthList page. (This was changed to SiteAdmin.AuthList at 2.2.0-beta58.) So, no need to copy fplauth.php or anything else, just use the pagelist command as above. Copy fplauth.phpΔ to your cookbook directory. In your config.php enter: include_once("cookbook/fplauth.php");
or in your farmconfig.php enter: include_once(" $FarmD/cookbook/fplauth.php");
NotesNote that it won't list any pages for which you do not have read authorization. Release NotesThis program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation http://www.fsf.org either version 2 of the License, or (at your option) any later version. Copyright 2007 by GNUZoo (guru@gnuzoo.org) Please donate to the author at url: http://gnuzoo.org/GNUZooPayPal
CommentsI made a couple of simple tweaks to the code to make this work much faster when managing a site's attributes, namely:
Here's the code if the maintainer wants to update the original script: fplauth2.phpΔ Cheers, Caveman I added the action=attr and disabled the automatic logout, but I see nothing wrong with the headers. JB
I've just installed pmwiki 2.2beta54 (which includes this recipe in the core) and now am trying to figure out what the AuthList output means. I get only a fraction of the protected pages listed, but that might be the correct output if the emphasize is on "pages". (Most of my pages are protected by group protection.) Still, a couple of GroupAttributes pages are listed, too, apparently only when the group contains page-level protected pages, too. Still, "clear"ing the page-level passwords did not in all cases make the entries vanish from the list as expected, so Ì'm somewhat confused now. My questions:
I hope this is the right place to ask. Maybe any answers would actually be a good start for the PmWiki.AuthList? documentation that doesn't seem to exist so far? --Henning June 08, 2007, at 09:31 AM See AlsoContributors
|