|
@@ -1,5 +1,7 @@
|
|
|
<?php
|
|
|
require_once("../../api.php");
|
|
|
+ require_once("../../include/lib.php");
|
|
|
+ if (!isset($_GET["id"])) header("Location: /404.php");
|
|
|
$id = (int)$_GET["id"];
|
|
|
$res = get("illust/".$id);
|
|
|
if (!isset($res->body)) {
|
|
@@ -15,20 +17,20 @@
|
|
|
$icon = "";
|
|
|
foreach ($res->userIllusts as $k => $v) {
|
|
|
if (is_null($v)) continue;
|
|
|
- if (isset($v->profileImageUrl)) $icon = str_replace("https://", "", $v->profileImageUrl);
|
|
|
+ if (isset($v->profileImageUrl)) $icon = imgprx($v->profileImageUrl);
|
|
|
}
|
|
|
?>
|
|
|
|
|
|
<?php include("../../include/header.php"); ?>
|
|
|
<div style="text-align: center;">
|
|
|
- <a href="/proxy.php?url=<?= str_replace("https:
|
|
|
- <img src="/proxy.php?url=<?= str_replace("https:
|
|
|
+ <a href="<?= imgprx($res->urls->original) ?>">
|
|
|
+ <img src="<?= imgprx($res->urls->regular) ?>" alt="<?= $res->illustTitle ?>" />
|
|
|
</a>
|
|
|
</div>
|
|
|
<h1><?= $res->illustTitle ?></h1>
|
|
|
<p>
|
|
|
好:<?= $res->likeCount ?> 保:<?= $res->bookmarkCount ?> 視:<?= $res->viewCount ?><br />
|
|
|
- <img src="/proxy.php?url=<?= $icon ?>" alt="<?= $res->userName ?>" /> <a href="/users?id=<?= $res->userId ?>"><?= $res->userName ?></a>
|
|
|
+ <img src="<?= $icon ?>" alt="<?= $res->userName ?>" /> <a href="/users?id=<?= $res->userId ?>"><?= $res->userName ?></a>
|
|
|
</p>
|
|
|
<h2>コメント (<?= $res->commentCount ?>)</h2>
|
|
|
<table>
|
|
@@ -37,7 +39,7 @@
|
|
|
foreach ($com->body->comments as $c) {
|
|
|
?>
|
|
|
<tr>
|
|
|
- <td rowspan="2" style="vertical-align: top;"><img src="/proxy.php?url=<?= str_replace("https:
|
|
|
+ <td rowspan="2" style="vertical-align: top;"><img src="<?= imgprx($c->img) ?>" alt="<?= $c->userName ?>" style="width: 40px; height: 40px;" /></td>
|
|
|
<td style="padding-left: 12px;"><a href="/users/?id=<?= $c->userId ?>"><?= $c->userName ?></a> <?= $c->commentDate ?></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
@@ -68,7 +70,7 @@
|
|
|
foreach ($rec->body->illusts as $r) {
|
|
|
?>
|
|
|
<a href="/artworks/?id=<?= $r->id ?>">
|
|
|
- <img src="/proxy.php?url=<?= str_replace("https:
|
|
|
+ <img src="<?= imgprx($r->url) ?>" alt="<?= $r->alt ?>" />
|
|
|
</a>
|
|
|
<?php
|
|
|
}
|