mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-05 09:11:29 +02:00
Added handle formatting for objects
And fixed RDAP URLs
This commit is contained in:
parent
964cd8f370
commit
4d3ee365a1
6 changed files with 51 additions and 47 deletions
|
@ -69,7 +69,7 @@ foreach ($tlds as $tld) {
|
|||
foreach ($domains as $domain) {
|
||||
$xml->startElement('rdeDom:domain');
|
||||
$xml->writeElement('rdeDom:name', $domain['name']);
|
||||
$xml->writeElement('rdeDom:roid', $domain['id']);
|
||||
$xml->writeElement('rdeDom:roid', 'D' . $domain['id']);
|
||||
$xml->writeElement('rdeDom:uName', $domain['name']);
|
||||
$xml->writeElement('rdeDom:idnTableId', 'Latn');
|
||||
|
||||
|
@ -168,7 +168,7 @@ foreach ($tlds as $tld) {
|
|||
foreach ($hosts as $host) {
|
||||
$xml->startElement('rdeHost:host');
|
||||
$xml->writeElement('rdeHost:name', $host['name']);
|
||||
$xml->writeElement('rdeHost:roid', $host['id']);
|
||||
$xml->writeElement('rdeHost:roid', 'H' . $host['id']);
|
||||
|
||||
$xml->startElement('rdeHost:status');
|
||||
$xml->writeAttribute('s', 'ok');
|
||||
|
@ -190,7 +190,7 @@ foreach ($tlds as $tld) {
|
|||
foreach ($contacts as $contact) {
|
||||
$xml->startElement('rdeContact:contact');
|
||||
$xml->writeElement('rdeContact:id', $contact['identifier']);
|
||||
$xml->writeElement('rdeContact:roid', $contact['id']);
|
||||
$xml->writeElement('rdeContact:roid', 'C' . $contact['id']);
|
||||
$xml->startElement('rdeContact:status');
|
||||
$xml->writeAttribute('s', 'ok');
|
||||
$xml->text('ok');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue