|
@@ -3,6 +3,7 @@
|
|
require_once("../../include/lib.php");
|
|
require_once("../../include/lib.php");
|
|
if (!isset($_GET["id"])) header("Location: /404.php");
|
|
if (!isset($_GET["id"])) header("Location: /404.php");
|
|
$id = (int)$_GET["id"];
|
|
$id = (int)$_GET["id"];
|
|
|
|
+ $cur = "/artworks/?id=".$id;
|
|
$res = get("illust/".$id);
|
|
$res = get("illust/".$id);
|
|
if (!isset($res->body)) {
|
|
if (!isset($res->body)) {
|
|
header("Location: /404.php");
|
|
header("Location: /404.php");
|
|
@@ -13,7 +14,7 @@
|
|
$com = get("illusts/comments/roots?illust_id=".$id);
|
|
$com = get("illusts/comments/roots?illust_id=".$id);
|
|
}
|
|
}
|
|
$rec = get("illust/".$id."/recommend/init?limit=".$rpsize);
|
|
$rec = get("illust/".$id."/recommend/init?limit=".$rpsize);
|
|
- $out = ["title" => $res->alt, "desc" => $res->description];
|
|
+ $out = ["title" => $res->alt, "desc" => $res->description, "img_sec" => "artwork", "img_id" => $id];
|
|
$icon = "";
|
|
$icon = "";
|
|
foreach ($res->userIllusts as $k => $v) {
|
|
foreach ($res->userIllusts as $k => $v) {
|
|
if (is_null($v)) continue;
|
|
if (is_null($v)) continue;
|
|
@@ -24,9 +25,11 @@
|
|
<?php include("../../include/header.php"); ?>
|
|
<?php include("../../include/header.php"); ?>
|
|
<div style="text-align: center;">
|
|
<div style="text-align: center;">
|
|
<?php for ($i = 0; $i < $res->pageCount; $i++) { ?>
|
|
<?php for ($i = 0; $i < $res->pageCount; $i++) { ?>
|
|
- <a href="<?= imgprx(str_replace("_p0", "_p".$i, $res->urls->original)) ?>">
|
|
+ <p>
|
|
- <img src="<?= imgprx(str_replace("_p0_", "_p".$i."_", $res->urls->regular)) ?>" alt="<?= $res->illustTitle ?>" />
|
|
+ <a href="<?= imgprx(str_replace("_p0", "_p".$i, $res->urls->original)) ?>">
|
|
- </a>
|
|
+ <img src="<?= imgprx(str_replace("_p0_", "_p".$i."_", $res->urls->regular)) ?>" alt="<?= $res->illustTitle ?>" />
|
|
|
|
+ </a>
|
|
|
|
+ </p>
|
|
<?php } ?>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|
|
<h1><?= $res->illustTitle ?></h1>
|
|
<h1><?= $res->illustTitle ?></h1>
|