$PluginArchiresLocationQuery->delete($_POST); Html::redirect(Toolbox::getItemTypeSearchURL('PluginArchiresLocationQuery')); } else { if (isset($_POST["restore"])) { $PluginArchiresLocationQuery->check($_POST['id'], 'w'); $PluginArchiresLocationQuery->restore($_POST); Html::redirect(Toolbox::getItemTypeSearchURL('PluginArchiresLocationQuery')); } else { if (isset($_POST["purge"])) { $PluginArchiresLocationQuery->check($_POST['id'], 'w'); $PluginArchiresLocationQuery->delete($_POST, 1); Html::redirect(Toolbox::getItemTypeSearchURL('PluginArchiresLocationQuery')); } else { if (isset($_POST["update"])) { $PluginArchiresLocationQuery->check($_POST['id'], 'w'); $PluginArchiresLocationQuery->update($_POST); Html::back(); } else { if (isset($_POST["duplicate"])) { $PluginArchiresLocationQuery->check($_POST['id'], 'w'); unset($_POST['id']); $PluginArchiresLocationQuery->add($_POST); Html::back(); } else { if (isset($_POST["addtype"])) { $test = explode(";", $_POST['type']); if (isset($test[0]) && isset($test[1])) { $_POST['type'] = $test[1]; $_POST['itemtype'] = $test[0]; if ($PluginArchiresQueryType->canCreate()) { $PluginArchiresQueryType->addType('PluginArchiresLocationQuery', $_POST['type'], $_POST['itemtype'], $_POST['query']);