$changes[2] = __('Uncrypted', 'accounts'); Log::history($_POST['idcrypt'], "PluginAccountsAccount", $changes, 0, Log::HISTORY_LOG_SIMPLE_MESSAGE); } else { if (isset($_POST["additem"])) { if (!empty($_POST['itemtype'])) { $account_item->check(-1, 'w', $_POST); $account_item->addItem($_POST); } Html::back(); } else { if (isset($_POST["deleteitem"])) { foreach ($_POST["item"] as $key => $val) { $input = array('id' => $key); if ($val == 1) { $account_item->check($key, 'w'); $account_item->delete($input); } } Html::back(); //from items ? } else { if (isset($_POST["deleteaccounts"])) { $input = array('id' => $_POST["id"]); $account_item->check($_POST["id"], 'w'); $account_item->delete($input); Html::back(); } else { $account->checkGlobal("r"); if ($_SESSION['glpiactiveprofile']['interface'] == 'central') { $plugin = new Plugin(); if ($plugin->isActivated("environment")) {