mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-08 00:57:01 +03:00
Merge 89f68de4d7
into 65df9e37c0
This commit is contained in:
commit
5647287640
1 changed files with 3 additions and 1 deletions
|
@ -152,6 +152,7 @@ function make_record($zone, $input) {
|
||||||
$disabled = (bool) (isset($input['disabled']) && $input['disabled']);
|
$disabled = (bool) (isset($input['disabled']) && $input['disabled']);
|
||||||
|
|
||||||
$content = isset($input['content']) ? $input['content'] : '';
|
$content = isset($input['content']) ? $input['content'] : '';
|
||||||
|
$priority = isset($input['priority']) ? $input['priority'] : '';
|
||||||
|
|
||||||
if ($type === 'TXT') {
|
if ($type === 'TXT') {
|
||||||
# empty TXT records are ok, otherwise require surrounding quotes: "..."
|
# empty TXT records are ok, otherwise require surrounding quotes: "..."
|
||||||
|
@ -176,7 +177,8 @@ function make_record($zone, $input) {
|
||||||
'type' => $type,
|
'type' => $type,
|
||||||
'name' => $name,
|
'name' => $name,
|
||||||
'ttl' => $ttl,
|
'ttl' => $ttl,
|
||||||
'content' => $content);
|
'content' => $content,
|
||||||
|
'priority' => $priority) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_records($zone, $name_and_type, $inputs) {
|
function update_records($zone, $name_and_type, $inputs) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue