Subversion Repositories Applications.papyrus

Rev

Rev 1142 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1142 Rev 1151
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: mot_cles.php,v 1.1 2006-12-12 13:32:27 jp_milcent Exp $
24
// CVS : $Id: mot_cles.php,v 1.2 2006-12-12 17:17:12 jp_milcent Exp $
25
/**
25
/**
26
* papyrus_bp - mot_cles.php
26
* papyrus_bp - mot_cles.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.1 $ $Date: 2006-12-12 13:32:27 $
36
*@version       $Revision: 1.2 $ $Date: 2006-12-12 17:17:12 $
37
// +------------------------------------------------------------------------------------------------------+
37
// +------------------------------------------------------------------------------------------------------+
38
*/
38
*/
Line 39... Line 39...
39
 
39
 
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
41
// |                                            ENTÊTE du PROGRAMME                                       |
41
// |                                            ENTÊTE du PROGRAMME                                       |
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
43
$GLOBALS['_GEN_commun']['info_applette_nom_fonction'] = 'afficherMotCles';
43
$GLOBALS['_GEN_commun']['info_applette_nom_fonction'] = 'afficherMotCles';
-
 
44
$GLOBALS['_GEN_commun']['info_applette_balise'] = 	'\{\{[Mm]otCles'.
-
 
45
													'(?:\s*'.
-
 
46
														'(?:'.
-
 
47
															'(mots="[^"]+")|'.
-
 
48
															'(categorie="[^"]+")|'.
-
 
49
															'(condition="(?i:et|ou)")|'.
-
 
50
															'(mots_condition="(?i:et|ou)")|'.
-
 
51
															'(categorie_condition="(?i:et|ou)")|'.
-
 
52
															'(ordre="(?i:asc|desc)")|'.
-
 
53
														')'.
-
 
54
													')+'.
Line 44... Line 55...
44
$GLOBALS['_GEN_commun']['info_applette_balise'] = '\{\{[Mm]otCles(?:\s*(?:((?:mots|categorie)="[^"]+")|((?:condition|mots_condition|categorie_condition)="(?i:et|ou)")|(ordre="(?i:asc|desc)")|))+\s*\}\}';
55
													'\s*\}\}';
45
 
56
 
46
// --------------------------------------------------------------------------------------------------------
57
// --------------------------------------------------------------------------------------------------------
Line 71... Line 82...
71
{
82
{
72
	// Initialisation des variables
83
	// Initialisation des variables
73
    $sortie = '';
84
    $sortie = '';
74
	$GLOBALS['_MOT_CLES_']['erreurs'] = array();
85
	$GLOBALS['_MOT_CLES_']['erreurs'] = array();
75
	$GLOBALS['_MOT_CLES_']['informations'] = array();
86
	$GLOBALS['_MOT_CLES_']['informations'] = array();
-
 
87
	$GLOBALS['_MOT_CLES_']['pages'] = array();
Line 76... Line 88...
76
	
88
	
77
	//+----------------------------------------------------------------------------------------------------------------+
89
	//+----------------------------------------------------------------------------------------------------------------+
78
	// Gestion des arguments
90
	// Gestion des arguments
79
	$balise = $tab_applette_arguments[0];
91
	$balise = $tab_applette_arguments[0];
80
    $tab_arguments = $tab_applette_arguments;
92
    $tab_arguments = $tab_applette_arguments;
81
	unset($tab_arguments[0]);
93
	unset($tab_arguments[0]);
-
 
94
    foreach($tab_arguments as $argument) {
82
    foreach($tab_arguments as $argument) {
95
    	if ($argument != '') {
83
	    $tab_parametres = explode('=', $argument);
96
	    	$tab_parametres = explode('=', $argument);
-
 
97
	    	$options[$tab_parametres[0]] = trim($tab_parametres[1], '"');
84
	    $options[$tab_parametres[0]] = trim($tab_parametres[1], '"'); 
98
    	}
Line 85... Line 99...
85
    }
99
    }
86
	
100
	
87
	//+----------------------------------------------------------------------------------------------------------------+
101
	//+----------------------------------------------------------------------------------------------------------------+
Line 244... Line 258...
244
}
258
}
Line 245... Line 259...
245
 
259
 
246
/* +--Fin du code ----------------------------------------------------------------------------------------+
260
/* +--Fin du code ----------------------------------------------------------------------------------------+
247
*
261
*
-
 
262
* $Log: not supported by cvs2svn $
-
 
263
* Revision 1.1  2006/12/12 13:32:27  jp_milcent
-
 
264
* Ajout de l'applette MotCles.
248
* $Log: not supported by cvs2svn $
265
*
249
*
266
*
250
* +-- Fin du code ----------------------------------------------------------------------------------------+
267
* +-- Fin du code ----------------------------------------------------------------------------------------+
251
*/
268
*/