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"] ?>