2023-02-14 15:02:08 +00:00
|
|
|
<?php
|
|
|
|
|
|
2023-02-16 14:51:28 +00:00
|
|
|
require "misc/tools.php";
|
2023-02-14 15:02:08 +00:00
|
|
|
|
2023-02-16 14:51:28 +00:00
|
|
|
$url = $_REQUEST["url"];
|
2023-09-02 22:14:18 +00:00
|
|
|
$requested_root_domain = get_root_domain($url);
|
|
|
|
|
|
2023-02-16 14:51:28 +00:00
|
|
|
$allowed_domains = array("pinimg.com", "i.pinimg.com", "pinterest.com");
|
2023-02-14 15:02:08 +00:00
|
|
|
|
2023-09-02 22:14:18 +00:00
|
|
|
if (in_array($requested_root_domain, $allowed_domains))
|
2023-02-16 14:51:28 +00:00
|
|
|
{
|
2023-09-02 22:14:18 +00:00
|
|
|
$image = $url;
|
|
|
|
|
$image_src = request($image);
|
|
|
|
|
|
|
|
|
|
header("Content-Type: image/png");
|
|
|
|
|
echo $image_src;
|
2023-02-16 14:51:28 +00:00
|
|
|
}
|
2023-02-14 15:02:08 +00:00
|
|
|
|
2023-02-17 12:20:14 +00:00
|
|
|
?>
|