Subversion Repositories Applications.papyrus

Rev

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

Rev 181 Rev 269
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.3                                                                                      |
4
// | PHP version 4.3                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This file is part of Papyrus.                                                                        |
8
// | This file is part of Papyrus.                                                                        |
9
// |                                                                                                      |
9
// |                                                                                                      |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
11
// | it under the terms of the GNU General Public License as published by                                 |
11
// | it under the terms of the GNU General Public License as published by                                 |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
13
// | (at your option) any later version.                                                                  |
13
// | (at your option) any later version.                                                                  |
14
// |                                                                                                      |
14
// |                                                                                                      |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
18
// | GNU General Public License for more details.                                                         |
18
// | GNU General Public License for more details.                                                         |
19
// |                                                                                                      |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: affi_configuration.inc.php,v 1.1 2004-11-26 13:10:20 jpm Exp $
24
// CVS : $Id: affi_configuration.inc.php,v 1.2 2005-02-22 17:55:38 jpm Exp $
25
/**
25
/**
26
* Application réalisant l'affichage du contenu stocké dans Papyrus.
26
* Application réalisant l'affichage du contenu stocké dans Papyrus.
27
*
27
*
28
* Les constantes et variables de configuration de l'application Afficheur.
28
* Les constantes et variables de configuration de l'application Afficheur.
29
*
29
*
30
*@package Afficheur
30
*@package Afficheur
31
*@subpackage Configuration
31
*@subpackage Configuration
32
//Auteur original :
32
//Auteur original :
33
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
34
//Autres auteurs :
34
//Autres auteurs :
35
*@author        Aucun
35
*@author        Aucun
36
*@copyright     Tela-Botanica 2000-2004
36
*@copyright     Tela-Botanica 2000-2004
37
*@version       $Revision: 1.1 $ $Date: 2004-11-26 13:10:20 $
37
*@version       $Revision: 1.2 $ $Date: 2005-02-22 17:55:38 $
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
*/
39
*/
40
 
40
 
41
// +------------------------------------------------------------------------------------------------------+
41
// +------------------------------------------------------------------------------------------------------+
42
// |                                            ENTETE du PROGRAMME                                       |
42
// |                                            ENTETE du PROGRAMME                                       |
43
// +------------------------------------------------------------------------------------------------------+
43
// +------------------------------------------------------------------------------------------------------+
44
 
44
 
45
 
45
 
46
// +------------------------------------------------------------------------------------------------------+
46
// +------------------------------------------------------------------------------------------------------+
47
// |                                            CORPS du PROGRAMME                                        |
47
// |                                            CORPS du PROGRAMME                                        |
48
// +------------------------------------------------------------------------------------------------------+
48
// +------------------------------------------------------------------------------------------------------+
49
// Chemin des fichiers à inclure.
49
// Chemin des fichiers à inclure.
50
/** Chemin vers la bibliothèque PEAR.*/
50
/** Chemin vers la bibliothèque PEAR.*/
51
define('AFFI_CHEMIN_BIBLIOTHEQUE_PEAR', '');
51
define('AFFI_CHEMIN_BIBLIOTHEQUE_PEAR', '');
52
/** Chemin vers la bibliothèque API.*/
52
/** Chemin vers la bibliothèque API.*/
53
define('AFFI_CHEMIN_BIBLIOTHEQUE_API', GEN_CHEMIN_API);
53
define('AFFI_CHEMIN_BIBLIOTHEQUE_API', GEN_CHEMIN_API);
54
/** Chaine à utiliser pour l'URL de la règle Freelink.*/
54
/** Chaine à utiliser pour l'URL de la règle Freelink.*/
55
define('AFFI_URL_PAPYRUS', PAP_URL.'?menu=%s');
55
define('AFFI_URL_PAPYRUS', PAP_URL.'?menu=%s');
56
 
56
 
57
// L'objet PEAR::DB à utiliser pour l'afficheur :
57
// L'objet PEAR::DB à utiliser pour l'afficheur :
58
$GLOBALS['_AFFICHEUR']['objet_pear_db'] = $GLOBALS['_GEN_commun']['pear_db'];
58
$GLOBALS['_AFFICHEUR']['objet_pear_db'] = $GLOBALS['_GEN_commun']['pear_db'];
59
 
59
 
60
// L'identifiant du menu courant :
60
// L'identifiant du menu courant :
61
if (isset($GLOBALS['_GEN_commun']['traduction_info_menu'])) {
61
if (isset($GLOBALS['_GEN_commun']['traduction_info_menu'])) {
62
    $GLOBALS['_AFFICHEUR']['menu_courant_id'] = $GLOBALS['_GEN_commun']['traduction_info_menu']->gm_id_menu;
62
    $GLOBALS['_AFFICHEUR']['menu_courant_id'] = $GLOBALS['_GEN_commun']['traduction_info_menu']->gm_id_menu;
63
} else {
63
} else {
64
    $GLOBALS['_AFFICHEUR']['menu_courant_id'] = $GLOBALS['_GEN_commun']['info_menu']->gm_id_menu;
64
    $GLOBALS['_AFFICHEUR']['menu_courant_id'] = $GLOBALS['_GEN_commun']['url_menu'];
65
}
65
}
66
 
