Hanno Böck commited on 2024-07-09 14:52:30
Zeige 3 geänderte Dateien mit 4 Einfügungen und 4 Löschungen.
| ... | ... |
@@ -80,7 +80,7 @@ foreach ($records as $rec) {
|
| 80 | 80 |
} |
| 81 | 81 |
$ttl = ($rec['ttl'] ? $rec['ttl'] : 3600); |
| 82 | 82 |
$link = $rec['fqdn']; |
| 83 |
- if (!in_array($rec['type'], ['a', 'aaaa', 'mx', 'cname', 'ns', 'txt', 'spf', 'ptr', 'sshfp', 'srv', 'caa'])) {
|
|
| 83 |
+ if (!in_array($rec['type'], $implemented_record_types)) {
|
|
| 84 | 84 |
$editable = false; |
| 85 | 85 |
} |
| 86 | 86 |
$delete = internal_link('dns_record_save', icon_delete('Record löschen'), "id={$rec['id']}&action=delete");
|
| ... | ... |
@@ -113,7 +113,7 @@ if ($type == 'ptr' || $type == 'cname') {
|
| 113 | 113 |
'; |
| 114 | 114 |
} |
| 115 | 115 |
|
| 116 |
-if ($type == 'spf' || $type == 'txt') {
|
|
| 116 |
+if ($type == 'txt') {
|
|
| 117 | 117 |
$form .= ' |
| 118 | 118 |
<tr><td><label for="data">Inhalt:</label></td><td><input type="text" name="data" id="data" value="' . filter_output_html($data['data']) . '" /></td></tr> |
| 119 | 119 |
'; |
| ... | ... |
@@ -144,7 +144,7 @@ function get_dyndns_records($id) |
| 144 | 144 |
return $data; |
| 145 | 145 |
} |
| 146 | 146 |
|
| 147 |
-$valid_record_types = ['a', 'aaaa', 'mx', 'ns', 'spf', 'txt', 'cname', 'ptr', 'srv', 'raw', 'sshfp', 'caa', 'srv']; |
|
| 147 |
+$valid_record_types = ['a', 'aaaa', 'mx', 'ns', 'txt', 'cname', 'ptr', 'srv', 'sshfp', 'caa', 'raw']; |
|
| 148 | 148 |
|
| 149 | 149 |
|
| 150 | 150 |
function blank_dns_record($type) |
| ... | ... |
@@ -229,7 +229,7 @@ function warn_autorecord_collission($hostname, $domain, $type, $data) |
| 229 | 229 |
} |
| 230 | 230 |
|
| 231 | 231 |
|
| 232 |
-$implemented_record_types = ['a', 'aaaa', 'mx', 'spf', 'txt', 'cname', 'ptr', 'srv', 'ns', 'sshfp', 'caa']; |
|
| 232 |
+$implemented_record_types = ['a', 'aaaa', 'mx', 'ns', 'txt', 'cname', 'ptr', 'srv', 'sshfp', 'caa']; |
|
| 233 | 233 |
|
| 234 | 234 |
function save_dns_record($id, $record) |
| 235 | 235 |
{
|
| 236 | 236 |