29 |
aurelien |
1 |
<?php
|
|
|
2 |
// declare(encoding='UTF-8');
|
|
|
3 |
/**
|
|
|
4 |
* Handler renvoyant au navigateur le contenu HTML de la page wiki.
|
|
|
5 |
*
|
|
|
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
|
|
|
11 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
|
|
|
12 |
* @version $Id$
|
|
|
13 |
*/
|
|
|
14 |
//Vérification de sécurité
|
|
|
15 |
if (!eregi("wakka.php", $_SERVER['PHP_SELF'])) {
|
|
|
16 |
die ("Accés direct interdit");
|
|
|
17 |
}
|
|
|
18 |
$chemin = dirname(__FILE__).DIRECTORY_SEPARATOR.'../../rest/index.php';
|
|
|
19 |
if (!file_exists($chemin)) {
|
|
|
20 |
$e = "Veuillez paramétrer l'emplacement de l'api : $chemin";
|
|
|
21 |
} else {
|
|
|
22 |
include $chemin;
|
|
|
23 |
}
|
|
|
24 |
?>
|