Bernd Wurst commited on 2018-01-09 05:28:23
Zeige 1 geänderte Dateien mit 7 Einfügungen und 1 Löschungen.
... | ... |
@@ -68,7 +68,13 @@ foreach ($user_domains as $domain) |
68 | 68 |
$features = implode(', ', $features); |
69 | 69 |
if (! $features) |
70 | 70 |
$features = '<em>unbenutzt</em>'; |
71 |
- output(" <tr><td>{$domain->fqdn}</td><td>{$regdate}</td><td>{$features}</td></tr>\n"); |
|
71 |
+ $punycode = idn_to_ascii($domain->fqdn, 0, INTL_IDNA_VARIANT_UTS46); |
|
72 |
+ if ($punycode != $domain->fqdn) { |
|
73 |
+ $punycode = "<br/>($punycode)"; |
|
74 |
+ } else { |
|
75 |
+ $punycode = ''; |
|
76 |
+ } |
|
77 |
+ output(" <tr><td>{$domain->fqdn}{$punycode}</td><td>{$regdate}</td><td>{$features}</td></tr>\n"); |
|
72 | 78 |
} |
73 | 79 |
output('</table>'); |
74 | 80 |
output("<br />"); |
75 | 81 |