summaryrefslogtreecommitdiff
path: root/public/admin.html
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2023-01-29 19:28:48 -0500
committerTyler Murphy <tylermurphy534@gmail.com>2023-01-29 19:28:48 -0500
commitac58a612a3fe928793b77c592551fdd962b69064 (patch)
treec746d9325a88447e3149891a2435bcb1f3ece67a /public/admin.html
parentno mass rerendering html plus logging fix (diff)
downloadxssbook-ac58a612a3fe928793b77c592551fdd962b69064.tar.gz
xssbook-ac58a612a3fe928793b77c592551fdd962b69064.tar.bz2
xssbook-ac58a612a3fe928793b77c592551fdd962b69064.zip
admin page
Diffstat (limited to 'public/admin.html')
-rw-r--r--public/admin.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/public/admin.html b/public/admin.html
new file mode 100644
index 0000000..fe8e38b
--- /dev/null
+++ b/public/admin.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <link rel="stylesheet" href="/css/main.css">
+ <link rel="stylesheet" href="/css/header.css">
+ <link rel="stylesheet" href="/css/admin.css">
+ <title>XSSBook - Admin Panel</title>
+</head>
+<body>
+ <script src="/js/api.js"></script>
+ <script src="/js/admin.js"></script>
+ <div id="header">
+ <span class="logo"><a href="/">xssbook</a></span>
+ </div>
+ <div id="login" class="hidden">
+ <span class="gtext desc">Admin Login</span>
+ <form autocomplete="off" onsubmit="auth(event)">
+ <input autocomplete="new-password" type="password" name="adminpassword" id="adminpassword" placeholder="Login Secret">
+ </form>
+ </div>
+ <div id="admin" class="hidden">
+ <div id="queryinput">
+ <input type="text" name="query" id="query" placeholder="SQL Query">
+ <button class="submit" onclick="submit()">Submit</button>
+ <button class="view" onclick="posts()">View Posts</button>
+ <button class="view" onclick="users()">View Users</button>
+ <button class="view" onclick="sessions()">View Sessions</button>
+ </div>
+ <table id="table"></table>
+ </div>
+</body> \ No newline at end of file