Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
86b2ea16
Commit
86b2ea16
authored
Jul 11, 2016
by
Dominik Hebeler
Browse files
Dmoz wieder eingebaut
parent
900ca2b7
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Models/parserSkripte/Dmoznebel.php
View file @
86b2ea16
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment