summaryrefslogtreecommitdiff
path: root/public/account/login/index.php
blob: 954ccc977257c93df632ba9985a509068591deb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
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>Login - <?php echo INSTANCE_NAME ?></title>
    <link rel="stylesheet" href="/static/style.css">
</head>

<body>
    <div class="container">
        <div class="wrapper">
            <?php html_navigation_bar(); ?>

            <section class="content">
                <section class="box" style="width: 400px;">
                    <div class="box navtab">
                        <p>Log in to <?php echo INSTANCE_NAME ?></p>
                    </div>
                    <div class="box content">
                        <?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>
        </div>
    </div>
</body>

</html>