index.php 960 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. require_once("../../api.php");
  3. if (!isset($_GET["id"])) header("Location: " . SITEURL . "/404.php");
  4. $id = (int)$_GET["id"];
  5. $cur = "/users/?id=".$id;
  6. $res = get("user/".$id."/profile/all");
  7. if (!isset($res->body)) {
  8. header("Location: " . SITEURL . "/404.php");
  9. die();
  10. }
  11. $top = get("user/".$id."/profile/top");
  12. $res = $res->body;
  13. $top = $top->body;
  14. $out = ["title" => $top->extraData->meta->title, "desc" => $top->extraData->meta->description, "img_sec" => "userhead", "img_id" => $id];
  15. ?>
  16. <?php
  17. include("../../include/header.php");
  18. $title = $top->extraData->meta->ogp->title;
  19. $now = "home";
  20. $bmc = $res->bookmarkCount->public->illust;
  21. $ilc = count((array)$res->illusts);
  22. $mgc = count((array)$res->manga);
  23. include("../../include/usermenu.php");
  24. unset($res);
  25. ?>
  26. <hr />
  27. <p>
  28. <?= nl2br($top->extraData->meta->twitter->description) ?>
  29. </p>
  30. <?php
  31. unset($top);
  32. ?>
  33. <?php include("../../include/footer.php"); ?>