Skip to content
This repository was archived by the owner on Jan 5, 2018. It is now read-only.

Commit db81229

Browse files
committed
Updated README.md
1 parent 03c692b commit db81229

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,26 @@ CategorieAccessRestriction
22
==========================
33

44
Idea based on Andrés Orencio Ramírez Pérez project on Mediawiki (http://www.mediawiki.org/wiki/Extension:Restrict_access_by_category_and_group)
5+
6+
## Installation
7+
8+
### Using git clone
9+
- Clone the extension in your MediaWiki extension folder
10+
11+
### Using source files
12+
- Create folder called **CategorieAccessRestriction** in your extension folder
13+
- Copy all files in yout **CategorieAccessRestriction** folder
14+
15+
- Now edit LocalSettings.php and add the following lines
16+
```php
17+
require_once("$IP/extensions/CategorieAccessRestriction/CategorieAccessRestriction.php");
18+
```
19+
20+
- Now add the Pattern
21+
```php
22+
$wgCARPattern = '//';
23+
```
24+
25+
## Usage
26+
The **$wgCARPattern** is a RegEx pattern which matches the categories on a pages, and these matches are needed to the user to access the page, otherwise he will get a ACCESS DENIED.
27+
For example to match all groups starting with **CAR_**: **'/CAR_/'** the pattern is case sensitive.

0 commit comments

Comments
 (0)