summaryrefslogtreecommitdiff
path: root/pages/login.inc
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2024-03-30 23:40:33 +0100
committerRaindropsSys <raindrops@equestria.dev>2024-03-30 23:40:33 +0100
commit6b796258d413f00e498ce7f80f73a9f6c061f29c (patch)
tree49e64a5dd4cde2acff7f0a93ed3f8e20e1cb2dc8 /pages/login.inc
parent5860551daa0f60103ad24e93da29f401a653f144 (diff)
downloadpluralconnect-6b796258d413f00e498ce7f80f73a9f6c061f29c.tar.gz
pluralconnect-6b796258d413f00e498ce7f80f73a9f6c061f29c.tar.bz2
pluralconnect-6b796258d413f00e498ce7f80f73a9f6c061f29c.zip
Updated 5 files, added 2 files, deleted 495 files and renamed 7 files (automated)
Diffstat (limited to 'pages/login.inc')
-rw-r--r--pages/login.inc48
1 files changed, 0 insertions, 48 deletions
diff --git a/pages/login.inc b/pages/login.inc
deleted file mode 100644
index 0e306f1..0000000
--- a/pages/login.inc
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-
-if (isset($_GET["return"])) {
- setcookie("PEH2_RETURN_PAGE", $_GET["return"], 0, "/");
-}
-
-if (isset($_GET["immediate"]) || (isset($_COOKIE["new2023UI"]) && !isset($_GET["no2023"]))) {
- header("Location: /auth/init");
- die();
-}
-
-require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.inc"; global $title; global $isLoggedIn; global $lang; global $pages;
-require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/header.inc'; global $readOnly; global $isNormallyLoggedIn;
-
-?>
-
-<br>
-<div class="container">
- <div>
- <h2><?= $pages["login"]["name"][$lang["_name"]] ?></h2>
- <?php if ($readOnly): ?>
- <div class="alert alert-warning">
- <b><?= $lang["login"]["maintenance"][0] ?> </b><?= $lang["login"]["maintenance"][1] ?>
- </div>
- <?php else: ?>
- <?php global $isLoggedIn; if ($isLoggedIn): ?>
- <div class="alert alert-warning">
- <b>You are already logged in.</b> If you want to log into a different account or using a different authentication method, you may do so now.
- </div>
- <?php else: ?>
- <p><?= $lang["login"]["select"] ?> Ponycule.</p>
- <div class="row">
- <div class="col-md-6">
- <div class="card" style="margin-bottom:10px;text-align: center;">
- <div class="card-body">
- <h4 class="card-title" style="margin-top:15px;"><?= $lang["login"]["private"][0] ?></h4>
- <p><?= $lang["login"]["private"][1] ?></p>
- <a href="/auth/init" class="btn btn-primary"><?= $lang["login"]["private"][2] ?></a>
- </div>
- </div>
- </div>
- <div class="col-md-6"></div>
- </div>
- <?php endif; endif; ?>
- </div>
-</div>
-
-<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/footer.inc'; ?>