diff --git a/image_proxy.php b/image_proxy.php index 6575edf..4e9756d 100644 --- a/image_proxy.php +++ b/image_proxy.php @@ -1,21 +1,15 @@ -// basically stolen from LibreX - https://github.com/hnhx/LibreX +// somewhat stolen from github.com/hnhx/librex diff --git a/misc/tools.php b/misc/tools.php index e077189..e13f8ec 100644 --- a/misc/tools.php +++ b/misc/tools.php @@ -194,10 +194,10 @@ function request($url) { - global $config; - $ch = curl_init($url); - curl_setopt_array($ch, $config->curl_settings); +// curl_setopt_array($ch, $config->curl_settings); + curl_setopt($ch, CURLOPT_HEADER, false); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); return $response; @@ -241,4 +241,4 @@ } ?> -//basically stolen from LibreX - https://github.com/hnhx/LibreX +//basically completely stolen from LibreX - https://github.com/hnhx/LibreX