-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathremove_role_permission.php
61 lines (58 loc) · 1.95 KB
/
remove_role_permission.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
<?
include("common.php");
include_once("session.php");
include("permission_functions.php");
if($_POST){
$ou = fixString($_POST['ou']);
$role = fixString($_POST['role']);
$permission = fixString($_POST['p']);
$affected = fixString($_POST['v']);
deleteRolePermission($ou, $role, $permission, $affected);
header("Location: permissions.php?ou=$ou&role=$role");
exit;
}
$ou = fixString($_GET['ou']);
$role = fixString($_GET['role']);
$permission = fixString($_GET['p']);
$affected = fixString($_GET['v']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?echo $site_title;?> </title>
<script type='text/javascript' src='<?echo $jquery_path;?>'></script>
<script type='text/javascript'>
$(document).ready(function() {
});
</script>
<?
echo $common_css;
?>
</head>
<body>
<div class="container">
<div class="content main">
<?
drawHeader($id);
?>
<div class="alert-message block-message warning span8">
<h2>Are you sure you want to remove this permission?</h2>
<table class="bordered-table">
<tr><td><b>OU</b></td><td><?echo $ou;?></td></tr>
<tr><td><b>Role</b></td><td><?echo $role;?></td></tr>
<tr><td><b>Permission</b></td><td><?echo $permission;?></td></tr>
<tr><td><b>Affected</b></td><td><?echo $affected;?></td></tr>
</table>
<form action="" method="post" name="remove_permission">
<input type="hidden" name="ou" value="<?echo $ou;?>" />
<input type="hidden" name="role" value="<?echo $role;?>" />
<input type="hidden" name="p" value="<?echo $permission;?>" />
<input type="hidden" name="v" value="<?echo $affected;?>" />
<input type="submit" class="btn danger" value="Yes, Remove Role's Permission" /> | <a href="permissions.php?ou=<?echo $ou;?>&role=<?echo $role;?>" class="btn" >Cancel</a>
</form>
</div>
</div>
</div>
</body>
</html>