3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2007 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
13 if (!defined("_ECRIRE_INC_VERSION")) return; #securite
15 // Pas besoin de contexte de compilation
18 // http://doc.spip.org/@balise_FORMULAIRE_RECHERCHE
19 function balise_FORMULAIRE_RECHERCHE ($p)
21 return calculer_balise_dynamique($p, 'FORMULAIRE_RECHERCHE', array());
24 // http://doc.spip.org/@balise_FORMULAIRE_RECHERCHE_stat
25 function balise_FORMULAIRE_RECHERCHE_stat($args, $filtres) {
26 // Si le moteur n'est pas active, pas de balise
27 if ($GLOBALS['meta']["activer_moteur"] != "oui")
30 // filtres[0] doit etre un script (a revoir)
32 return array($filtres[0], $args[0]);
35 // http://doc.spip.org/@balise_FORMULAIRE_RECHERCHE_dyn
36 function balise_FORMULAIRE_RECHERCHE_dyn($lien, $rech) {
38 if ($GLOBALS['spip_lang'] != $GLOBALS['meta']['langue_site'])
39 $lang = $GLOBALS['spip_lang'];
43 return array('formulaires/recherche', 3600,
45 'lien' => ($lien ?
$lien : generer_url_public('recherche')),
46 'recherche' => _request('recherche'),