diff --git a/lam/templates/lists/listgroups.php b/lam/templates/lists/listgroups.php index 70342b49..366b3bda 100644 --- a/lam/templates/lists/listgroups.php +++ b/lam/templates/lists/listgroups.php @@ -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; } diff --git a/lam/templates/lists/listhosts.php b/lam/templates/lists/listhosts.php index 94d8c94f..daed1343 100644 --- a/lam/templates/lists/listhosts.php +++ b/lam/templates/lists/listhosts.php @@ -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; } diff --git a/lam/templates/lists/listusers.php b/lam/templates/lists/listusers.php index d798c5ce..02779063 100644 --- a/lam/templates/lists/listusers.php +++ b/lam/templates/lists/listusers.php @@ -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']){