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

Update Result.php

parent 9423451f
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
...@@ -315,7 +315,15 @@ class Result ...@@ -315,7 +315,15 @@ class Result
if (!$link) { if (!$link) {
return ""; return "";
} }
# Link to our new Proxy software:
$pw = md5(env('PROXY_PASSWORD') . $link);
$proxyUrl = base64_encode(str_rot13($link));
$proxyUrl = urlencode(str_replace("/", "<<SLASH>>", $proxyUrl));
return "https://proxy.suma-ev.de/" . $pw . "/" . $proxyUrl;
/*
$tmp = $link; $tmp = $link;
$tmp = preg_replace("/\r?\n$/s", "", $tmp); $tmp = preg_replace("/\r?\n$/s", "", $tmp);
$tmp = str_replace("=", "=3d", $tmp); $tmp = str_replace("=", "=3d", $tmp);
...@@ -326,7 +334,7 @@ class Result ...@@ -326,7 +334,7 @@ class Result
$tmp = preg_replace("#^([\w+.-]+)://#s", "$1/", $tmp); $tmp = preg_replace("#^([\w+.-]+)://#s", "$1/", $tmp);
$tmp = str_replace("//", "/=2f", $tmp); $tmp = str_replace("//", "/=2f", $tmp);
return "https://proxy.suma-ev.de/mger/nph-proxy.cgi/en/w0/" . $tmp; return "https://proxy.suma-ev.de/mger/nph-proxy.cgi/en/w0/" . $tmp;
*/
} }
/* Liest aus einer URL alle Informationen aus /* Liest aus einer URL alle Informationen aus
......
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