aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Server.WebAdmin/Resources
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-11 20:40:40 -0500
committerMichael <[email protected]>2017-02-11 20:40:40 -0500
commit118174ec137a07c376f08ac02f995b99dc8facd9 (patch)
tree3fa75bc7c9128f8ad9b40b8689a255b9156cc54f /ShiftOS.Server.WebAdmin/Resources
parent263ee283de817c68bad1b2c7ff55a6f370a0c2c9 (diff)
downloadshiftos_thereturn-118174ec137a07c376f08ac02f995b99dc8facd9.tar.gz
shiftos_thereturn-118174ec137a07c376f08ac02f995b99dc8facd9.tar.bz2
shiftos_thereturn-118174ec137a07c376f08ac02f995b99dc8facd9.zip
Admin panel login system is working.
Diffstat (limited to 'ShiftOS.Server.WebAdmin/Resources')
-rw-r--r--ShiftOS.Server.WebAdmin/Resources/HtmlTemplate.txt32
-rw-r--r--ShiftOS.Server.WebAdmin/Resources/LoginView.txt15
-rw-r--r--ShiftOS.Server.WebAdmin/Resources/SetupView.txt22
-rw-r--r--ShiftOS.Server.WebAdmin/Resources/Status.txt19
4 files changed, 70 insertions, 18 deletions
diff --git a/ShiftOS.Server.WebAdmin/Resources/HtmlTemplate.txt b/ShiftOS.Server.WebAdmin/Resources/HtmlTemplate.txt
index 7f10c59..fa0fcc6 100644
--- a/ShiftOS.Server.WebAdmin/Resources/HtmlTemplate.txt
+++ b/ShiftOS.Server.WebAdmin/Resources/HtmlTemplate.txt
@@ -3,42 +3,42 @@
<title>Multi-user domain &bull; ShiftOS</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
- <link rel="stylesheet" href="css/theme.css"/>
+ <link rel="stylesheet" href="http://getshiftos.ml/css/theme.css"/>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body>
- <!-- Sidebar -->
- <div id="sidebar-wrapper">
- <ul class="sidebar-nav">
- <li class="sidebar-brand">
- <a href="http://getshiftos.ml/">
- <img src="https://cdn.discordapp.com/attachments/241613675545231360/280020406528901131/unknown.png"/>
- </a>
- </li>
+ <div class="navbar navbar-default">
+ <div class+"navbar-header">
+ <a class="navbar-brand" href="http://getshiftos.ml">ShiftOS</a>
+ </div>
+ <ul class="nav navbar-nav">
<li>
- <a href="/status">System status</a>
+ <a href="/webadmin/status">System status</a>
</li>
<li>
- <a href="/saves">Test subjects</a>
+ <a href="/webadmin/saves">Test subjects</a>
</li>
<li>
- <a href="/shiftnet">Shiftnet</a>
+ <a href="/webadmin/shiftnet">Shiftnet</a>
</li>
<li>
- <a href="/scripts">Scripts</a>
+ <a href="/webadmin/scripts">Scripts</a>
</li>
<li>
- <a href="/legions">Legions</a>
+ <a href="/webadmin/legions">Legions</a>
</li>
<li>
- <a href="/shops">Shops</a>
+ <a href="/webadmin/shops">Shops</a>
</li>
<li>
- <a href="/help">Help</a>
+ <a href="/webadmin/help">Help</a>
</li>
</ul>
+ <ul class="nav navbar-nav navbar-right">
+ {logout}
+ </ul>
</div>
<!-- /#sidebar-wrapper -->
diff --git a/ShiftOS.Server.WebAdmin/Resources/LoginView.txt b/ShiftOS.Server.WebAdmin/Resources/LoginView.txt
index 3b12e87..d5e61cf 100644
--- a/ShiftOS.Server.WebAdmin/Resources/LoginView.txt
+++ b/ShiftOS.Server.WebAdmin/Resources/LoginView.txt
@@ -14,7 +14,18 @@
</tr>
<tr>
<td></td>
- <td><input type="submit" class="btn btn-default">Login</input>
+ <td><input type="submit" class="btn btn-default"/></td>
</tr>
</table>
-</form> \ No newline at end of file
+</form>
+
+<div class="row">
+ <div class="col-xs-6">
+ <h4>What are my credentials?</h4>
+ <p>If you do not know your credentials, you are not a ShiftOS developer with write-access to the GitHub repository and authorized access to the multi-user domain's backend, so we ask that you get off this site and try to hack the MUD in-game. Thank you.</p>
+ </div>
+ <div class="col-xs-6">
+ <h4>I am a developer.</h4>
+ <p>Please contact Michael VanOverbeek if you are a developer and have not yet received your credentials.</p>
+ </div>
+</div> \ No newline at end of file
diff --git a/ShiftOS.Server.WebAdmin/Resources/SetupView.txt b/ShiftOS.Server.WebAdmin/Resources/SetupView.txt
new file mode 100644
index 0000000..d1226dd
--- /dev/null
+++ b/ShiftOS.Server.WebAdmin/Resources/SetupView.txt
@@ -0,0 +1,22 @@
+<h1>Initial setup</h1>
+
+<p>Welcome to your multi-user domain. If you are seeing this screen, it means that the web administration panel is successfully running and listening for requests. Before you can start using the admin panel you must create an Admin account. This account will let you log in and manage other authorized users, manage saves, Shiftnet pages and other information.</p>
+
+<p>To continue, type a username and password.</p>
+
+<form method="post" action="">
+ <table class="table">
+ <tr>
+ <td><strong>Username:</strong></td>
+ <td><input class="form-control" type="text" name="username"/></td>
+ </tr>
+ <tr>
+ <td><strong>Password:</strong></td>
+ <td><input class="form-control" type="password" name="password"/></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><input type="submit" class="btn btn-default"/></td>
+ </tr>
+ </table>
+</form> \ No newline at end of file
diff --git a/ShiftOS.Server.WebAdmin/Resources/Status.txt b/ShiftOS.Server.WebAdmin/Resources/Status.txt
new file mode 100644
index 0000000..b63d9cd
--- /dev/null
+++ b/ShiftOS.Server.WebAdmin/Resources/Status.txt
@@ -0,0 +1,19 @@
+<h3>System status</h3>
+
+<p>Below is a summary of this multi-user domain's status.</p>
+
+<div class="row">
+ <div class="col-xs-6">
+ <h4>MUD stats</h4>
+ <ul>
+ <li>This server is worth <strong>{cp_worth}</strong> Codepoints.</li>
+ <li>This server has <strong>{user_count}</strong> players registered.</li>
+ </ul>
+ </div>
+ <div class="col-xs-6">
+ <h4>System environment</h4>
+ <ul>
+ <li><strong>Current system time:</strong> {system_time}</li>
+ </ul>
+ </div>
+</div> \ No newline at end of file