Extension:ProtectSite

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
ProtectSite

Release status: stable

Implementation Special page
Description Allows a site administrator to temporarily block various site modifications
Author(s) Eric Johnston
Chris Stafford
Jack Phoenix
Last version 0.3.4
MediaWiki 1.17+
Database changes no
License GNU General Public License 2.0 or later
Download
CHANGELOG
Parameters

$wgProtectSiteLimit
$wgProtectSiteDefaultTimeout
$wgProtectSiteExempt

Added rights

protectsite

Check usage (experimental)

ProtectSite extension adds a new special page, Special:ProtectSite, where users with the protectsite user right can block various site modifications.

When the ProtectSite extension is used, it will show up in the protection log (Special:Log/protect) as a protection of Special:AllPages.

[edit] Installation

  1. Download the files from SVN or download a snapshot (select your version of MediaWiki) and place them in $IP/extensions/ProtectSite/
  2. Add the line
    require_once("$IP/extensions/ProtectSite/ProtectSite.php");
    into the wiki's LocalSettings.php
  3. Installation can now be verified through the wiki's Special:Version

[edit] User rights

By default, bureaucrat and staff groups have the protectsite right, which is required to access the special page.

[edit] Parameters

  • $wgProtectSiteLimit — maximum time allowed for protection of the site
  • $wgProtectSiteDefaultTimeout — default timeout, 1 hour by default
  • $wgProtectSiteExempt — array of non-sysop user groups to be not effected by rights changes
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox