Rev 8 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php
if (!defined("WIKINI_VERSION"))
{
die ("accès direct interdit");
}
$user = $this->GetUser();
$root_page = $this->ComposeLinkToPage($this->config["root_page"]);
$navigation_links = $this->config["navigation_links"] ? $this->Format($this->config["navigation_links"]) : "";
$user_name = $this->Format($this->GetUserName());
$disconnect_link = $this->GetUser() ? '(<a href="' . $this->href('', 'Identification', 'action=logout') . "\">Déconnexion</a>)\n" : '';
if ($user) {
$plugin_output_new = preg_replace ('/<!-- ADMIN -->/',
'<div class="header">'.
$root_page.' :: '.$navigation_links.' :: '.'Vous êtes '.$user_name.' '.$disconnect_link.
'</div>
<div class="page"',
$plugin_output_new);
}
?>