151,14 → 151,25 |
/** 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']); |
$moteur->ajouterRecherche($recherche_papyrus_menu); |
|
if (!empty($GLOBALS['_MOTEUR_RECHERCHE_']['spip'])) { |
$recherche_spip_article = new More_Recherche_Spip_Article($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']); |
$moteur->ajouterRecherche($recherche_spip_article); |
} |
|
if (!empty($GLOBALS['_MOTEUR_RECHERCHE_']['bazar'][0])) { |
$recherche_bazar = new More_Recherche_Bazar($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']); |
$moteur->ajouterRecherche($recherche_bazar); |
} |
|
if ($GLOBALS['_MOTEUR_RECHERCHE_']['projet']['url']!="") { |
$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']); |