save accounts marked for deletion in session
This commit is contained in:
parent
a782e5b4c8
commit
ac7475584e
|
@ -52,8 +52,8 @@ if ($_POST['new_group'] || $_POST['del_group']){
|
|||
if ($_POST['del_group']){
|
||||
// search for checkboxes
|
||||
$groups = array_keys($_POST, "on");
|
||||
$groupstr = implode(";", $groups);
|
||||
metaRefresh("../delete.php?type=group&DN='$groupstr'");
|
||||
$_SESSION['delete_dn'] = $groups;
|
||||
metaRefresh("../delete.php?type=group");
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -52,8 +52,8 @@ if ($_POST['new_host'] || $_POST['del_host']){
|
|||
if ($_POST['del_host']){
|
||||
// search for checkboxes
|
||||
$hosts = array_keys($_POST, "on");
|
||||
$hoststr = implode(";", $hosts);
|
||||
metaRefresh("../delete.php?type=host&DN='$hoststr'");
|
||||
$_SESSION['delete_dn'] = $hosts;
|
||||
metaRefresh("../delete.php?type=host");
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -73,8 +73,8 @@ if ($_POST['new_user'] || $_POST['del_user'] || $_POST['pdf_user'] || $_POST['pd
|
|||
elseif ($_POST['del_user']){
|
||||
// search for checkboxes
|
||||
$users = array_keys($_POST, "on");
|
||||
$userstr = implode(";", $users);
|
||||
metaRefresh("../delete.php?type=user&DN='$userstr'");
|
||||
$_SESSION['delete_dn'] = $users;
|
||||
metaRefresh("../delete.php?type=user");
|
||||
}
|
||||
// PDF for selected users
|
||||
elseif ($_POST['pdf_user']){
|
||||
|
|
Loading…
Reference in New Issue