12345678910111213141516 |
- <?php
- require_once("../config.php");
- $url = htmlspecialchars($_GET["url"]);
- $ext = explode(".", $url);
- $ext = $ext[array_key_last($ext)];
- if ($ext == "jpg") $ext = "jpeg";
- header("Content-type: image/".$ext);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://".$url);
- curl_setopt($ch, CURLOPT_REFERER, "https://www.pixiv.net/");
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_exec($ch);
- curl_close($ch);
- ?>
|