Subversion Repositories Applications.wikini

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
8 jpm 1
<?php
2
 
3
if (!defined("WIKINI_VERSION"))
4
{
5
            die ("acc&egrave;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&eacute;connexion</a>)\n" : '';
13
 
14
if ($user) {
15
	$plugin_output_new = preg_replace ('/<!-- ADMIN -->/',
16
		'<div class="header">'.
17
			$root_page.' :: '.$navigation_links.' :: '.'Vous &ecirc;tes '.$user_name.' '.$disconnect_link.
18
		'</div>
19
		<div class="page"',
20
		$plugin_output_new);
21
}
22
 
23
?>