扩展:AbsenteeLandlord
![]() 發布狀態: 测试版 |
|
---|---|
实现 | 用户活动 |
描述 | 如果所有管理员某一时间都不在活跃就自动锁定wiki数据库 |
作者 | Ryan Schmidt and Tim Laqua |
最新版本 | 1.4.0 (2019-12-30) |
MediaWiki | 1.17+ |
数据庫更改 | 否 |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下載 | |
|
|
翻譯AbsenteeLandlord扩展,若在translatewiki.net可用 | |
AbsenteeLandlord扩展将自动锁定数据库以阻止更多更改,如果管理员在此wiki当前不活跃(由$wgAbsenteeLandlordMaxDays
决定)。
这有助于防止停止的或不活跃的维基成为广告机器人的目标。
要解锁数据库,管理员只需要再次访问这个维基。
安裝
- 下载文件,并将其放置在您
extensions/
文件夹中的AbsenteeLandlord
目录内。 - 将下列代码放置在您的
LocalSettings.php
的底部:require_once "$IP/extensions/AbsenteeLandlord/AbsenteeLandlord.php";
- 在您方便的时候配置即可
完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。
配置
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;