Implement set-ptr. Closes #51 . Make 'true/false' prettier

This commit is contained in:
Mark Schouten 2016-08-04 16:55:03 +02:00
parent 5cd225cb43
commit d103c7b04f
3 changed files with 42 additions and 16 deletions

View file

@ -324,7 +324,7 @@ case "createrecord":
jtable_respond(null, 'error', "Please only use ASCII-characters in your fields");
}
$record = $zone->addRecord($name, $type, $content, $_POST['disabled'], $_POST['ttl']);
$record = $zone->addRecord($name, $type, $content, $_POST['disabled'], $_POST['ttl'], $_POST['setptr']);
$api->savezone($zone->export());
jtable_respond($record, 'single');
@ -338,7 +338,7 @@ case "editrecord":
$rrset = $zone->getRRSet($old_record['name'], $old_record['type']);
$rrset->deleteRecord($old_record['content']);
$zone->addRecord($_POST['name'], $_POST['type'], $_POST['content'], $_POST['disabled'], $_POST['ttl']);
$zone->addRecord($_POST['name'], $_POST['type'], $_POST['content'], $_POST['disabled'], $_POST['ttl'], $_POST['setptr']);
$api->savezone($zone->export());