-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuser.php
More file actions
67 lines (53 loc) · 1.59 KB
/
user.php
File metadata and controls
67 lines (53 loc) · 1.59 KB
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
<?php
include("header.php");
if($_SESSION['flag']=="allowed")
{
$function = $_POST['function'];
if($function=="add")
{
echo '
<ol class="breadcrumb">
<li><a href="index.php">Home</a></li>
<li><a href="system.php">Systems</a></li>
<li class="active">Add User</li>
</ol>
<div class="container" align="center">
<div class="container">
<form class="form-signin" role="form" action="user1.php" method="post">
<h2 class="form-signin-heading">Add New User</h2><br>
<input type="text" name="name" class="form-control" placeholder="Enter User Name" required><br>
<input type="password" name="password" class="form-control" placeholder="Enter Password" required>
<div>
<br>
<button class="btn btn-primary" name="sub" value="sub1">Add User</button>
</div>
</form>';
}
if($function=="delete")
{
echo '
<ol class="breadcrumb">
<li><a href="index.php">Home</a></li>
<li><a href="system.php">Systems</a></li>
<li class="active">Delete User</li>
</ol>
<div class="container" align="center">
<div class="container">
<form class="form-signin" role="form" action="user1.php" method="post">
<h2 class="form-signin-heading">Delete User</h2><br>
<input type="text" name="name" class="form-control" placeholder="Enter User Name to be Deleted" required>
<div>
<br>
<button class="btn btn-primary" name="sub" value="sub2">Delete</button>
</div>
</form>';
}
echo'
</div>
</body>
</center>
</html>';
}
else
header("location:index.php");
?>