Line 19... |
Line 19... |
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.4 2005-02-23 18:16:49 jpm Exp $
|
24 |
// CVS : $Id: affi_configuration.inc.php,v 1.5 2005-04-21 16:46:21 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 |
*
|
Line 32... |
Line 32... |
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.4 $ $Date: 2005-02-23 18:16:49 $
|
37 |
*@version $Revision: 1.5 $ $Date: 2005-04-21 16:46:21 $
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
*/
|
39 |
*/
|
Line 40... |
Line 40... |
40 |
|
40 |
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
Line 53... |
Line 53... |
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');
|
Line 56... |
Line 56... |
56 |
|
56 |
|
57 |
// L'objet PEAR::DB à utiliser pour l'afficheur :
|
57 |
// L'objet PEAR::DB à utiliser pour l'afficheur :
|
Line 58... |
Line 58... |
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'])) {
|
Line 68... |
Line 68... |
68 |
|
68 |
|
69 |
// Le jeu de caractère à utiliser pour la page courante :
|
69 |
// Le jeu de caractère à utiliser pour la page courante :
|
Line 70... |
Line 70... |
70 |
$GLOBALS['_AFFICHEUR']['jeu_de_caracteres'] = $GLOBALS['_PAPYRUS_']['page']['jeu_de_caracteres'];
|
70 |
$GLOBALS['_AFFICHEUR']['jeu_de_caracteres'] = $GLOBALS['_PAPYRUS_']['page']['jeu_de_caracteres'];
|
71 |
|
71 |
|
72 |
// Les sites correspodant aux liens interwiki:
|
- |
|
73 |
$GLOBALS['_AFFICHEUR']['interwiki_sites'] = array(
|
- |
|
74 |
'Papyrus' => 'http://'.$_SERVER['HTTP_HOST'].'/'.$_SERVER['PHP_SELF'].'?menu=%s',
|
- |
|
75 |
'Weflore' => 'http://wiki.tela-botanica.org/eflore/wakka.php?wiki=%s',
|
- |
|
76 |
'Wikipedia' => 'http://fr.wikipedia.org/wiki/%s',
|
- |
|
Line 77... |
Line 72... |
77 |
'Wikipedia_fr' => 'http://fr.wikipedia.org/wiki/%s'
|
72 |
// Les sites correspodant aux liens interwiki:
|
78 |
);
|
73 |
$GLOBALS['_AFFICHEUR']['interwiki_sites'] =& $GLOBALS['_PAPYRUS_']['interwiki_sites'];
|
79 |
|
- |
|
80 |
// Les sites correspodant à l'action inclure:
|
- |
|
81 |
$GLOBALS['_AFFICHEUR']['inclure_sites'] = array(
|
- |
|
82 |
'Papyrus' => array('preg' => '/<!-- start contenu -->(.*)<!-- end contenu -->/Umsi', 'url' => 'http://'.$_SERVER['HTTP_HOST'].'/'.$_SERVER['PHP_SELF'].'?menu=%s'),
|
- |
|
83 |
'Wikipedia' => array('preg' => '/<!-- start content -->(.*)<!-- end content -->/Umsi', 'url' => 'http://fr.wikipedia.org/wiki/%s'),
|
- |
|
84 |
'Wikipedia_fr' => array('preg' => '/<!-- start content -->(.*)<!-- end content -->/Umsi', 'url' => 'http://fr.wikipedia.org/wiki/%s'),
|
- |
|
85 |
'Wikipedia_en' => array('preg' => '/<!-- start content -->(.*)<!-- end content -->/Umsi', 'url' => 'http://en.wikipedia.org/wiki/%s'),
|
- |
|
Line 86... |
Line 74... |
86 |
'Wikini_eFlore' => array('preg' => '/<div class="page">(.*)<\/div>.*<div class="commentsheader">/Umsi', 'url' => 'http://wiki.tela-botanica.org/eflore/wakka.php?wiki=%s'),
|
74 |
|
87 |
'Wikini_isff' => array('preg' => '/<div class="page">(.*)<\/div>.*<div class="commentsheader">/Umsi', 'url' => 'http://wiki.tela-botanica.org/isff/wakka.php?wiki=%s')
|
75 |
// Les sites correspodant à l'action inclure:
|
88 |
);
|
76 |
$GLOBALS['_AFFICHEUR']['inclure_sites'] =& $GLOBALS['_PAPYRUS_']['inclure_sites'];
|
Line 89... |
Line 77... |
89 |
|
77 |
|
90 |
// +------------------------------------------------------------------------------------------------------+
|
78 |
// +------------------------------------------------------------------------------------------------------+
|
91 |
// | PIED du PROGRAMME |
|
79 |
// | PIED du PROGRAMME |
|
- |
|
80 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
81 |
|
- |
|
82 |
|
92 |
// +------------------------------------------------------------------------------------------------------+
|
83 |
|
93 |
|
84 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
94 |
|
85 |
*
|
95 |
|
86 |
* $Log: not supported by cvs2svn $
|
96 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
87 |
* Revision 1.4 2005/02/23 18:16:49 jpm
|