forked from lolcat/4get
remove debug print
This commit is contained in:
parent
7e893a15c1
commit
61ef956120
|
@ -437,18 +437,20 @@ class mojeek{
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
$search = $get["s"];
|
$search = $get["s"];
|
||||||
|
if(strlen($search) === 0){
|
||||||
|
|
||||||
|
throw new Exception("Search term is empty!");
|
||||||
|
}
|
||||||
|
|
||||||
|
$proxy = $this->backend->get_ip();
|
||||||
$lang = $get["lang"];
|
$lang = $get["lang"];
|
||||||
$country = $get["country"];
|
$country = $get["country"];
|
||||||
$region = $get["region"];
|
$region = $get["region"];
|
||||||
$domain = $get["domain"];
|
$domain = $get["domain"];
|
||||||
$focus = $get["focus"];
|
$focus = $get["focus"];
|
||||||
|
|
||||||
if(strlen($search) === 0){
|
|
||||||
|
|
||||||
throw new Exception("Search term is empty!");
|
|
||||||
}
|
|
||||||
|
|
||||||
$params = [
|
$params = [
|
||||||
"q" => $search,
|
"q" => $search,
|
||||||
"t" => 20, // number of results/page
|
"t" => 20, // number of results/page
|
||||||
|
@ -488,8 +490,6 @@ class mojeek{
|
||||||
$params["si"] = $domain;
|
$params["si"] = $domain;
|
||||||
}
|
}
|
||||||
|
|
||||||
$proxy = $this->backend->get_ip();
|
|
||||||
|
|
||||||
try{
|
try{
|
||||||
$html =
|
$html =
|
||||||
$this->get(
|
$this->get(
|
||||||
|
@ -1119,9 +1119,11 @@ class mojeek{
|
||||||
|
|
||||||
// parse big node information
|
// parse big node information
|
||||||
$data["author"] =
|
$data["author"] =
|
||||||
|
htmlspecialchars_decode(
|
||||||
$this->fuckhtml
|
$this->fuckhtml
|
||||||
->getTextContent(
|
->getTextContent(
|
||||||
$a[0]["innerHTML"]
|
$a[0]["innerHTML"]
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
|
|
|
@ -45,8 +45,6 @@ class wiby{
|
||||||
$url .= "?" . $get;
|
$url .= "?" . $get;
|
||||||
}
|
}
|
||||||
|
|
||||||
print_r([$proxy, $url]);
|
|
||||||
|
|
||||||
curl_setopt($curlproc, CURLOPT_URL, $url);
|
curl_setopt($curlproc, CURLOPT_URL, $url);
|
||||||
|
|
||||||
curl_setopt($curlproc, CURLOPT_ENCODING, ""); // default encoding
|
curl_setopt($curlproc, CURLOPT_ENCODING, ""); // default encoding
|
||||||
|
|
Loading…
Reference in New Issue