Extension:PasswordProtected

What can this extension do?
It can protect pages and require a password to edit/view.

Despite these password, if the user clicks to the View Source tab, he can see the code of the page and with it the password and the content. So this extension does not protect your contents to be viewed.

Usage
In page put in: the password for the page

This doesn't seem to work if you enter the password right away when creating the page. It seems it's not assigned ID soon enough. (in MediaWiki 1.14.0) According to my tests you have to save the page first and then edit again to add the password.

Download instructions
Cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

And execute this to your database (add in front of protect_pages your prefix): CREATE TABLE `protect_pages` ( `pageid` int(3) NOT NULL,  `password` blob NOT NULL ) or better CREATE TABLE `protect_pages` ( `pageid` int(3) NOT NULL PRIMARY KEY,  `password` blob NOT NULL ) this will speed up your queries as it creates an index on the `pageid` column. The syntax may be a little different in Postgres.