Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// CVS : $Id: afficheur.php,v 1.2 2004-11-26 13:10:05 jpm Exp $
|
22 |
// CVS : $Id: afficheur.php,v 1.3 2004-12-07 12:24:30 jpm Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Application réalisant l'affichage du contenu stocké dans Papyrus.
|
24 |
* Application réalisant l'affichage du contenu stocké dans Papyrus.
|
25 |
*
|
25 |
*
|
26 |
* Récupère le dernier contenu lié à un menu et le retourne.
|
26 |
* Récupère le dernier contenu lié à un menu et le retourne.
|
27 |
*
|
27 |
*
|
Line 29... |
Line 29... |
29 |
//Auteur original :
|
29 |
//Auteur original :
|
30 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
30 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
31 |
//Autres auteurs :
|
31 |
//Autres auteurs :
|
32 |
*@author Alexandre GRANIER <alexandrel@tela-botanica.org>
|
32 |
*@author Alexandre GRANIER <alexandrel@tela-botanica.org>
|
33 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@version $Revision: 1.2 $ $Date: 2004-11-26 13:10:05 $
|
34 |
*@version $Revision: 1.3 $ $Date: 2004-12-07 12:24:30 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 80... |
Line 80... |
80 |
$ligne_contenu = $resultat->fetchRow(DB_FETCHMODE_OBJECT);
|
80 |
$ligne_contenu = $resultat->fetchRow(DB_FETCHMODE_OBJECT);
|
81 |
$contenu = $ligne_contenu->gmc_contenu;
|
81 |
$contenu = $ligne_contenu->gmc_contenu;
|
82 |
(DB::isError($resultat)) ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete)) : '';
|
82 |
(DB::isError($resultat)) ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete)) : '';
|
Line 83... |
Line 83... |
83 |
|
83 |
|
84 |
/** Inclusion de la bibliothèque Text_Wiki_Papyrus.*/
|
84 |
/** Inclusion de la bibliothèque Text_Wiki_Papyrus.*/
|
85 |
include_once AFFI_CHEMIN_BIBLIOTHEQUE_API.'text_wiki_papyrus/Papyrus.class.php';
|
85 |
include_once AFFI_CHEMIN_BIBLIOTHEQUE_API.'text/wiki_papyrus/Papyrus.class.php';
|
86 |
// Nous regardons si nous avons à faire à un texte sous format Wikini
|
86 |
// Nous regardons si nous avons à faire à un texte sous format Wikini
|
87 |
if ($ligne_contenu->gmc_ce_type_contenu == 1) {
|
87 |
if ($ligne_contenu->gmc_ce_type_contenu == 1) {
|
88 |
// Création d'un objet Text_Papyrus :
|
88 |
// Création d'un objet Text_Papyrus :
|
89 |
$papyrus =& new Text_Papyrus();
|
89 |
$papyrus =& new Text_Papyrus();
|
Line 94... |
Line 94... |
94 |
// Pour indiquer les infos sur les pages des sites à intégrer :
|
94 |
// Pour indiquer les infos sur les pages des sites à intégrer :
|
95 |
$papyrus->setRenderConf('Xhtml', 'inclure', 'sites', $GLOBALS['_AFFICHEUR']['inclure_sites']);
|
95 |
$papyrus->setRenderConf('Xhtml', 'inclure', 'sites', $GLOBALS['_AFFICHEUR']['inclure_sites']);
|
96 |
// Application des règles de Papyrus :
|
96 |
// Application des règles de Papyrus :
|
97 |
$retour = $papyrus->transform($contenu, 'Xhtml');
|
97 |
$retour = $papyrus->transform($contenu, 'Xhtml');
|
98 |
} else if ($ligne_contenu->gmc_ce_type_contenu == 2) {
|
98 |
} else if ($ligne_contenu->gmc_ce_type_contenu == 2) {
|
99 |
include_once AFFI_CHEMIN_BIBLIOTHEQUE_API.'text_wiki_wikini/Wikini.class.php';
|
99 |
include_once AFFI_CHEMIN_BIBLIOTHEQUE_API.'text/wiki_wikini/Wikini.class.php';
|
100 |
// Création d'un objet Text_Wikini :
|
100 |
// Création d'un objet Text_Wikini :
|
101 |
$wikini =& new Text_Wikini();
|
101 |
$wikini =& new Text_Wikini();
|
102 |
// Pour éviter de remplacer les caractères spéciaux du XHTML:
|
102 |
// Pour éviter de remplacer les caractères spéciaux du XHTML:
|
103 |
$wikini->setFormatConf('Xhtml', 'translate', false);
|
103 |
$wikini->setFormatConf('Xhtml', 'translate', false);
|
104 |
// Configuration de la règle Freelink :
|
104 |
// Configuration de la règle Freelink :
|
Line 137... |
Line 137... |
137 |
|
137 |
|
138 |
|
138 |
|
139 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
139 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
140 |
*
|
- |
|
141 |
* $Log: not supported by cvs2svn $
|
- |
|
142 |
* Revision 1.2 2004/11/26 13:10:05 jpm
|
140 |
*
|
143 |
* Utilisation des actions Papyrus et implémentation de la syntaxe Wikini.
|
141 |
* $Log: not supported by cvs2svn $
|
144 |
*
|
142 |
* Revision 1.1 2004/06/16 14:35:26 jpm
|
145 |
* Revision 1.1 2004/06/16 14:35:26 jpm
|
143 |
* Changement de nom de Génésia en Papyrus.
|
146 |
* Changement de nom de Génésia en Papyrus.
|
144 |
* Changement de l'arborescence.
|
147 |
* Changement de l'arborescence.
|