Un plugin WikiBlaze (fork de Wikiss) bien fait comme il faut à l’arrache, afin de protéger son wiki par un mot de passe (le même que celui pour éditer des pages).
A améliorer absolument 😉
<?php # coding: utf-8
/**
* Privatize the Wiki with the password
*/
class Privatize
{
public $description = "Privatize the wiki";
function __toString() {
return tr($description);
}
function formatBegin() {
global $CONTENT;
if (!authentified()) {
$str = '<form action="" method="post"><label for="password">'.tr('Hé ! Le mot de passe !').'</label><br /><input type="password" name="sc" id="password" /><input type="submit" value="Ok" /></form>';
die($str);
}
return TRUE;
} // formatBegin
}
?>





