inital commit
This commit is contained in:
commit
472092fe43
13 changed files with 1714 additions and 0 deletions
19
proxy.php
Normal file
19
proxy.php
Normal 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();
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue