summaryrefslogtreecommitdiffstats
path: root/management-interface/php
diff options
context:
space:
mode:
Diffstat (limited to 'management-interface/php')
-rw-r--r--management-interface/php/about.inc.php9
-rw-r--r--management-interface/php/functions.php22
-rw-r--r--management-interface/php/home.inc.php10
-rw-r--r--management-interface/php/login.inc.php14
-rw-r--r--management-interface/php/template.inc.php8
-rw-r--r--management-interface/php/user.inc.php9
6 files changed, 72 insertions, 0 deletions
diff --git a/management-interface/php/about.inc.php b/management-interface/php/about.inc.php
new file mode 100644
index 0000000..57edd01
--- /dev/null
+++ b/management-interface/php/about.inc.php
@@ -0,0 +1,9 @@
+<?php
+if (!$include) die("404 - Permission denied.");
+?>
+
+<div class="jumbotron">
+<p>
+This website is the interface for the masterserver to do several things.
+</p>
+</div>
diff --git a/management-interface/php/functions.php b/management-interface/php/functions.php
new file mode 100644
index 0000000..f84c097
--- /dev/null
+++ b/management-interface/php/functions.php
@@ -0,0 +1,22 @@
+<?php
+
+# get the menu item
+switch ($_GET["m"]) {
+case "home":
+ $_item = "home";
+ break;
+case "login":
+ $_item = "login";
+ break;
+case "user":
+ $_item = "user";
+ break;
+case "about":
+ $_item = "about";
+ break;
+default:
+ $_item = "home";
+ break;
+}
+
+?>
diff --git a/management-interface/php/home.inc.php b/management-interface/php/home.inc.php
new file mode 100644
index 0000000..b003336
--- /dev/null
+++ b/management-interface/php/home.inc.php
@@ -0,0 +1,10 @@
+<?php
+if (!$include) die("404 / Permission denied.");
+?>
+
+<div class="jumbotron">
+<h1>Hello user!</h1>
+<p>
+Lorem ipsum dolor sit amet.
+</p>
+</div>
diff --git a/management-interface/php/login.inc.php b/management-interface/php/login.inc.php
new file mode 100644
index 0000000..9d92195
--- /dev/null
+++ b/management-interface/php/login.inc.php
@@ -0,0 +1,14 @@
+<?php
+if (!$include) die("404 - Permission denied.");
+?>
+
+<div class="jumbotron">
+ <div class="container">
+ <form class="form-signin" role="form">
+ <h2 class="form-signin-heading">Please login</h2>
+ <input type="text" class="form-control" placeholder="Username" name="user" required autofocus>
+ <input type="password" class="form-control" placeholder="Password" name="pass" required>
+ <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
+ </form>
+ </div>
+</div>
diff --git a/management-interface/php/template.inc.php b/management-interface/php/template.inc.php
new file mode 100644
index 0000000..6c8bece
--- /dev/null
+++ b/management-interface/php/template.inc.php
@@ -0,0 +1,8 @@
+<?php
+if (!$include) die("404 - Permission denied.");
+?>
+
+<div class="jumbotron">
+<p>
+</p>
+</div>
diff --git a/management-interface/php/user.inc.php b/management-interface/php/user.inc.php
new file mode 100644
index 0000000..5361034
--- /dev/null
+++ b/management-interface/php/user.inc.php
@@ -0,0 +1,9 @@
+<?php
+if (!$include) die("404 - Permission denied.");
+?>
+
+<div class="jumbotron">
+<p>
+Current users:<br />
+</p>
+</div>