AuthTable: Table des auteurs

Page en cours de traduction

Summary: List Attributes of all pages in a wiki Version: 1.2 Prerequisites: none Status: working Maintainer: Pm & GNUZoo Categories: Administration Security Downloads: Normal - Attach:fplauth.php - Alternative - Attach:fplauth2.php (tweaks by Caveman)

Summary: Liste toutes les pages du wiki avec leurs attributs Version: 1.2 Pré-requis:aucuns Statut: fonctionne Mainteneur: Pm & GNUZoo Categories: Administration Security Téléchargements: Normal - Attach:fplauth.php - Alternative - Attach:fplauth2.php (tweaks by Caveman)

Questions answered by this recipe

How do I know which attributes are set?

This section is optional; use it to indicate the types of questions (if any) this recipe is intended to answer.

Description

All 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: (:pagelist group=Site,Cookbook fmt=authtable:)

Here is an Example: http://www.pmwiki.org/wiki/Test/AuthList

Installation

Copy Attach: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");

Notes

Note that it won't list any pages for which you do not have read authorization.

Release Notes

This 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

Please email to arrange a donation to the author: guru [snail] gnuzoo [period] org

  • Version 1.2: Corrected RecipeInfo so RecipeCheck? would work properly.
  • Version 1.1: Added RecipeInfo, Added "action=attr" to the links, Disabled automatic logout
  • Version 1.0: Initial Release

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

Comments

I made a couple of simple tweaks to the code to make this work much faster when managing a site's attributes, namely:

  • Added action=attr to the links so can go straight to the attributes page and edit.
  • Disabled automatic logout on attributes change so you can change more than one page at a time.
  • Topped all the columns table headers, so they all look the same.

Here's the code if the maintainer wants to update the original script: Attach:fplauth2.php Cheers, Caveman

I added the action=attr and disabled the automatic logout, but I see nothing wrong with the headers. GNUZoo

See Also

Contributors

Pm created code GNUZoo created recipe page


. Page originale sur CookbookFr.AuthTable - Backlinks
Dernières modifications:
CookbookFr.AuthTable: September 10, 2011, at 04:47 PM
PmWiki.AuthTable?: September 10, 2011, at 04:42 PM