Subversion Repositories Sites.tela-botanica.org

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 david 1
<?php
2
 
3
if (!defined("_ECRIRE_INC_VERSION")) return;	#securite
4
 
5
// Pas besoin de contexte de compilation
6
global $balise_FORMULAIRE_RECHERCHE_collecte;
7
$balise_FORMULAIRE_RECHERCHE_collecte = array();
8
 
9
function balise_FORMULAIRE_RECHERCHE_stat($args, $filtres) {
10
	// Si le moteur n'est pas active, pas de balise
11
	if (lire_meta("activer_moteur") != "oui")
12
		return '';
13
 
14
	// Seul un lien [(#FORMULAIRE_RECHERCHE|xxx.php3)] nous interesse
15
	else
16
	  return array($filtres[0], $args[0]);
17
}
18
 
19
function balise_FORMULAIRE_RECHERCHE_dyn($lien, $rech) {
20
	include_ecrire('inc_filtres.php3');
21
	if (!$recherche_securisee = entites_html(_request('recherche'))) {
22
	  if (!$recherche_securisee = entites_html($rech)) {
23
		$recherche_securisee = _T('info_rechercher');
24
	  }
25
	}
26
	if (!$lien)
27
		$lien = 'recherche.php3';	# par defaut
28
 
29
	return array('formulaire_recherche', 3600,
30
		array(
31
			'lien' => $lien,
32
			'recherche_securisee' => $recherche_securisee
33
		));
34
}
35
 
36
?>