inital commit

This commit is contained in:
2023-09-22 18:08:37 -04:00
commit 472092fe43
13 changed files with 1714 additions and 0 deletions

19
proxy.php Normal file
View File

@ -0,0 +1,19 @@
<?php
include "misc/curlproxy.php";
$proxy = new proxy();
if (!isset($_GET["i"])) {
header("X-Error: No URL(i) provided!");
$proxy->do404();
die();
}
try {
if (!isset($_GET["s"]) || $_GET["s"] == "original") {
$proxy->stream_linear_image($_GET["i"]);
}
} catch (Exception $error) {
header("X-Error: " . $error->getMessage());
$proxy->do404();
die();
}
?>