From 7cbf4d4d8891000a6b880a9f7e64cf261e57885f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Wed, 8 Mar 2023 12:45:04 +0900 Subject: [PATCH] =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/index.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/www/index.php b/www/index.php index cdef118..fb8fe8a 100644 --- a/www/index.php +++ b/www/index.php @@ -63,9 +63,6 @@ curl_close($ch); if ($body && $httpCode == 200) { - $res["status"] = $httpCode; - if ($url == "") $res["page"] = "front"; - else $res["page"] = "news"; $res["title"] = gettitle($body); $res["content"] = rmbloat($body); $res["img"] = getimg($body); @@ -79,10 +76,10 @@ $gurl = str_replace("/?url=", "", htmlspecialchars($_SERVER["REQUEST_URI"])); // デフォルト=エラー - $out = ["status" => 404, "page" => "notfound", "title" => "見つけられない", "content" => '

見つけられなかった

ごめんね!

', "img" => ""]; + $out = ["title" => "見つけられない", "content" => '

見つけられなかった

ごめんね!

']; // $gurlは「/」だったら、トップページを表示する。記事だったら、記事を表示する。 - if ($gurl == "/") $out = ["status" => 200, "page" => "front", "title" => "トップページ", "content" => '

使い方

https://news.mixi.jp/view_news.pl?id=********&media_id=***'.DOMAIN.'/?url=view_news.pl?id=********&media_id=***
例えば:https://news.mixi.jp/view_news.pl?id=7327623&media_id=4'.DOMAIN.'/?url=view_news.pl?id=7327047&media_id=262

', "img" => ""]; + if ($gurl == "/") $out = ["title" => "トップページ", "content" => '

使い方

https://news.mixi.jp/view_news.pl?id=********&media_id=***'.DOMAIN.'/?url=view_news.pl?id=********&media_id=***
例えば:https://news.mixi.jp/view_news.pl?id=7327623&media_id=4'.DOMAIN.'/?url=view_news.pl?id=7327047&media_id=262

']; else if (isarticle($gurl)) $out = get($gurl); ?> @@ -90,11 +87,13 @@ - " /> + + " /> - " /> + " /> - " /> + + " /> spliti 〜 <?= $out["title"] ?>