8 |
jpm |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
if (!defined("WIKINI_VERSION"))
|
|
|
4 |
{
|
|
|
5 |
die ("accès direct interdit");
|
|
|
6 |
}
|
|
|
7 |
|
|
|
8 |
$user = $this->GetUser();
|
|
|
9 |
$root_page = $this->ComposeLinkToPage($this->config["root_page"]);
|
|
|
10 |
$navigation_links = $this->config["navigation_links"] ? $this->Format($this->config["navigation_links"]) : "";
|
|
|
11 |
$user_name = $this->Format($this->GetUserName());
|
|
|
12 |
$disconnect_link = $this->GetUser() ? '(<a href="' . $this->href('', 'Identification', 'action=logout') . "\">Déconnexion</a>)\n" : '';
|
|
|
13 |
|
|
|
14 |
if ($user) {
|
|
|
15 |
$plugin_output_new = preg_replace ('/<!-- ADMIN -->/',
|
|
|
16 |
'<div class="header">'.
|
|
|
17 |
$root_page.' :: '.$navigation_links.' :: '.'Vous êtes '.$user_name.' '.$disconnect_link.
|
|
|
18 |
'</div>
|
|
|
19 |
<div class="page"',
|
|
|
20 |
$plugin_output_new);
|
|
|
21 |
}
|
|
|
22 |
|
|
|
23 |
?>
|