mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
Implement DELETE
This commit is contained in:
parent
4ac1e6e767
commit
c8774fc05e
1 changed files with 2 additions and 2 deletions
|
@ -455,9 +455,9 @@ case "update":
|
|||
break;
|
||||
|
||||
case "delete":
|
||||
$zone = get_zone_by_id(isset($_POST['id']) ? $_POST['id'] : '');
|
||||
$zone = $api->loadzone($_POST['id']);
|
||||
$api->deletezone($_POST['id']);
|
||||
|
||||
api_request($zone['url'], array(), 'DELETE');
|
||||
delete_db_zone($zone['name']);
|
||||
jtable_respond(null, 'delete');
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue