summaryrefslogtreecommitdiff
path: root/pages/home.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pages/home.inc')
-rw-r--r--pages/home.inc14
1 files changed, 10 insertions, 4 deletions
diff --git a/pages/home.inc b/pages/home.inc
index 44c8d7e..d476991 100644
--- a/pages/home.inc
+++ b/pages/home.inc
@@ -1,4 +1,4 @@
-<?php if (isset($_GET['error'])) header("HTTP/1.1 404 Not Found"); require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; global $readOnly; global $isNormallyLoggedIn; global $_PROFILE; global $lang; global $pages; global $isLowerLoggedIn; ?>
+<?php if (isset($_GET['error'])) header("HTTP/1.1 404 Not Found"); require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; global $readOnly; global $isNormallyLoggedIn; global $_PROFILE; global $lang; global $pages; global $isLowerLoggedIn; global $isLoggedIn; ?>
<br>
<div class="container">
@@ -9,7 +9,7 @@
</div>
<?php endif; ?>
- <?php if ($readOnly && $isNormallyLoggedIn): ?>
+ <?php if ($readOnly && $isNormallyLoggedIn || $readOnly && $isLowerLoggedIn): ?>
<div class="alert alert-warning">
<b>Notice: </b>This website is temporarily under maintenance and the administrators have locked the database. Although you are logged in as <?= $_PROFILE['name'] ?>, you cannot access any of the logged-in features while the website is under maintenance. <a href="/-/emergency">Alerts dispatching</a> remains possible in case of an emergency.
</div>
@@ -31,19 +31,23 @@
<?php if ($_SERVER['HTTP_HOST'] === "fr.equestria.horse"): ?>
<p><?= count($byColor) ?> poneys dans une tĂȘte</p>
<?php else: ?>
+ <?php if ($isLoggedIn || $isLowerLoggedIn): ?>
+ <p><?= count($byColor) ?> ponies in 3 plural systems</p>
+ <?php else: ?>
<p><?= count($byColor) ?> <?= $lang["home"]["intro"] ?></p>
<?php endif; ?>
+ <?php endif; ?>
</div>
</div>
<hr style="border-color:rgba(255, 255, 255, .25);">
- <?php global $isLoggedIn; if ($isLoggedIn && ((int)date('H') >= 20 || (int)date('H') < 6)): ?>
+ <!--<?php global $isLoggedIn; if ($isLoggedIn && ((int)date('H') >= 20 || (int)date('H') < 6)): ?>
<a href="/-/emergency" style="text-decoration: none;margin-top:15px;display:block;">
<div class="alert alert-danger">
<b>Are you in need of help?</b> If you need immediate help from a loved one, you may want to enable the emergency alert by clicking here, even if that wakes up the <?= $_PROFILE['name'] === "Raindrops System" ? "Cloudburst System" : "Raindrops System" ?>. Use it as you need.
</div>
</a>
- <?php endif; ?>
+ <?php endif; ?>-->
<!--<div class="alert alert-info">
<b>Coming soon:</b> Free hosting for Project Scout (the software powering Cold Haze), so you can have your own website for your system. If you are interested and/or want to pre-register, feel free to <a href="https://equestria.horse/contact" target="_blank">contact us</a>.
@@ -55,6 +59,8 @@
<?php raindrops(false); ?>
<?php if ($isLoggedIn || $isLowerLoggedIn) other(false); ?>
+ <hr>
+
<div id="hpd-legacy" style="background:rgba(255, 255, 255, .1);border-radius:10px;padding:10px 10px 10px 20px;display:grid;grid-template-columns: 128px 1fr;margin-bottom:10px;">
<a style="display:flex;margin: -10px -20px;align-items:center;justify-content:center;text-align:center;padding: 10px 20px;border-radius: 10px;background: #77777755;width: 148px;text-decoration:none;color:white;filter:none !important;" class="hpd-system">
<div style="text-align:center;"><img src="/assets/icons/legacy.svg" style="width:64px;"><br>Pony Legacy</div>