2022-06-27 17:00:22 -04:00
|
|
|
<?php
|
|
|
|
|
2022-07-08 15:52:26 -04:00
|
|
|
$config = require "config.php";
|
|
|
|
require "misc/tools.php";
|
2022-06-27 17:00:22 -04:00
|
|
|
|
2022-08-28 14:41:33 -04:00
|
|
|
$url = $_REQUEST["url"];
|
2022-07-08 15:52:26 -04:00
|
|
|
|
2022-08-28 14:41:33 -04:00
|
|
|
$split_url = explode("/", $url);
|
|
|
|
$base_url = $split_url[2];
|
|
|
|
|
|
|
|
$base_url_main_split = explode(".", strrev($base_url));
|
|
|
|
$base_url_main = strrev($base_url_main_split[1]) . "." . strrev($base_url_main_split[0]);
|
2022-06-27 17:00:22 -04:00
|
|
|
|
2022-08-28 14:41:33 -04:00
|
|
|
if ($base_url_main == "qwant.com" || $base_url_main == "wikimedia.org")
|
|
|
|
{
|
|
|
|
$image = $url;
|
|
|
|
$image_src = request($image);
|
|
|
|
|
|
|
|
header("Content-Type: image/jpeg");
|
|
|
|
echo $image_src;
|
|
|
|
}
|
2022-06-27 17:00:22 -04:00
|
|
|
?>
|