diff options
Diffstat (limited to 'public/account/login/index.php')
| -rw-r--r-- | public/account/login/index.php | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/public/account/login/index.php b/public/account/login/index.php index e104a88..954ccc9 100644 --- a/public/account/login/index.php +++ b/public/account/login/index.php @@ -3,12 +3,20 @@ include "../../../src/accounts.php"; authorize_user(); include "../../../src/partials.php"; +include_once "../../../src/config.php"; +include_once "../../../src/alert.php"; + +if (!ACCOUNT_REGISTRATION_ENABLE) { + generate_alert("/404.php", "Account registration is disabled", 403); + exit; +} + ?> <html> <head> - <title>Log in to alright.party</title> + <title>Login - <?php echo INSTANCE_NAME ?></title> <link rel="stylesheet" href="/static/style.css"> </head> @@ -20,13 +28,15 @@ include "../../../src/partials.php"; <section class="content"> <section class="box" style="width: 400px;"> <div class="box navtab"> - <p>Log in to alright.party</p> + <p>Log in to <?php echo INSTANCE_NAME ?></p> </div> <div class="box content"> - <form action="/account/login/twitch.php" method="GET"> - <button type="submit" class="purple" style="padding:8px 24px; font-size: 18px;">Login with - Twitch</button> - </form> + <?php if (TWITCH_REGISTRATION_ENABLE): ?> + <form action="/account/login/twitch.php" method="GET"> + <button type="submit" class="purple" style="padding:8px 24px; font-size: 18px;">Login with + Twitch</button> + </form> + <?php endif; ?> </div> </section> </section> |
