add xun search lib

This commit is contained in:
jack 2018-05-02 17:47:58 +08:00
parent e89817b550
commit 9cbbaf48f8
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,6 @@
<?php
require_once '/home/lijianxuan/xunsearch/sdk/php/lib/XS.php';
class Search
{
var $terms;
@ -17,8 +19,6 @@ class Search
var $base_url;
var $expanded;
//require_once '/home/wlx/xunsearch/sdk/php/lib/XS.php';
private function safe_query($search)
{
return preg_replace('/%|_|\'|\\\\/', '\\\\$0', stripslashes($search));