Extension:AbsenteeLandlord

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎中文
MediaWiki extensions manual
Crystal Clear action run.png
Absentee Landlord

Release status: beta

Implementation User activity
Description Auto-locks the wiki database if the sysops are all inactive for some time
Author(s) Ryan Schmidt and Tim Laqua
Latest version 1.2.0 (2014-03-30)
MediaWiki 1.17+
Database changes No
License GPL
Download
Parameters
  • $wgAbsenteeLandlordMaxDays
Hooks used
BeforePageDisplay

Translate the AbsenteeLandlord extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

The AbsenteeLandlord extension will automatically lock the database from any further changes if a sysop has not been on the wiki recently (determined by $wgAbsenteeLandlordMaxDays). This helps prevent dead or inactive wikis from becoming spambot targets. To unlock the database, a sysop simply needs to visit the wiki again.

Installation[edit | edit source]

  • Download and extract the file(s) in a directory called AbsenteeLandlord in your extensions/ folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository using:
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/AbsenteeLandlord.git
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/AbsenteeLandlord/AbsenteeLandlord.php";

Configuration[edit | edit source]

By default this extension locks the database after 90 days without having an active sysop. If you would like to change this, e.g. to 60 days you will have to add the following line below the inclusion of this extension:

$wgAbsenteeLandlordMaxDays = 60;