Subversion Repositories Applications.wikini

Compare Revisions

Ignore whitespace Rev 46 → Rev 45

/trunk/tools/templates/presentation/templates/moteurrecherche_basic.tpl.html
File deleted
/trunk/tools/templates/actions/barreredaction.php
File deleted
/trunk/tools/actions/desc.xml
File deleted
/trunk/tools/actions/index.php
File deleted
/trunk/tools/actions/actions/recentchangesrss.php
File deleted
/trunk/tools/actions/actions/usersdeleting.php
File deleted
/trunk/tools/handlers/desc.xml
2,5 → 2,8
<plugin name="handlers" version="0.1" active="1">
<author>Jean-Pascal MILCENT</author>
<label>Handlers supplementaires</label>
<desc>Plugin fournissant de nouveaux handlers a Wikini.</desc>
<desc>Plugin fournissant de nouveaux handlers a Wikini :
- raw_html : affiche le contenu du body de la page wikini au format html dans une page html de base (utile pour les iFrame)
- raw_html_txt : affiche le contenu du body de la page wikini au format html. Le html n'est pas interprété par le navigateur car il est envoyé avec l'entête text/plain. Utile pour
</desc>
</plugin>
/trunk/tools/handlers/index.php
1,8 → 1,6
<?php
// Administration
 
// Vérification de sécurité
if (!defined("TOOLS_MANAGER")) {
die ("acc&egrave;s direct interdit");
die ("accés direct interdit");
}
?>
/trunk/tools/handlers/handlers/page/deletepage.php
File deleted
\ No newline at end of file
/trunk/tools/handlers/handlers/page/raw_html_txt.php
1,19 → 1,19
<?php
// declare(encoding='ISO-8859-1');
// declare(encoding='UTF-8');
/**
* Handler renvoyant au navigateur le contenu HTML de la page wiki avec un type mime text/plain.
*
*
* @category PHP 5.2
* @package Framework
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
* @copyright Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
* @version $Id$
*/
 
 
//Vérification de sécurité
//Vérification de sécurité
if (!eregi("wakka.php", $_SERVER['PHP_SELF'])) {
die ("Acc&eacute;s direct interdit");
}
/trunk/tools/handlers/handlers/page/raw_html.php
1,40 → 1,40
<?php
// declare(encoding='ISO-8859-1');
/**
* Handler renvoyant au navigateur le contenu HTML de la page wiki.
*
* @category PHP 5.2
* @package Framework
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
* @copyright Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
* @version $Id$
*/
 
 
//Vérification de sécurité
if (!eregi("wakka.php", $_SERVER['PHP_SELF'])) {
die ("Acc&eacute;s direct interdit");
}
if ($this->HasAccess("read")) {
if (!$this->page) {
return;
} else {
header("Content-type: text/html");
// Affichage de la page HTML
$html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
$html .= '<html>'."\n";
$html .= ' <head>'."\n";
$html .= ' <title>'.$this->GetPageTag().'</title>'."\n";
$html .= ' </head>'."\n";
$html .= ' <body>'."\n";
$html .= $this->Format($this->page["body"], "wakka");
$html .= ' </body>'."\n";
$html .= '</html>';
echo $html;
}
} else {
return;
}
<?php
// declare(encoding='UTF-8');
/**
* Handler renvoyant au navigateur le contenu HTML de la page wiki.
*
* @category PHP 5.2
* @package Framework
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
* @copyright Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
* @version $Id$
*/
 
 
//Vérification de sécurité
if (!eregi("wakka.php", $_SERVER['PHP_SELF'])) {
die ("Acc&eacute;s direct interdit");
}
if ($this->HasAccess("read")) {
if (!$this->page) {
return;
} else {
header("Content-type: text/html");
// Affichage de la page HTML
$html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
$html .= '<html>'."\n";
$html .= ' <head>'."\n";
$html .= ' <title>'.$this->GetPageTag().'</title>'."\n";
$html .= ' </head>'."\n";
$html .= ' <body>'."\n";
$html .= $this->Format($this->page["body"], "wakka");
$html .= ' </body>'."\n";
$html .= '</html>';
echo $html;
}
} else {
return;
}
?>