Subversion Repositories Applications.wikini

Rev

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

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