Whitelist
Aus WS64 Wiki
(Unterschied zwischen Versionen)
WS64 (Diskussion | Beiträge) K |
WS64 (Diskussion | Beiträge) K |
||
Zeile 10: | Zeile 10: | ||
Add the following text to your [https://www.mediawiki.org/wiki/Manual:LocalSettings.php LocalSettings.php] | Add the following text to your [https://www.mediawiki.org/wiki/Manual:LocalSettings.php LocalSettings.php] | ||
<pre>require_once( "$IP/extensions/ExtendedWhitelist/ExtendedWhitelist.php" );</pre> | <pre>require_once( "$IP/extensions/ExtendedWhitelist/ExtendedWhitelist.php" );</pre> | ||
− | ===Configuration=== | + | |
+ | === Configuration === | ||
+ | Add lines to LocalSettings.php like this one: | ||
+ | <pre>$WSCategoryWhitelist = array( "PUBLIC","public" );</pre> | ||
+ | This example will whitelist all files that are within the categories "PUBLIC" and "public". |
Version vom 7. September 2013, 21:29 Uhr
Inhaltsverzeichnis |
Wikimedia Extension "Extended Whitelist"
Introduction
This extension allows to whitelist pages by category.
The intention is to use this extension with closed Wikis (like this one here) but still be able to share certain pages just by putting them in to pre-defined categories.
This extension was written by WS64.
Installation
Download all extension files from here and place them in the extensions/ExtendedWhiteList/ directory.
Add the following text to your LocalSettings.php
require_once( "$IP/extensions/ExtendedWhitelist/ExtendedWhitelist.php" );
=== Configuration === Add lines to LocalSettings.php like this one:
$WSCategoryWhitelist = array( "PUBLIC","public" );
This example will whitelist all files that are within the categories "PUBLIC" and "public".