artwork.php 309 B

123456789101112
  1. <?php
  2. require_once("../config.php");
  3. $id = (int)$_GET["illust_id"];
  4. header("Content-type: image/jpg");
  5. $ch = curl_init();
  6. curl_setopt($ch, CURLOPT_URL, "https://embed.pixiv.net/artwork.php?illust_id=".$id);
  7. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  8. curl_exec($ch);
  9. curl_close($ch);
  10. ?>