summaryrefslogtreecommitdiff
path: root/pages/login.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pages/login.inc')
-rw-r--r--pages/login.inc31
1 files changed, 11 insertions, 20 deletions
diff --git a/pages/login.inc b/pages/login.inc
index ffbe2d7..cfe363c 100644
--- a/pages/login.inc
+++ b/pages/login.inc
@@ -1,6 +1,6 @@
<?php
-require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.inc"; global $title; global $isLoggedIn;
+require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.inc"; global $title; global $isLoggedIn; global $lang; global $pages;
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; global $readOnly; global $isNormallyLoggedIn;
?>
@@ -8,41 +8,32 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; global $readOnl
<br>
<div class="container">
<div>
- <h2>Login</h2>
+ <h2><?= $pages["login"]["name"][$lang["_name"]] ?></h2>
<?php if ($readOnly): ?>
<div class="alert alert-warning">
- <b>Login is temporarily disabled. </b>Login on this website has been temporarily disabled by the administrators for maintenance purposes.
+ <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 login to a different account or using a different authentication method, you may do so now.
</div>
- <?php endif; ?>
- <p>Select how you want to log into Cold Haze.</p>
+ <?php else: ?>
+ <p><?= $lang["login"]["select"] ?> Cold Haze.</p>
<div class="row">
<div class="col-md-6">
<div class="card" style="margin-bottom:10px;text-align: center;">
<div class="card-body">
- <img src="https://git.equestria.dev/equestria.dev/design/raw/branch/mane/logo/dark/banner.svg" style="height:48px;" alt="">
- <h4 class="card-title" style="margin-top:15px;">Equestria.dev Private Authentication</h4>
- <p>For website administrators, allows to change content and access private information.</p>
- <a href="/Authentication/Start" class="btn btn-primary">Continue</a>
- </div>
- </div>
- </div>
- <div class="col-md-6">
- <div class="card" style="margin-bottom:10px;text-align: center;">
- <div class="card-body">
- <img src="https://equestria.horse/assets/favicon.png" style="height:48px;" alt=""><img src="/assets/logo/gitlab.svg" style="height:48px;margin-left:15px;" alt=""><img src="/assets/logo/github.svg" style="height:48px;margin-left:15px;" alt="">
- <h4 class="card-title" style="margin-top:15px;">Equestria.horse/GitLab/GitHub</h4>
- <p>For website users, allows to view more content, ask questions, and set notes for members.</p>
- <a href="#" class="btn btn-primary disabled">Continue</a>
+ <!--<img src="https://git.equestria.dev/equestria.dev/design/raw/branch/mane/logo/dark/banner.svg" style="height:48px;" alt="">-->
+ <h4 class="card-title" style="margin-top:15px;"><?= $lang["login"]["private"][0] ?></h4>
+ <p><?= $lang["login"]["private"][1] ?></p>
+ <a href="/Authentication/Start" class="btn btn-primary"><?= $lang["login"]["private"][2] ?></a>
</div>
</div>
</div>
+ <div class="col-md-6"></div>
</div>
- <?php endif; ?>
+ <?php endif; endif; ?>
</div>
</div>