summaryrefslogtreecommitdiff
path: root/includes/components
diff options
context:
space:
mode:
Diffstat (limited to 'includes/components')
-rw-r--r--includes/components/navigation.inc8
-rw-r--r--includes/components/pleasure.inc10
2 files changed, 5 insertions, 13 deletions
diff --git a/includes/components/navigation.inc b/includes/components/navigation.inc
index 9a777ce..f08fca2 100644
--- a/includes/components/navigation.inc
+++ b/includes/components/navigation.inc
@@ -158,14 +158,6 @@ $navigation_admin = [
"private" => false
],
[
- "name" => $pages["rules"]["name"][$lang["_name"]],
- "icon" => "/assets/icons/rules.svg",
- "invert" => true,
- "link" => "/-/rules",
- "stepped" => null,
- "private" => true
- ],
- [
"name" => $pages["toys"]["name"][$lang["_name"]],
"icon" => "/assets/icons/toys.svg",
"invert" => true,
diff --git a/includes/components/pleasure.inc b/includes/components/pleasure.inc
index 40bf7fd..0939228 100644
--- a/includes/components/pleasure.inc
+++ b/includes/components/pleasure.inc
@@ -28,7 +28,7 @@
?> However, if you wish, any of the ponies mentioned on this page can take control of the body for the amount of time required for sex.
</div>
- <?php elseif (!parseMetadata(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/" . $front[0]["id"]), true))["other"]): ?>
+ <?php elseif (!parseMetadata(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/" . $front[0]["id"] . ".json"), true))["other"]): ?>
<div class="alert alert-warning">
<?php
@@ -217,28 +217,28 @@ if (!isset($school[$day])) {
<p><?= $_PROFILE["login"] === "raindrops" ? "These ponies will have sex with " . $app["other"]["name"] : "These ponies will have sex with you" ?>:</p>
<ul>
- <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === "gdapd" && $pony["_metadata"]["other"]): ?>
+ <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === "gdapd" && isset($pony["_metadata"]["other"]) && $pony["_metadata"]["other"]): ?>
<li><a href="/<?= $pony["name"] ?>"><?= $pony["display_name"] ?? $pony["name"] ?></a> (<?= $pony["_metadata"]["sexually_active"] ? "no consent is required" : "consent is mandatory" ?>)</li>
<?php endif; endforeach; ?>
</ul>
<p><?= $_PROFILE["login"] === "raindrops" ? "These ponies may have sex with " . $app["other"]["name"] . " but are unsure about it" : "These ponies may have sex with you but are unsure about it" ?>:</p>
<ul>
- <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === "gdapd" && $pony["_metadata"]["other2"]): ?>
+ <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === "gdapd" && isset($pony["_metadata"]["other2"]) && $pony["_metadata"]["other2"]): ?>
<li><a href="/<?= $pony["name"] ?>"><?= $pony["display_name"] ?? $pony["name"] ?></a></li>
<?php endif; endforeach; ?>
</ul>
<p><?= $_PROFILE["login"] === "raindrops" ? "These ponies will have sex with you" : "These ponies will have sex with Raindrops" ?>:</p>
<ul>
- <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === $app["other"]["id"] && $pony["_metadata"]["other3"]): ?>
+ <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === $app["other"]["id"] && isset($pony["_metadata"]["other3"]) && $pony["_metadata"]["other3"]): ?>
<li><a href="/<?= $pony["name"] ?>"><?= $pony["display_name"] ?? $pony["name"] ?></a></li>
<?php endif; endforeach; ?>
</ul>
<p><?= $_PROFILE["login"] === "raindrops" ? "These ponies may have sex with you but are unsure about it" : "These ponies may have sex with Raindrops but are unsure about it" ?>:</p>
<ul>
- <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === $app["other"]["id"] && $pony["_metadata"]["other4"]): ?>
+ <?php foreach (scoreOrderGlobal() as $pony): if ($pony["system"] === $app["other"]["id"] && isset($pony["_metadata"]["other4"]) && $pony["_metadata"]["other4"]): ?>
<li><a href="/<?= $pony["name"] ?>"><?= $pony["display_name"] ?? $pony["name"] ?></a></li>
<?php endif; endforeach; ?>
</ul>