add xun search lib
This commit is contained in:
parent
e89817b550
commit
9cbbaf48f8
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue