save accounts marked for deletion in session

This commit is contained in:
Roland Gruber 2003-10-01 20:44:40 +00:00
parent a782e5b4c8
commit ac7475584e
3 changed files with 6 additions and 6 deletions

View File

@ -52,8 +52,8 @@ if ($_POST['new_group'] || $_POST['del_group']){
if ($_POST['del_group']){ if ($_POST['del_group']){
// search for checkboxes // search for checkboxes
$groups = array_keys($_POST, "on"); $groups = array_keys($_POST, "on");
$groupstr = implode(";", $groups); $_SESSION['delete_dn'] = $groups;
metaRefresh("../delete.php?type=group&DN='$groupstr'"); metaRefresh("../delete.php?type=group");
} }
exit; exit;
} }

View File

@ -52,8 +52,8 @@ if ($_POST['new_host'] || $_POST['del_host']){
if ($_POST['del_host']){ if ($_POST['del_host']){
// search for checkboxes // search for checkboxes
$hosts = array_keys($_POST, "on"); $hosts = array_keys($_POST, "on");
$hoststr = implode(";", $hosts); $_SESSION['delete_dn'] = $hosts;
metaRefresh("../delete.php?type=host&DN='$hoststr'"); metaRefresh("../delete.php?type=host");
} }
exit; exit;
} }

View File

@ -73,8 +73,8 @@ if ($_POST['new_user'] || $_POST['del_user'] || $_POST['pdf_user'] || $_POST['pd
elseif ($_POST['del_user']){ elseif ($_POST['del_user']){
// search for checkboxes // search for checkboxes
$users = array_keys($_POST, "on"); $users = array_keys($_POST, "on");
$userstr = implode(";", $users); $_SESSION['delete_dn'] = $users;
metaRefresh("../delete.php?type=user&DN='$userstr'"); metaRefresh("../delete.php?type=user");
} }
// PDF for selected users // PDF for selected users
elseif ($_POST['pdf_user']){ elseif ($_POST['pdf_user']){