13 行
309 B
PHP
13 行
309 B
PHP
<?php
|
|
require_once("../config.php");
|
|
$id = (int)$_GET["illust_id"];
|
|
|
|
header("Content-type: image/jpg");
|
|
|
|
$ch = curl_init();
|
|
curl_setopt($ch, CURLOPT_URL, "https://embed.pixiv.net/artwork.php?illust_id=".$id);
|
|
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
|
curl_exec($ch);
|
|
curl_close($ch);
|
|
?>
|