diff --git a/.gitattributes b/.gitattributes index 80ff1565e2230dd61de8ad709f4677646cd92c09..63b764a2347df8410691e5484684887fb1f6450e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -13,6 +13,7 @@ dist/formulaires/logo_auteur.html -text dist/formulaires/oubli/charger.php -text dist/formulaires/oubli/modifier.php -text dist/formulaires/oubli/valider.php -text +dist/formulaires/recherche/charger.php -text dist/icones_barre/agrave-maj.png -text dist/icones_barre/blanc.png -text dist/icones_barre/eacute-maj.png -text diff --git a/dist/formulaires/recherche/charger.php b/dist/formulaires/recherche/charger.php new file mode 100644 index 0000000000000000000000000000000000000000..2376bce2e302d3c3b7eed366ca0c271060fc8189 --- /dev/null +++ b/dist/formulaires/recherche/charger.php @@ -0,0 +1,31 @@ +<?php + +/***************************************************************************\ + * SPIP, Systeme de publication pour l'internet * + * * + * Copyright (c) 2001-2008 * + * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * + * * + * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * + * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * +\***************************************************************************/ + +if (!defined("_ECRIRE_INC_VERSION")) return; + +// chargement des valeurs par defaut des champs du formulaire +function formulaires_recherche_charger_dist($lien_filtre = NULL,$lien_arg = NULL){ + $lien = $lien_filtre ? $lien_filtre : $lien_arg; + if ($GLOBALS['spip_lang'] != $GLOBALS['meta']['langue_site']) + $lang = $GLOBALS['spip_lang']; + else + $lang=''; + + return + array( + 'lien' => ($lien ? $lien : generer_url_public('recherche')), + 'recherche' => _request('recherche'), + 'lang' => $lang + ); +} + +?> \ No newline at end of file