Commit 86b2ea16 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Dmoz wieder eingebaut

parent 900ca2b7
......@@ -15,22 +15,32 @@ class Dmoznebel extends Searchengine
public function loadResults ($result)
{
$title = "";
$link = "";
$anzeigeLink = $link;
$descr = "";
$result = mb_convert_encoding($result, "UTF-8", "ISO-8859-1");
$results = trim($result);
foreach( explode("\n", $results) as $result )
{
$res = explode("|", $result);
if(sizeof($res) < 3)
{
continue;
}
$title = $res[1];
$link = $res[2];
$anzeigeLink = $link;
$descr = $res[3];
die($result);
$this->counter++;
$this->results[] = new \App\Models\Result(
$this->engine,
$title,
$link,
$anzeigeLink,
$descr,
$this->gefVon,
$this->counter
);
}
$this->counter++;
$this->results[] = new \App\Models\Result(
$this->engine,
$title,
$link,
$anzeigeLink,
$descr,
$this->gefVon,
$this->counter
);
}
}
\ No newline at end of file
Supports Markdown
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