Commit e0fc32ed authored by jlaval's avatar jlaval

Disable redis for test

parent e9e42d16
...@@ -37,16 +37,16 @@ if ( $_REQUEST['module']=="fsearch" ) ...@@ -37,16 +37,16 @@ if ( $_REQUEST['module']=="fsearch" )
exit(); exit();
$content = null; $content = null;
if ($site->user->is_valid() && $site->user->cotisant) { /*if ($site->user->is_valid() && $site->user->cotisant) {
require_once($topdir. "include/lib/predis/Predis.php"); require_once($topdir. "include/lib/predis/Predis.php");
$redis = new Predis_Client (); $redis = new Predis_Client ();
$content = $redis->get (strtolower ($_REQUEST["pattern"])); $content = $redis->get (strtolower ($_REQUEST["pattern"]));
} }*/
if ($content == null) { if ($content == null) {
require_once($topdir. "include/cts/fsearch.inc.php"); require_once($topdir. "include/cts/fsearch.inc.php");
$fsearch = new fsearch ( $site, false ); $fsearch = new fsearch ( $site, false );
$content = addslashes($fsearch->buffer); $content = $fsearch->buffer;
} }
echo $content; echo $content;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment