Subversion Repositories Sites.tela-botanica.org

Rev

Rev 609 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 david 1
<?php
2
 
3
if (!defined("_ECRIRE_INC_VERSION")) return;	#securite
4
 
5
global $balise_URL_LOGOUT_collecte;
6
$balise_URL_LOGOUT_collecte = array();
7
 
8
// filtres[0] = url destination apres logout [(#URL_LOGOUT|url)]
9
function balise_URL_LOGOUT_stat ($args, $filtres) {
10
	return array($filtres[0]);
11
}
12
 
13
function balise_URL_LOGOUT_dyn($cible) {
14
	if (!$login = $GLOBALS['auteur_session']['login'])
15
		return '';
16
 
17
	if (!$cible) {
18
		$link = new Link();
19
		$cible = $link->getUrl();
20
	}
21
 
22
	return 'spip_cookie.php3?logout_public=' . $login
23
		. '&amp;url=' . urlencode($cible);
24
}
25
 
26
?>