From fc496206f738b9d26f11149aa6d6bd71634760ac Mon Sep 17 00:00:00 2001 From: wen0750 Date: Mon, 5 May 2025 21:55:27 +0800 Subject: [PATCH 1/2] Update proxy.php --- proxy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy.php b/proxy.php index 053c6ce..b4af947 100644 --- a/proxy.php +++ b/proxy.php @@ -3,11 +3,11 @@ // Private web proxy script by Heiswayi Nrird (https://heiswayi.nrird.com) // Released under MIT license // Free Software should work like this: whatever you take for free, you must give back for free. +if (!function_exists("gzcompress")) die ("This proxy requires PHP's zlib extension. Please install/enable it on your server and try again."); +if (!function_exists("curl_init")) die ("This proxy requires PHP's cURL extension. Please install/enable it on your server and try again."); ob_start("ob_gzhandler"); -if (!function_exists("curl_init")) die ("This proxy requires PHP's cURL extension. Please install/enable it on your server and try again."); - //Adapted from http://www.php.net/manual/en/function.getallheaders.php#99814 if (!function_exists("getallheaders")) { function getallheaders() { From b92cafa63559484a47e95ef3c8df8fddaac12b2b Mon Sep 17 00:00:00 2001 From: wen0750 Date: Mon, 5 May 2025 21:56:35 +0800 Subject: [PATCH 2/2] Update proxy.php --- proxy.php | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy.php b/proxy.php index b4af947..aa4f629 100644 --- a/proxy.php +++ b/proxy.php @@ -3,6 +3,7 @@ // Private web proxy script by Heiswayi Nrird (https://heiswayi.nrird.com) // Released under MIT license // Free Software should work like this: whatever you take for free, you must give back for free. + if (!function_exists("gzcompress")) die ("This proxy requires PHP's zlib extension. Please install/enable it on your server and try again."); if (!function_exists("curl_init")) die ("This proxy requires PHP's cURL extension. Please install/enable it on your server and try again.");