Subversion Repositories Applications.papyrus

Rev

Rev 2119 | Rev 2121 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2119 Rev 2120
Line 209... Line 209...
209
 
209
 
210
		$sphinx_connect = FALSE;
210
		$sphinx_connect = FALSE;
211
		if(USE_SPHINX && $sphinx) {
211
		if(USE_SPHINX && $sphinx) {
212
			require_once("moteur_recherche_sphinx.php");
212
			require_once("moteur_recherche_sphinx.php");
213
			$sphinx_connect = @mysql_connect(SPHINX_DSN, NULL, NULL, TRUE);
213
			$sphinx_connect = @mysql_connect(SPHINX_DSN, NULL, NULL, TRUE);
214
			error_log("sphinx: can't connect to " . SPHINX_DSN . ", traditionnal SQL fallback [moteur_recherche.php]");
214
			if(!$sphinx_connect) error_log("sphinx: can't connect to " . SPHINX_DSN . ", traditionnal SQL fallback [moteur_recherche.php]");
215
		}
215
		}
216
		if(!$sphinx_connect) {
216
		if(!$sphinx_connect) {
217
			// recherche traditionnelle
217
			// recherche traditionnelle
218
			$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'] = $moteur->rechercherMotif();
218
			$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'] = $moteur->rechercherMotif();