|
@@ -1,12 +1,12 @@
|
|
|
<?php
|
|
|
require_once("../../api.php");
|
|
|
require_once("../../include/lib.php");
|
|
|
- if (!isset($_GET["id"])) header("Location: /404.php");
|
|
|
+ if (!isset($_GET["id"])) header("Location: " . SITEURL . "/404.php");
|
|
|
$id = (int)$_GET["id"];
|
|
|
$cur = "/artworks/?id=".$id;
|
|
|
$res = get("illust/".$id);
|
|
|
if (!isset($res->body)) {
|
|
|
- header("Location: /404.php");
|
|
|
+ header("Location: " . SITEURL . "/404.php");
|
|
|
die();
|
|
|
}
|
|
|
$res = $res->body;
|
|
@@ -35,7 +35,7 @@
|
|
|
<h1><?= $res->illustTitle ?></h1>
|
|
|
<p>
|
|
|
好:<?= $res->likeCount ?> 保:<?= $res->bookmarkCount ?> 視:<?= $res->viewCount ?><br />
|
|
|
- <img src="<?= $icon ?>" alt="<?= $res->userName ?>" /> <a href="/users?id=<?= $res->userId ?>"><?= $res->userName ?></a>
|
|
|
+ <img src="<?= $icon ?>" alt="<?= $res->userName ?>" /> <a href="<?= SITEURL ?>/users?id=<?= $res->userId ?>"><?= $res->userName ?></a>
|
|
|
</p>
|
|
|
<h2>コメント (<?= $res->commentCount ?>)</h2>
|
|
|
<table>
|
|
@@ -45,7 +45,7 @@
|
|
|
?>
|
|
|
<tr>
|
|
|
<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>
|
|
|
+ <td style="padding-left: 12px;"><a href="<?= SITEURL ?>/users/?id=<?= $c->userId ?>"><?= $c->userName ?></a> <?= $c->commentDate ?></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td style="padding-left: 12px;">
|
|
@@ -55,7 +55,7 @@
|
|
|
}
|
|
|
else {
|
|
|
?>
|
|
|
- <img src="/proxy.php?url=s.pximg.net/common/images/stamp/generated-stamps/<?= $c->stampId ?>_s.jpg" alt="<?= $c->stampId ?>" />
|
|
|
+ <img src="<?= SITEURL ?>/proxy.php?url=s.pximg.net/common/images/stamp/generated-stamps/<?= $c->stampId ?>_s.jpg" alt="<?= $c->stampId ?>" />
|
|
|
<?php
|
|
|
}
|
|
|
?>
|
|
@@ -76,12 +76,12 @@
|
|
|
if (is_null($r->id)) continue;
|
|
|
?>
|
|
|
<div class="searchres">
|
|
|
- <a href="/artworks/?id=<?= $r->id ?>">
|
|
|
+ <a href="<?= SITEURL ?>/artworks/?id=<?= $r->id ?>">
|
|
|
<img src="<?= imgprx($r->url) ?>" alt="<?= $r->alt ?>" style="width: 260px; height: 260px;" />
|
|
|
<?= $r->title ?>
|
|
|
</a>
|
|
|
<br />
|
|
|
- <a href="/users/?id=<?= $r->userId ?>">
|
|
|
+ <a href="<?= SITEURL ?>/users/?id=<?= $r->userId ?>">
|
|
|
<img src="<?= imgprx($r->profileImageUrl) ?>" alt="<?= $r->userName ?>" style="width: 24px; height: 24px;" />
|
|
|
<?= $r->userName ?>
|
|
|
</a>
|