summaryrefslogtreecommitdiff
path: root/web/home.php
diff options
context:
space:
mode:
authorFbenas <philbeansburton@gmail.com>2017-03-12 23:57:42 +0000
committerFbenas <philbeansburton@gmail.com>2017-03-12 23:57:42 +0000
commit1eee94d2604fb43b5a4a21c281c72ad356906a88 (patch)
tree23c095b5db60c48dae443356392f5a5eb8a9c9f2 /web/home.php
parentedfd095021ee5d89f53da4fd78d7dea7346d7617 (diff)
Added identify form and Ratchet websockets test stuff
Diffstat (limited to 'web/home.php')
-rw-r--r--web/home.php50
1 files changed, 50 insertions, 0 deletions
diff --git a/web/home.php b/web/home.php
new file mode 100644
index 0000000..fdcd976
--- /dev/null
+++ b/web/home.php
@@ -0,0 +1,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>