mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-20 20:13:40 +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;
|
break;
|
||||||
|
|
||||||
case "delete":
|
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']);
|
delete_db_zone($zone['name']);
|
||||||
jtable_respond(null, 'delete');
|
jtable_respond(null, 'delete');
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue