forked from csivitu/Penetrate-Me
-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_insert_h.php
99 lines (91 loc) · 2.62 KB
/
admin_insert_h.php
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
session_start();
if (isset($_SESSION['uname'])==false) {
?>
<script>
alert("Please Log In to access this page!");
window.location="http://localhost/admin_login.html";
</script>
<?php
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Penetrate Me! - Dashboard</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.1/css/bulma.min.css">
</head>
<body>
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="dashboard.php">
<h3>Penetrate Me!</h3>
</a>
</div>
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="dashboard.php">
Dashboard
</a>
</div>
</div>
<div class="navbar-end">
<div class="navbar-item">
<div class="buttons">
<a class="navbar-item" href="dashboard.php">
<?php
echo 'Welcome, '.$_SESSION['uname']
?>
</a>
<a class="button is-primary" href="backend/logout.php">
<strong>Logout</strong>
</a>
</div>
</div>
</div>
</div>
</nav>
<section class="section">
<div class="container">
<h1 class="title is-1">Insert a New User Here:</h1>
<form action="backend/admin_insert.php" method="post">
<div class="field">
<label class="label">Username</label>
<div class="control has-icons-left has-icons-right">
<input class="input" type="text" placeholder="Enter Username" name="username">
<span class="icon is-small is-left">
<i class="fas fa-user"></i>
</span>
</div>
</div>
<div class="field">
<label class="label">Email</label>
<div class="control has-icons-left has-icons-right">
<input class="input" type="email" placeholder="Enter Email" name="email">
<span class="icon is-small is-left">
<i class="far fa-envelope"></i>
</span>
</div>
</div>
<div class="field">
<label class="label">Balance</label>
<div class="control has-icons-left has-icons-right">
<input class="input" type="number" placeholder="Enter Balance" name="balance">
<span class="icon is-small is-left">
<i class="fas fa-wallet"></i>
</span>
</div>
</div>
<div class="field is-grouped">
<div class="control">
<input class="button is-link" value="Insert" type="submit">
</div>
</div>
</form>
</div>
</section>
<script src="https://kit.fontawesome.com/f50d5009f4.js" crossorigin="anonymous"></script>
</body>
</html>