From e2ffbb06d62e8c656adc6971df52ceccf303f80b Mon Sep 17 00:00:00 2001 From: octt <6083316-octospacc@users.noreply.gitlab.com> Date: Tue, 20 May 2025 01:31:42 +0200 Subject: [PATCH] Replace Proxatore.php --- Proxatore.php | 79 ++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 69 insertions(+), 10 deletions(-) diff --git a/Proxatore.php b/Proxatore.php index 24fb59e..d4b176a 100644 --- a/Proxatore.php +++ b/Proxatore.php @@ -183,6 +183,10 @@ function parseAbsoluteUrl(string $str) { } } +function makeSelfUrl(string $str=''): string { + return $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['SERVER_NAME'] . SCRIPT_NAME . $str; +} + function redirectTo($url): void { if (!($absolute = parseAbsoluteUrl($url)) && !readProxatoreBool('history') /* && !(str_contains($url, '?proxatore-history=false') || str_contains($url, '&proxatore-history=false')) */) { parse_str(parse_url($url, PHP_URL_QUERY), $params); @@ -590,7 +594,7 @@ function iframeHtml($result): void { ?> ➡️ Next - +
@@ -1047,11 +1053,11 @@ ul.platforms a {

-

- +

+ Original on / - > + >

@@ -1061,5 +1067,58 @@ ul.platforms a { + - + \ No newline at end of file