commit 67d5d60a2bbc73795508d63dd4edf275f91490bd Author: 諏訪子 Date: Tue May 2 21:19:47 2023 +0900 最初コミット diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b74decb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/config.php diff --git a/README.md b/README.md new file mode 100644 index 0000000..6ec5843 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# vixip +pixiv向けプライバシーUI。 diff --git a/api.php b/api.php new file mode 100644 index 0000000..c4b8b80 --- /dev/null +++ b/api.php @@ -0,0 +1,29 @@ + diff --git a/config.example.php b/config.example.php new file mode 100644 index 0000000..eae1790 --- /dev/null +++ b/config.example.php @@ -0,0 +1,3 @@ + diff --git a/include/footer.php b/include/footer.php new file mode 100644 index 0000000..86f1b15 --- /dev/null +++ b/include/footer.php @@ -0,0 +1,7 @@ + + + + diff --git a/include/header.php b/include/header.php new file mode 100644 index 0000000..c863f83 --- /dev/null +++ b/include/header.php @@ -0,0 +1,24 @@ + + + + + + + " /> + + " /> + + + " /> + vixip 〜 <?= htmlspecialchars($out["title"]) ?> + + + +
+
+ vixip + + +
+
+
diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..86d3186 Binary files /dev/null and b/logo.png differ diff --git a/www/404.php b/www/404.php new file mode 100644 index 0000000..8c33aa5 --- /dev/null +++ b/www/404.php @@ -0,0 +1,6 @@ + "見つけられない"]; ?> + + +

見つけられなかった

+

ごめんね!

+ diff --git a/www/artworks/index.php b/www/artworks/index.php new file mode 100644 index 0000000..10a8da5 --- /dev/null +++ b/www/artworks/index.php @@ -0,0 +1,80 @@ +body)) { + header("Location: /404.php"); + die(); + } + $res = $res->body; + if ($res->commentCount > 0) { + $com = get("illusts/comments/roots?illust_id=".$id); + } + $rec = get("illust/".$id."/recommend/init?limit=".$rpsize); + $out = ["title" => $res->alt, "desc" => $res->description]; + $icon = ""; + foreach ($res->userIllusts as $k => $v) { + if (is_null($v)) continue; + if (isset($v->profileImageUrl)) $icon = str_replace("https://", "", $v->profileImageUrl); + } +?> + + +
+ urls->original) ?>"> + urls->regular) ?>" alt="illustTitle ?>" /> + +
+

illustTitle ?>

+

+ 好:likeCount ?> 保:bookmarkCount ?> 視:viewCount ?>
+ <?= $res->userName ?> userName ?> +

+

コメント (commentCount ?>)

+ +error) { + foreach ($com->body->comments as $c) { +?> + + + + + + + +message; + } +?> +
img) ?>" alt="userName ?>" style="width: 40px; height: 40px;" />userName ?> commentDate ?>
+stampId)) { + echo $c->comment; + } + else { +?> + <?= $c->stampId ?> + +
+

関連作品

+error) { + foreach ($rec->body->illusts as $r) { +?> + + url) ?>" alt="alt ?>" /> + +message; + } +?> + diff --git a/www/favicon.ico b/www/favicon.ico new file mode 100644 index 0000000..8a6fa47 Binary files /dev/null and b/www/favicon.ico differ diff --git a/www/git.png b/www/git.png new file mode 100644 index 0000000..df3afde Binary files /dev/null and b/www/git.png differ diff --git a/www/index.php b/www/index.php new file mode 100644 index 0000000..900a2f5 --- /dev/null +++ b/www/index.php @@ -0,0 +1,17 @@ + "トップ", "desc" => ""]; +?> + + +
+thumbnails->illust as $o) { +?> + url) ?>" alt="alt ?>" /> + +
+ diff --git a/www/proxy.php b/www/proxy.php new file mode 100644 index 0000000..cdd2184 --- /dev/null +++ b/www/proxy.php @@ -0,0 +1,16 @@ + diff --git a/www/search/index.php b/www/search/index.php new file mode 100644 index 0000000..d2802fa --- /dev/null +++ b/www/search/index.php @@ -0,0 +1,46 @@ +error) die(); + + if (!isset($res->body)) { + header("Location: /404.php"); + die(); + } + $res = $res->body; + $out = ["title" => $res->alt, "desc" => $res->description]; +?> + + +relatedTags as $t) { +?> + # + +

結果

+illustManga->data as $r) { + if (is_null($r->id)) continue; +?> + + + diff --git a/www/style.css b/www/style.css new file mode 100644 index 0000000..c114b73 --- /dev/null +++ b/www/style.css @@ -0,0 +1,82 @@ +html { + margin: 0; +} + +body { + background: #232629; + color: #fcfcfc; + letter-spacing: 0.05em; +} + +a { + color: #ea5fea; +} + +h2 { + clear: left; + line-height: 1.5; + margin: 15px 0 10px; + padding: 0 0 0 15px; + border-left: 6px solid #f976de; + font-weight: bold; + font-size: 166%; +} + +.container { + width: calc(100% - 20px); + max-width: 1200px; + background: #31363b; + border: 2px solid #4d4d4d; + border-radius: 10px; + margin: auto; + padding: 8px; +} + +.header { + width: calc(100% - 20px); + max-width: 1200px; + background: #67717b; + border: 2px solid #8f8f8f; + border-radius: 10px; + margin: auto; + padding: 8px; + margin-bottom: 24px; +} + +.searchbar, .searchbtn { + color: #fcfcfc; + font-size: 20px; + width: 100%; +} + +.searchbar { + background: #31363b; + border: 1px solid #ababab; + max-width: 900px; +} + +.searchbtn { + background: #ee7fec; + border: 1px solid #800467; + max-width: 60px; +} + +.searchres { + max-width: 260px; + width: 100%; + background: #512651; + border: 1px solid #ee7fec; + padding: 8px; + border-radius: 4px; + display: inline-block; + font-size: 12px; +} + +.searchres > a > img { + margin: auto; +} + +.footer { + text-align: center; + margin-top: 32px; +} diff --git a/www/users/index.php b/www/users/index.php new file mode 100644 index 0000000..5f00a01 --- /dev/null +++ b/www/users/index.php @@ -0,0 +1,21 @@ +body)) { + header("Location: /404.php"); + die(); + } + $top = get("user/".$id."/profile/top"); + $res = $res->body; + $top = $top->body; + //print_r($top->extraData->meta);exit; + $out = ["title" => $top->extraData->meta->title, "desc" => $top->extraData->meta->description]; +?> + + +<?= $top->extraData->meta->ogp->title ?> +

+ extraData->meta->ogp->description) ?> +

+