Exemple #1
0
     $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"]);
                 $domain_item->check($_POST["id"], 'w');
                 $domain_item->delete($input);
                 Html::back();
             } else {
                 $domain->checkGlobal("r");
                 $plugin = new Plugin();
                 if ($plugin->isActivated("environment")) {
                     Html::header(PluginDomainsDomain::getTypeName(2), '', "plugins", "environment", "domains");
                 } else {