$domain->redirectToList(); } else { if (isset($_POST["purge"])) { $domain->check($_POST['id'], 'w'); $domain->delete($_POST, 1); $domain->redirectToList(); } else { if (isset($_POST["update"])) { $domain->check($_POST['id'], 'w'); $domain->update($_POST); Html::back(); } else { if (isset($_POST["additem"])) { if (!empty($_POST['itemtype']) && $_POST['items_id'] > 0) { $domain_item->check(-1, 'w', $_POST); $domain_item->addItem($_POST); } Html::back(); } else { if (isset($_POST["deleteitem"])) { foreach ($_POST["item"] as $key => $val) { $input = array('id' => $key); if ($val == 1) { $domain_item->check($key, 'w'); $domain_item->delete($input); } } Html::back(); } else { if (isset($_POST["deletedomains"])) { $input = array('id' => $_POST["id"]);