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
1650fa8a
Commit
1650fa8a
authored
Aug 01, 2016
by
Dominik Hebeler
Browse files
Noch einen Fehler behoben
parent
2f713eac
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
1650fa8a
...
...
@@ -320,7 +320,7 @@ class MetaGer
$link
=
"https://api.smartredirect.de/api_v2/CheckForAffiliateUniversalsearchMetager.php?p="
.
$publicKey
.
"&k="
.
$hash
.
"&tld="
.
$tldList
.
"&q="
.
$query
;
$answer
=
json_decode
(
file_get_contents
(
$link
));
# Nun müssen wir nur noch die Links für die Advertiser ändern:
foreach
(
$answer
as
$el
)
...
...
@@ -337,7 +337,7 @@ class MetaGer
$result
->
image
=
"https://img.smartredirect.de/logos_v2/120x60/"
.
$hash
.
".gif"
;
# Den Link hinzufügen:
$publicKey
=
$publicKey
;
$targetUrl
=
$result
->
l
ink
;
$targetUrl
=
$result
->
anzeigeL
ink
;
if
(
strpos
(
$targetUrl
,
"http"
)
!==
0
)
$targetUrl
=
"http://"
.
$targetUrl
;
$hash
=
md5
(
$targetUrl
.
$privateKey
);
...
...
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