66
 
67
// Le jeu de caractère à utiliser pour la page courante :
67
// Le jeu de caractère à utiliser pour la page courante :
68
$GLOBALS['_AFFICHEUR']['jeu_de_caracteres'] = $GLOBALS['_PAPYRUS_']['page']['jeu_de_caracteres'];
68
$GLOBALS['_AFFICHEUR']['jeu_de_caracteres'] = $GLOBALS['_PAPYRUS_']['page']['jeu_de_caracteres'];
69
 
69
 
70
// Les sites correspodant aux liens interwiki:
70
// Les sites correspodant aux liens interwiki:
71
$GLOBALS['_AFFICHEUR']['interwiki_sites'] = array(
71
$GLOBALS['_AFFICHEUR']['interwiki_sites'] = array(
72
    'Papyrus'       => 'http://127.0.0.1/papyrus/papyrus.php?menu=%s',
72
    'Papyrus'       => 'http://127.0.0.1/papyrus/papyrus.php?menu=%s',
73
    'Weflore'       => 'http://wiki.tela-botanica.org/eflore/wakka.php?wiki=%s',
73
    'Weflore'       => 'http://wiki.tela-botanica.org/eflore/wakka.php?wiki=%s',
74
    'Wikipedia'     => 'http://fr.wikipedia.org/wiki/%s',
74
    'Wikipedia'     => 'http://fr.wikipedia.org/wiki/%s',
75
    'Wikipedia_fr'  => 'http://fr.wikipedia.org/wiki/%s'
75
    'Wikipedia_fr'  => 'http://fr.wikipedia.org/wiki/%s'
76
);
76
);
77
 
77
 
78
// Les sites correspodant à l'action inclure:
78
// Les sites correspodant à l'action inclure:
79
$GLOBALS['_AFFICHEUR']['inclure_sites'] = array(
79
$GLOBALS['_AFFICHEUR']['inclure_sites'] = array(
80
    'Wikipedia' => array('preg' => '/<!-- start content -->(.*)<!-- end content -->/Umsi', 'url' => 'http://fr.wikipedia.org/wiki/%s'),
80
    'Wikipedia' => array('preg' => '/<!-- start content -->(.*)<!-- end content -->/Umsi', 'url' => 'http://fr.wikipedia.org/wiki/%s'),
81
    'Wikipedia_fr' => array('preg' => '/<!-- start content -->(.*)<!-- end content -->/Umsi', 'url' => 'http://fr.wikipedia.org/wiki/%s'),
81
    'Wikipedia_fr' => array('preg' => '/<!-- start content -->(.*)<!-- end content -->/Umsi', 'url' => 'http://fr.wikipedia.org/wiki/%s'),
82
    'Wikipedia_en' => array('preg' => '/<!-- start content -->(.*)<!-- end content -->/Umsi', 'url' => 'http://en.wikipedia.org/wiki/%s'),
82
    'Wikipedia_en' => array('preg' => '/<!-- start content -->(.*)<!-- end content -->/Umsi', 'url' => 'http://en.wikipedia.org/wiki/%s'),
83
    'Wikini_eFlore' => array('preg' => '/<div class="page">(.*)<\/div>.*<div class="commentsheader">/Umsi', 'url' => 'http://wiki.tela-botanica.org/eflore/wakka.php?wiki=%s'),
83
    'Wikini_eFlore' => array('preg' => '/<div class="page">(.*)<\/div>.*<div class="commentsheader">/Umsi', 'url' => 'http://wiki.tela-botanica.org/eflore/wakka.php?wiki=%s'),
84
    'Wikini_isff' => array('preg' => '/<div class="page">(.*)<\/div>.*<div class="commentsheader">/Umsi', 'url' => 'http://wiki.tela-botanica.org/isff/wakka.php?wiki=%s')
84
    'Wikini_isff' => array('preg' => '/<div class="page">(.*)<\/div>.*<div class="commentsheader">/Umsi', 'url' => 'http://wiki.tela-botanica.org/isff/wakka.php?wiki=%s')
85
);
85
);
86
 
86
 
87
// +------------------------------------------------------------------------------------------------------+
87
// +------------------------------------------------------------------------------------------------------+
88
// |                                            PIED du PROGRAMME                                         |
88
// |                                            PIED du PROGRAMME                                         |
89
// +------------------------------------------------------------------------------------------------------+
89
// +------------------------------------------------------------------------------------------------------+
90
 
90
 
91
 
91
 
92
 
92
 
93
/* +--Fin du code ----------------------------------------------------------------------------------------+
93
/* +--Fin du code ----------------------------------------------------------------------------------------+
94
*
94
*
95
* $Log: not supported by cvs2svn $
95
* $Log: not supported by cvs2svn $
-
 
96
* Revision 1.1  2004/11/26 13:10:20  jpm
-
 
97
* Utilisation des actions Papyrus et implémentation de la syntaxe Wikini.
-
 
98
*
96
*
99
*
97
* +-- Fin du code ----------------------------------------------------------------------------------------+
100
* +-- Fin du code ----------------------------------------------------------------------------------------+
98
*/
101
*/
99
?>
102
?>