summaryrefslogtreecommitdiff
path: root/web/home.php
blob: fdcd976b5b0bee7175f339028804a66c85cc533b (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
48
49
50
<?php

// define site root
define('SITE_ROOT', realpath('../'));

// Bring in our composer autoloader
require SITE_ROOT . '/vendor/autoload.php';

use App\Core\Main;

if ($_POST) {
    $name = $_POST['name'];
    $game = $_POST['game'];
    $action = $_POST['action'];
    new Main($name, $game, $action);
    exit;
}
?>

<html>

    <head>

    </head>

    <body>

        <div class="welcome">

            <h1>Welcome</h1>
            <p>This is a trial of a game</p>

        </div>

        <div class="identify">

            <form class="identify__form" action="" method="post">
                <label for="identify-name">Enter a Nickname</label>
                <input type="text" name="name" value="" placeholder="Example: CoolDude69">
                <label for="identify-name">Enter a Game Code</label>
                <input type="text" name="game" value="" placeholder="#abc123">
                <input type="hidden" name="action" value="identify">
                <button type="submit" name="identify-action">Go</button>
            </form>

        </div>

    </body>

</html>