summaryrefslogtreecommitdiff
path: root/includes/components/pleasure.inc
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-07-21 23:00:41 +0200
committerRaindropsSys <contact@minteck.org>2023-07-21 23:00:41 +0200
commit05a4fcc9848ea1fb9feb5b5bfb7a2733dec3ce40 (patch)
treefb5dfa96e9f04c840e93ede2ee2042cad470378c /includes/components/pleasure.inc
parent46251292b5c8b431de66aeff473594ccec60e04c (diff)
downloadpluralconnect-05a4fcc9848ea1fb9feb5b5bfb7a2733dec3ce40.tar.gz
pluralconnect-05a4fcc9848ea1fb9feb5b5bfb7a2733dec3ce40.tar.bz2
pluralconnect-05a4fcc9848ea1fb9feb5b5bfb7a2733dec3ce40.zip
Updated 10 files and added 11 files (automated)
Diffstat (limited to 'includes/components/pleasure.inc')
-rw-r--r--includes/components/pleasure.inc40
1 files changed, 3 insertions, 37 deletions
diff --git a/includes/components/pleasure.inc b/includes/components/pleasure.inc
index 0939228..b9f9cd0 100644
--- a/includes/components/pleasure.inc
+++ b/includes/components/pleasure.inc
@@ -1,6 +1,6 @@
<?php global $app; global $_PROFILE; $front = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/gdapd/fronters.json"), true)["members"]; ?>
-<h2>Sex alert
+<h2>Pleasure alert
<details style="display: inline-block;font-size:12px;">
<summary class="text-muted" style="opacity:.5;"></summary>
<label><input id="test-mode" type="checkbox"> Test Mode</label> · <label><input id="fake-requests" type="checkbox"> Fake Requests</label>
@@ -9,7 +9,7 @@
<?php if ($_PROFILE["login"] === "cloudburst"): ?>
<div class="alert alert-danger">
- <b>Notice:</b> Only <?= $app["other"]["name"] ?> can use the sex alert. If you wish to wake somepony up, use the <a href="/-/wakeup" style="filter: invert(1) hue-rotate(180deg);">wake-up alert</a> instead.
+ <b>Notice:</b> Only <?= $app["other"]["name"] ?> can use the pleasure alert. If you wish to wake somepony up, use the <a href="/-/wakeup" style="filter: invert(1) hue-rotate(180deg);">wake-up alert</a> instead.
</div>
<?php endif; ?>
@@ -45,43 +45,9 @@
<?php endif; ?>
<?php endif; ?>
-<?php
-
-$school = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/school.json"), true);
-
-if ((int)date('G') > 19) {
- $day = date('Y-m-d', time() + 86400);
-} else {
- $day = date('Y-m-d');
-}
-
-if (isset($school[$day]) && $school[$day]["firstClass"]["timestamp"] < time() * 1000) {
- $day = date('Y-m-d', time() + 86400);
-}
-
-if (!isset($school[$day])) {
- echo('<div class="alert alert-secondary">No information about Raindrops\'s school schedule for ' . date('F jS', strtotime($day)) . ' currently, try again later.</div>');
-} elseif (isset($school[$day]["firstClass"]["timestamp"])) {
- $tod = round($school[$day]["firstClass"]["timestamp"] / 1000) - strtotime($day);
- $hours = $tod / 3600;
- $time = date('g:i a', $tod);
-
- if ($hours < 8.5) {
- echo('<div class="alert alert-danger">Raindrops starts school at ' . $time . ' (local time) tomorrow (' . date('F jS', strtotime($day)) . '), it is recommended that you don\'t wake them up to have sex.</div>');
- } else if ($hours < 9.5) {
- echo('<div class="alert alert-warning">Raindrops starts school at ' . $time . ' (local time) tomorrow (' . date('F jS', strtotime($day)) . '), they can be wakened up at night to have sex for at most an hour.</div>');
- } else {
- echo('<div class="alert alert-success">Raindrops starts school at ' . $time . ' (local time) tomorrow (' . date('F jS', strtotime($day)) . '), they can be wakened up at night to have sex for over an hour.</div>');
- }
-} else {
- echo('<div class="alert alert-success">Raindrops does not have school tomorrow (' . date('F jS', strtotime($day)) . '), they can be wakened up at night to have sex for as long as you wish.</div>');
-}
-
-?>
-
<span data-bs-toggle="modal" <?php if ($_PROFILE["login"] === "cloudburst"): ?>class="disabled"<?php endif; ?> data-bs-target="#turn-on" id="btn-on" style="background: #7f0000;font-size: 48px;padding: 10px 50px;border-radius: 10px;width: max-content;display: block;margin-left: auto;margin-right: auto;cursor: pointer;">Turn <b>ON</b></span>
<span onclick="disableAlert()" id="btn-off" style="display:none;background: #007f0b;font-size: 48px;padding: 10px 50px;border-radius: 10px;width: max-content;margin-left: auto;margin-right: auto;cursor: pointer;">Turn <b>OFF</b></span>
-<p style="text-align:center;margin-top:10px;">Sending next notification <b><span id="next-notification">never</span></b> · Local time for Raindrops: <span id="raindrops-time">--:--</span><br>Make sure you run the <code>/sex</code> command on the server before turning the alert on.</p>
+<p style="text-align:center;margin-top:10px;">Sending next notification <b><span id="next-notification">never</span></b> · Local time for Raindrops: <span id="raindrops-time">--:--</span></p>
<script>
function updateTime() {