Skip to content
Snippets Groups Projects
Commit d95a9ec5 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Noch einen Fehler behoben

parent efbaf9a4
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
...@@ -320,7 +320,7 @@ class MetaGer ...@@ -320,7 +320,7 @@ class MetaGer
$link = "https://api.smartredirect.de/api_v2/CheckForAffiliateUniversalsearchMetager.php?p=" . $publicKey . "&k=" . $hash . "&tld=" . $tldList . "&q=" . $query; $link = "https://api.smartredirect.de/api_v2/CheckForAffiliateUniversalsearchMetager.php?p=" . $publicKey . "&k=" . $hash . "&tld=" . $tldList . "&q=" . $query;
$answer = json_decode(file_get_contents($link)); $answer = json_decode(file_get_contents($link));
# Nun müssen wir nur noch die Links für die Advertiser ändern: # Nun müssen wir nur noch die Links für die Advertiser ändern:
foreach($answer as $el) foreach($answer as $el)
...@@ -337,7 +337,7 @@ class MetaGer ...@@ -337,7 +337,7 @@ class MetaGer
$result->image = "https://img.smartredirect.de/logos_v2/120x60/" . $hash . ".gif"; $result->image = "https://img.smartredirect.de/logos_v2/120x60/" . $hash . ".gif";
# Den Link hinzufügen: # Den Link hinzufügen:
$publicKey = $publicKey; $publicKey = $publicKey;
$targetUrl = $result->link; $targetUrl = $result->anzeigeLink;
if(strpos($targetUrl, "http") !== 0) if(strpos($targetUrl, "http") !== 0)
$targetUrl = "http://" . $targetUrl; $targetUrl = "http://" . $targetUrl;
$hash = md5($targetUrl . $privateKey); $hash = md5($targetUrl . $privateKey);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment