| Line 1... |
Line 1... |
| 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 5.1 |
|
4 |
// | PHP version 5.1 |
|
| 5 |
// +------------------------------------------------------------------------------------------------------+
|
5 |
// +------------------------------------------------------------------------------------------------------+
|
| 6 |
// | Copyright (C) 1999-2006 Tela Botanica (accueil@tela-botanica.org) |
|
6 |
// | Copyright (C) 1999-2006 Tela Botanica (accueil@tela-botanica.org) |
|
| 7 |
// +------------------------------------------------------------------------------------------------------+
|
7 |
// +------------------------------------------------------------------------------------------------------+
|
| 8 |
// | This file is part of papyrus_bp. |
|
8 |
// | This file is part of papyrus_bp. |
|
| 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: synd_configuration.inc.php,v 1.2 2008-10-29 15:54:40 alexandre_tb Exp $
|
24 |
// CVS : $Id: synd_configuration.inc.php,v 1.2 2008-10-29 15:54:40 alexandre_tb Exp $
|
| 25 |
/**
|
25 |
/**
|
| 26 |
* papyrus_bp - synd_configuration.inc.php
|
26 |
* papyrus_bp - synd_configuration.inc.php
|
| 27 |
*
|
27 |
*
|
| 28 |
* Description :
|
28 |
* Description :
|
| 29 |
*
|
29 |
*
|
| 30 |
*@package papyrus_bp
|
30 |
*@package papyrus_bp
|
| 31 |
//Auteur original :
|
31 |
//Auteur original :
|
| 32 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
32 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
| 33 |
//Autres auteurs :
|
33 |
//Autres auteurs :
|
| 34 |
*@author Aucun
|
34 |
*@author Aucun
|
| 35 |
*@copyright Tela-Botanica 1999-2006
|
35 |
*@copyright Tela-Botanica 1999-2006
|
| 36 |
*@version $Revision: 1.2 $ $Date: 2008-10-29 15:54:40 $
|
36 |
*@version $Revision: 1.2 $ $Date: 2008-10-29 15:54:40 $
|
| 37 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
| 38 |
*/
|
38 |
*/
|
| 39 |
|
39 |
|
| 40 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
| 41 |
// | ENTÊTE du PROGRAMME |
|
41 |
// | ENTÊTE du PROGRAMME |
|
| 42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
| 43 |
$GLOBALS['_SYNDICATION_'] = array();
|
43 |
$GLOBALS['_SYNDICATION_'] = array();
|
| 44 |
|
44 |
|
| 45 |
// +------------------------------------------------------------------------------------------------------+
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
| 46 |
// | CORPS du PROGRAMME |
|
46 |
// | CORPS du PROGRAMME |
|
| 47 |
// +------------------------------------------------------------------------------------------------------+
|
47 |
// +------------------------------------------------------------------------------------------------------+
|
| 48 |
/** Constante stockant la valeur de la langue par défaut pour l'applette SYND.*/
|
48 |
/** Constante stockant la valeur de la langue par défaut pour l'applette SYND.*/
|
| 49 |
define('SYND_I18N_DEFAUT', GEN_I18N_ID_DEFAUT);
|
49 |
define('SYND_I18N_DEFAUT', GEN_I18N_ID_DEFAUT);
|
| 50 |
|
50 |
|
| 51 |
// Paramétrage de la bibliothèque de manipulation des flux RSS
|
51 |
// Paramétrage de la bibliothèque de manipulation des flux RSS
|
| 52 |
/** Constante stockant le chemin vers la bibliothèque MAGPIERSS.*/
|
52 |
/** Constante stockant le chemin vers la bibliothèque MAGPIERSS.*/
|
| 53 |
define('MAGPIE_DIR', GEN_CHEMIN_API.'syndication_rss/magpierss/');
|
53 |
define('MAGPIE_DIR', GEN_CHEMIN_API.'syndication_rss/magpierss/');
|
| 54 |
/** Constante stockant le nombre de page syndiqués à afficher par site.*/
|
54 |
/** Constante stockant le nombre de page syndiqués à afficher par site.*/
|
| 55 |
define('SYND_NOMBRE', 10);
|
55 |
define('SYND_NOMBRE', 10);
|
| 56 |
|
56 |
|
| 57 |
/** Constante stockant le chemin vers le dossier de cache pour MAGPIERSS.*/
|
57 |
/** Constante stockant le chemin vers le dossier de cache pour MAGPIERSS.*/
|
| 58 |
define('CACHE_DIR', PAP_CHEMIN_RACINE.'/tmp');
|
58 |
define('CACHE_DIR', PAP_CHEMIN_RACINE.'tmp/syndication_cache');
|
| 59 |
/** Constante stockant la durée de vie d'un fichier de cache **/
|
59 |
/** Constante stockant la durée de vie d'un fichier de cache **/
|
| 60 |
define('CACHE_LIFETIME', 24*60*60);
|
60 |
define('CACHE_LIFETIME', 24*60*60);
|
| 61 |
/** Constante stockant si oui ou non on ouvre une nouvelle fenêtre pour consulter la page d'un site syndiqué.*/
|
61 |
/** Constante stockant si oui ou non on ouvre une nouvelle fenêtre pour consulter la page d'un site syndiqué.*/
|
| 62 |
define('SYND_OUVRIR_LIEN_RSS_NOUVELLE_FENETRE', 1);
|
62 |
define('SYND_OUVRIR_LIEN_RSS_NOUVELLE_FENETRE', 1);
|
| 63 |
/** Constante stockant le format des dates.*/
|
63 |
/** Constante stockant le format des dates.*/
|
| 64 |
define('SYND_FORMAT_DATE', 'jma');
|
64 |
define('SYND_FORMAT_DATE', 'jma');
|
| 65 |
|
65 |
|
| 66 |
// Chemin vers les dossiers de l'applette
|
66 |
// Chemin vers les dossiers de l'applette
|
| 67 |
/** Chemin vers l'applette Syndication de Papyrus.*/
|
67 |
/** Chemin vers l'applette Syndication de Papyrus.*/
|
| 68 |
define('SYND_CHEMIN_APPLETTE', GEN_CHEMIN_APPLETTE.'syndication'.GEN_SEP);
|
68 |
define('SYND_CHEMIN_APPLETTE', GEN_CHEMIN_APPLETTE.'syndication'.GEN_SEP);
|
| 69 |
/** Chemin vers les fichiers de traduction de l'applette Syndication de Papyrus.*/
|
69 |
/** Chemin vers les fichiers de traduction de l'applette Syndication de Papyrus.*/
|
| 70 |
define('SYND_CHEMIN_LANGUE', SYND_CHEMIN_APPLETTE.'langues'.GEN_SEP);
|
70 |
define('SYND_CHEMIN_LANGUE', SYND_CHEMIN_APPLETTE.'langues'.GEN_SEP);
|
| 71 |
/** Chemin vers les fichiers squelettes de l'applette Syndication de Papyrus.*/
|
71 |
/** Chemin vers les fichiers squelettes de l'applette Syndication de Papyrus.*/
|
| 72 |
define('SYND_CHEMIN_SQUELETTE', SYND_CHEMIN_APPLETTE.'squelettes'.GEN_SEP);
|
72 |
define('SYND_CHEMIN_SQUELETTE', SYND_CHEMIN_APPLETTE.'squelettes'.GEN_SEP);
|
| 73 |
|
73 |
|
| 74 |
// Configuration du rendu
|
74 |
// Configuration du rendu
|
| 75 |
/** Nom du fichier de squelette, par défaut, à utiliser pour la liste des pages.*/
|
75 |
/** Nom du fichier de squelette, par défaut, à utiliser pour la liste des pages.*/
|
| 76 |
define('SYND_SQUELETTE_LISTE', 'synd_liste.tpl.html');
|
76 |
define('SYND_SQUELETTE_LISTE', 'synd_liste.tpl.html');
|
| 77 |
|
77 |
|
| 78 |
$GLOBALS['jours'] = array (1 => 'lundi', 2 => 'mardi', 3 => 'mercredi', 4 => 'jeudi', 5 => 'vendredi',
|
78 |
$GLOBALS['jours'] = array (1 => 'lundi', 2 => 'mardi', 3 => 'mercredi', 4 => 'jeudi', 5 => 'vendredi',
|
| 79 |
6 => 'samedi', 0 => 'dimanche') ;
|
79 |
6 => 'samedi', 0 => 'dimanche') ;
|
| 80 |
$GLOBALS['mois'] = array (1 => 'janvier', 2 => 'février', 3 => 'mars', 4 => 'avril', 5 => 'mai', 6 => 'juin',
|
80 |
$GLOBALS['mois'] = array (1 => 'janvier', 2 => 'février', 3 => 'mars', 4 => 'avril', 5 => 'mai', 6 => 'juin',
|
| 81 |
7 => 'juillet', 8 => 'août', 9 => 'septembre', 10 => 'octobre', 11 =>'novembre',
|
81 |
7 => 'juillet', 8 => 'août', 9 => 'septembre', 10 => 'octobre', 11 =>'novembre',
|
| 82 |
12 => 'décembre') ;
|
82 |
12 => 'décembre') ;
|
| 83 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
83 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| 84 |
*
|
84 |
*
|
| 85 |
* $Log: not supported by cvs2svn $
|
85 |
* $Log: not supported by cvs2svn $
|
| 86 |
* Revision 1.1 2006-12-13 17:06:36 jp_milcent
|
86 |
* Revision 1.1 2006-12-13 17:06:36 jp_milcent
|
| 87 |
* Ajout de l'applette Syndication.
|
87 |
* Ajout de l'applette Syndication.
|
| 88 |
*
|
88 |
*
|
| 89 |
*
|
89 |
*
|
| 90 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
90 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
| 91 |
*/
|
91 |
*/
|
| 92 |
?>
|
92 |
?>
|