forked from berman-lab/ymap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.delete.php
executable file
·37 lines (36 loc) · 1.45 KB
/
user.delete.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
<?php
session_start();
require_once 'constants.php';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<style type="text/css">
body {font-family: arial;}
.tab { margin-left: 1cm; }
</style>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Ymap | Delete User</title>
<!-- Needed for deletion functions.--!>
<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript">
user = '<?php echo $_SESSION['user']; ?>';
</script>
</head>
<body>
<b>Delete User.</b>
<div class='tab' style='font-size:10pt'>
This action will <b>PERMANENTLY</b> delete the '<i><?php echo $_SESSION['user']; ?></i>' user account and all associated files.<br>
There are no backups to restore from.<br>
Are you absolutely sure?<br>
<div style='font-size:10pt'>
<form action="/">
<input type="button" value="Yes! Delete." onclick="console.log('@user.delete.php@ user = '+user); $.ajax({url : 'user.delete_server.php', type : 'post', data : {user : user}, success : function(answer){if(answer == 'COMPLETE'){console.log('user ' + user + ' deleted successfully');}} }); location.replace('panel.user.php');">
<input type="button" value="No! Cancel." onclick="location.replace('panel.user.php');">
</form>
</div>
</div>
</body>
</html>