Subversion Repositories Applications.wikini

Rev

Rev 24 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24 Rev 27
1
<?php
1
<?php
-
 
2
// declare(encoding='UTF-8');
2
/*
3
/**
3
raw_html.php
-
 
4
Copyright 2010  Jean-Pascal MILCENT
-
 
5
Copyright 2002  David DELON
-
 
6
Copyright 2003  Eric FELDSTEIN
-
 
7
Copyright 2003  Charles NEPOTE
-
 
8
This program is free software; you can redistribute it and/or modify
-
 
9
it under the terms of the GNU General Public License as published by
4
 * Handler renvoyant au navigateur le contenu HTML de la page wiki.
10
the Free Software Foundation; either version 2 of the License, or
-
 
11
(at your option) any later version.
-
 
12
 
5
 * 
13
This program is distributed in the hope that it will be useful,
6
 * @category	PHP 5.2
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
7
 * @package		Framework
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-
 
16
GNU General Public License for more details.
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
17
 
-
 
18
You should have received a copy of the GNU General Public License
9
 * @copyright	Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
19
along with this program; if not, write to the Free Software
10
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
20
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
11
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2 
-
 
12
 * @version		$Id$
21
*/
13
 */
-
 
14
 
22
 
15
 
23
//vérification de sécurité
16
//Vérification de sécurité
24
if (!eregi("wakka.php", $_SERVER['PHP_SELF'])) {
17
if (!eregi("wakka.php", $_SERVER['PHP_SELF'])) {
25
    die ("Accés direct interdit");
18
    die ("Acc&eacute;s direct interdit");
26
}
-
 
27
 
19
}
28
if ($this->HasAccess("read")) {
20
if ($this->HasAccess("read")) {
29
	if (!$this->page) {
21
	if (!$this->page) {
30
		return;
22
		return;
31
	} else {
23
	} else {
32
		header("Content-type: text/html");
24
		header("Content-type: text/html");
33
		// Affichage de la page HTML
25
		// Affichage de la page HTML
34
		$html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
26
		$html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
35
		$html .= '<html>'."\n";
27
		$html .= '<html>'."\n";
36
		$html .= '	<head>'."\n";
28
		$html .= '	<head>'."\n";
37
		$html .= '		<title>'.$this->GetPageTag().'</title>'."\n";
29
		$html .= '		<title>'.$this->GetPageTag().'</title>'."\n";
38
		$html .= '	</head>'."\n";
30
		$html .= '	</head>'."\n";
39
		$html .= '	<body>'."\n";
31
		$html .= '	<body>'."\n";
40
		$html .= $this->Format($this->page["body"], "wakka");
32
		$html .= $this->Format($this->page["body"], "wakka");
41
		$html .= '	</body>'."\n";
33
		$html .= '	</body>'."\n";
42
		$html .= '</html>';
34
		$html .= '</html>';
43
		echo $html;
35
		echo $html;
44
	}
36
	}
45
} else {
37
} else {
46
	return;
38
	return;
47
}
39
}
48
?>
40
?>