Subversion Repositories Applications.wikini

Rev

Rev 27 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27 Rev 46
1
<?php
1
<?php
2
// declare(encoding='UTF-8');
2
// declare(encoding='ISO-8859-1');
3
/**
3
/**
4
 * Handler renvoyant au navigateur le contenu HTML de la page wiki avec un type mime text/plain.
4
 * Handler renvoyant au navigateur le contenu HTML de la page wiki avec un type mime text/plain.
5
 * 
5
 *
6
 * @category	PHP 5.2
6
 * @category	PHP 5.2
7
 * @package		Framework
7
 * @package		Framework
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @copyright	Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
9
 * @copyright	Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
10
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
10
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
11
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2 
11
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
12
 * @version		$Id$
12
 * @version		$Id$
13
 */
13
 */
14
 
14
 
15
 
15
 
16
//Vérification de sécurité
16
//Vérification de sécurité
17
if (!eregi("wakka.php", $_SERVER['PHP_SELF'])) {
17
if (!eregi("wakka.php", $_SERVER['PHP_SELF'])) {
18
    die ("Acc&eacute;s direct interdit");
18
    die ("Acc&eacute;s direct interdit");
19
}
19
}
20
 
20
 
21
if ($this->HasAccess('read')) {
21
if ($this->HasAccess('read')) {
22
	if (!$this->page)	{
22
	if (!$this->page)	{
23
		return;
23
		return;
24
	} else {
24
	} else {
25
		header("Content-type: text/plain");
25
		header("Content-type: text/plain");
26
		echo $this->Format($this->page["body"], "wakka");
26
		echo $this->Format($this->page["body"], "wakka");
27
	}
27
	}
28
} else {
28
} else {
29
	return;
29
	return;
30
}
30
}
31
?>
31
?>