New file |
0,0 → 1,18 |
<?php |
if (!defined("WIKINI_VERSION")) |
{ |
die ("accès direct interdit"); |
} |
|
//si une page PageLogin existe, on l'affiche |
if ($contenu = $this->LoadPage("PageLogin")) { |
$plugin_output_new = str_replace ("<i>Vous n'êtes pas autorisé à lire cette page</i>", $this->Format($contenu["body"]), $plugin_output_new); |
} |
|
//sinon on affiche le formulaire d'identification minimal |
else { |
$plugin_output_new = str_replace ("<i>Vous n'êtes pas autorisé à lire cette page</i>", |
'<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); |
} |
|
?> |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |