Image proxy relocated

This commit is contained in:
2020-12-26 17:16:43 +01:00
parent 78032e1583
commit 22e3d31acb
-12
View File
@@ -1,12 +0,0 @@
<?php
// this could have been done better but whatever
header ('Content-Type: image/png');
$file = "./black.png";
if (!empty($_GET["path"]) && file_exists($_GET["path"]) && !is_dir($_GET["path"]))
{
$file = $_GET["path"];
}
echo file_get_contents($file);