Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1932 → Rev 1933

/trunk/papyrus/applettes/moteur_recherche/moteur_recherche.php
21,7 → 21,7
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: moteur_recherche.php,v 1.23 2008-08-26 15:31:16 alexandre_tb Exp $
// CVS : $Id: moteur_recherche.php,v 1.24 2008-10-21 15:24:50 aperonnet Exp $
/**
* Applette : moteur de recherche
*
38,7 → 38,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.23 $ $Date: 2008-08-26 15:31:16 $
*@version $Revision: 1.24 $ $Date: 2008-10-21 15:24:50 $
// +------------------------------------------------------------------------------------------------------+
*/
 
58,6 → 58,8
require_once GEN_CHEMIN_APPLETTE.'moteur_recherche/configuration/more_config_spip.inc.php';
/** Inclusion du fichier de configuration de l appli projet.*/
require_once GEN_CHEMIN_APPLETTE.'moteur_recherche/configuration/more_config_projet.inc.php';
/** Inclusion du fichier de configuration de l appli bazar.*/
require_once GEN_CHEMIN_APPLETTE.'moteur_recherche/configuration/more_config_bazar.inc.php';
 
// Inclusion des fichiers de traduction de l'appli ADME de Papyrus
if (file_exists(MORE_CHEMIN_LANGUE.'more_langue_'.$GLOBALS['_GEN_commun']['i18n'].'.inc.php')) {
146,13 → 148,17
require_once MORE_CHEMIN_BIBLIO.'more_recherche_spip_article.class.php';
/** Inclusion de la classe Recherche_Projet.*/
require_once MORE_CHEMIN_BIBLIO.'more_recherche_projet.class.php';
/** inclusion de la classe Recheche Bazar. */
require_once MORE_CHEMIN_BIBLIO.'more_recherche_bazar.class.php';
$moteur = new More_Recherche($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
$recherche_papyrus_menu = new More_Recherche_Papyrus_Menu($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
$recherche_spip_article = new More_Recherche_Spip_Article($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
$recherche_projet = new More_Recherche_Projet($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
$recherche_bazar = new More_Recherche_Bazar($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
$moteur->ajouterRecherche($recherche_papyrus_menu);
$moteur->ajouterRecherche($recherche_spip_article);
$moteur->ajouterRecherche($recherche_projet);
$moteur->ajouterRecherche($recherche_bazar);
$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'] = $moteur->rechercherMotif();
//$GLOBALS['_DEBOGAGE_'] = '<pre>'.print_r($GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'], true).'</pre>';
$nbre_pages = count($GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats']);
216,6 → 222,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.23 2008-08-26 15:31:16 alexandre_tb
* ajout du moteur de recherche dans l'appli projet
*
* Revision 1.22 2007-11-30 14:02:48 alexandre_tb
* Fusion avec la livraison
*