diff --git a/lam/templates/lists/listgroups.php b/lam/templates/lists/listgroups.php index c5bda950..cbba98ab 100644 --- a/lam/templates/lists/listgroups.php +++ b/lam/templates/lists/listgroups.php @@ -29,6 +29,23 @@ include_once("../../lib/ldap.inc"); session_save_path("../../sess"); @session_start(); +// check if button was pressed and if we have to add/delete a group +if ($_POST['new_group'] || $_POST['del_group']){ + // add new group + if ($_POST['new_group']){ + echo(""); + exit; + } + // delete group(s) + if ($_POST['del_group']){ + // search for checkboxes + $groups = array_keys($_POST, "on"); + $groupstr = implode(";", $groups); + echo(""); + } + exit; +} + echo "