63 |
aurelien |
1 |
<?php
|
|
|
2 |
if (!defined("WIKINI_VERSION"))
|
|
|
3 |
{
|
|
|
4 |
die ("accès direct interdit");
|
|
|
5 |
}
|
|
|
6 |
|
|
|
7 |
//si une page PageLogin existe, on l'affiche
|
|
|
8 |
if ($contenu = $this->LoadPage("PageLogin")) {
|
|
|
9 |
$plugin_output_new = str_replace ("<i>Vous n'êtes pas autorisé à lire cette page</i>", $this->Format($contenu["body"]), $plugin_output_new);
|
|
|
10 |
}
|
|
|
11 |
|
|
|
12 |
//sinon on affiche le formulaire d'identification minimal
|
|
|
13 |
else {
|
|
|
14 |
$plugin_output_new = str_replace ("<i>Vous n'êtes pas autorisé à lire cette page</i>",
|
|
|
15 |
'<div class="error_box">Vous n\'êtes pas autorisé à lire cette page, veuillez vous identifier.</div>'."\n".$this->Format('{{login template="minimal.tpl.html"}}'), $plugin_output_new);
|
|
|
16 |
}
|
|
|
17 |
|
|
|
18 |
?>
|