Zeige IPv6-Adresse beim DynDNS
Bernd Wurst

Bernd Wurst commited on 2019-01-24 12:34:21
Zeige 1 geänderte Dateien mit 8 Einfügungen und 1 Löschungen.

... ...
@@ -48,7 +48,14 @@ foreach ($dyndns as $entry) {
48 48
     } else {
49 49
         $method = '<em>keine</em>';
50 50
     }
51
-    output("<tr><td>".internal_link('dyndns_edit', $handle, "id={$entry['id']}")."</td><td>{$method}</td><td>{$entry['address']}</td><td>{$entry['lastchange']}</td><td>".internal_link('save', icon_delete("Account löschen"), "id={$entry['id']}&type=dyndns&action=delete").' '.internal_link('dyndns_hostnames', other_icon("world_link.png", "Hostnames verwalten"), "id={$entry['id']}")."</td></tr>\n");
51
+    $address = $entry['address'];
52
+    if ($address == '') {
53
+        $address = "<em>keine IPv4-Adresse</em>";
54
+    }
55
+    if ($entry['ipv6']) {
56
+        $address .= " / ".$entry['ipv6'];
57
+    }
58
+    output("<tr><td>".internal_link('dyndns_edit', $handle, "id={$entry['id']}")."</td><td>{$method}</td><td>{$address}</td><td>{$entry['lastchange']}</td><td>".internal_link('save', icon_delete("Account löschen"), "id={$entry['id']}&type=dyndns&action=delete").' '.internal_link('dyndns_hostnames', other_icon("world_link.png", "Hostnames verwalten"), "id={$entry['id']}")."</td></tr>\n");
52 59
 }
53 60
 output('</table>');
54 61
 
55 62