-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremoveUser.php
More file actions
43 lines (42 loc) · 1.77 KB
/
removeUser.php
File metadata and controls
43 lines (42 loc) · 1.77 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
<?php
session_start();
if (isset($_SESSION['id'])){
if (!($_SESSION['Email'] == "evan.pacini@gmail.com" || $_SESSION['Email'] == "maasdam03@gmail.com" || $_SESSION['Email'] == "kaspervanm@gmail.com" || $_SESSION['User'] == "Kuijlaars")) header("Location: https://thenewlorem.000webhostapp.com/");}
else header("Location: https://thenewlorem.000webhostapp.com/");
?>
<!DOCTYPE html>
<html>
<head>
<title>Remove User</title>
<meta charset="utf-8">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js" ></script>
<link rel="stylesheet" media="screen" href="css/css.css">
<link rel="stylesheet" media="screen" href="css/contact.css">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<meta name="google-signin-client_id" content="967580510442-4fpfl1b3u31jmkki8df96g5r9ff5rqv9.apps.googleusercontent.com">
</head>
<body>
<form action="return false">
<input name="user" type="text" required autocomplete="username" placeholder="Username or E-mail address"/><br />
<input name="pass" type="password" required autocomplete="current-password" placeholder="Admin Password"/>
<input type="hidden" name="DB_interface" value="removeUser"/>
<br/>
<button action="submit"><span>Remove</span></button>
</form><br/>
<p id="output"></p>
<script>
var output = document.getElementById("output");
$("form").submit(function(event){
event.preventDefault();
var arr = $(this).serializeArray();
console.log(arr);
$.post("DB_interface", {DB_interface:arr[2]["value"], pass:arr[1]["value"], user:arr[0]["value"]},
function success(e){
console.log(e);
output.innerHTML = e;
});
});
</script>
</body>
</html>