| 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: syndication.php,v 1.5 2007-04-20 12:50:18 florian Exp $
|
24 |
// CVS : $Id: syndication.php,v 1.6 2007-06-25 12:15:07 alexandre_tb Exp $
|
| 25 |
/**
|
25 |
/**
|
| 26 |
* papyrus_bp - syndication.php
|
26 |
* papyrus_bp - syndication.php
|
| 27 |
*
|
27 |
*
|
| 28 |
* Description :
|
28 |
* Description :
|
| 29 |
*
|
29 |
*
|
| Line 31... |
Line 31... |
| 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.5 $ $Date: 2007-04-20 12:50:18 $
|
36 |
*@version $Revision: 1.6 $ $Date: 2007-06-25 12:15:07 $
|
| 37 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
| 38 |
*/
|
38 |
*/
|
| Line 39... |
Line 39... |
| 39 |
|
39 |
|
| 40 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 44... |
Line 44... |
| 44 |
$GLOBALS['_GEN_commun']['info_applette_balise'] = '\{\{[Ss]yndication'.
|
44 |
$GLOBALS['_GEN_commun']['info_applette_balise'] = '\{\{[Ss]yndication'.
|
| 45 |
'(?:\s*'.
|
45 |
'(?:\s*'.
|
| 46 |
'(?:'.
|
46 |
'(?:'.
|
| 47 |
'(url="[^"]*")|'.
|
47 |
'(url="[^"]*")|'.
|
| 48 |
'(titre="[^"]*")|'.
|
48 |
'(titre="[^"]*")|'.
|
| 49 |
'(nb=(?:"|)\d+(?:"|))|'.
|
49 |
'(nb="?\d+"?)|'.
|
| 50 |
'(nouvellefenetre=(?:"|)(?:0|1)(?:"|))|'.
|
50 |
'(nouvellefenetre="?(?:0|1)"?)|'.
|
| 51 |
'(formatdate="[^"]*")|'.
|
51 |
'(formatdate="[^"]*")|'.
|
| 52 |
'(formatdatepro="[^"]*")|'.
|
52 |
'(formatdatepro="[^"]*")|'.
|
| 53 |
'(template="[^"]*")|'.
|
53 |
'(template=".*")|'.
|
| 54 |
')'.
|
54 |
')'.
|
| 55 |
')+'.
|
55 |
')+'.
|
| 56 |
'\s*\}\}';
|
56 |
'\s*\}\}';
|
| 57 |
// +------------------------------------------------------------------------------------------------------+
|
57 |
// +------------------------------------------------------------------------------------------------------+
|
| 58 |
/** Inclusion du fichier de configuration de cette application.*/
|
58 |
/** Inclusion du fichier de configuration de cette application.*/
|
| Line 116... |
Line 116... |
| 116 |
}
|
116 |
}
|
| 117 |
if (!isset($options['formatdate'])) {
|
117 |
if (!isset($options['formatdate'])) {
|
| 118 |
$options['formatdate'] = SYND_FORMAT_DATE;
|
118 |
$options['formatdate'] = SYND_FORMAT_DATE;
|
| 119 |
}
|
119 |
}
|
| 120 |
if (!isset($options['formatdatepro'])) {
|
120 |
if (!isset($options['formatdatepro'])) {
|
| 121 |
$options['formatdatepro'] = SYND_FORMAT_DATE;
|
121 |
$options['formatdatepro'] = false;
|
| 122 |
}
|
122 |
}
|
| 123 |
if (!isset($options['template'])) {
|
123 |
if (!isset($options['template'])) {
|
| 124 |
$options['template'] = SYND_CHEMIN_SQUELETTE.SYND_SQUELETTE_LISTE;
|
124 |
$options['template'] = SYND_CHEMIN_SQUELETTE.SYND_SQUELETTE_LISTE;
|
| 125 |
} else {
|
125 |
} else {
|
| 126 |
if (file_exists(SYND_CHEMIN_SQUELETTE.$options['template'])) {
|
126 |
if (file_exists(SYND_CHEMIN_SQUELETTE.$options['template'])) {
|
| Line 280... |
Line 280... |
| 280 |
}
|
280 |
}
|
| Line 281... |
Line 281... |
| 281 |
|
281 |
|
| 282 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
282 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| 283 |
*
|
283 |
*
|
| - |
|
284 |
* $Log: not supported by cvs2svn $
|
| - |
|
285 |
* Revision 1.5.2.1 2007-06-06 15:24:37 jp_milcent
|
| - |
|
286 |
* Amélioration de la compatibilité avec les anciennes version des balises de l'applette syndication.
|
| - |
|
287 |
*
|
| - |
|
288 |
* Revision 1.5 2007-04-20 12:50:18 florian
|
| - |
|
289 |
* correction bugs suite au merge
|
| 284 |
* $Log: not supported by cvs2svn $
|
290 |
*
|
| 285 |
* Revision 1.4 2007/03/28 15:53:27 florian
|
291 |
* Revision 1.4 2007/03/28 15:53:27 florian
|
| 286 |
* correction pb date, encodage utf-8
|
292 |
* correction pb date, encodage utf-8
|
| 287 |
*
|
293 |
*
|
| 288 |
* Revision 1.3 2007/01/23 14:17:19 alexandre_tb
|
294 |
* Revision 1.3 2007/01/23 14:17:19 alexandre_tb
|