Rev 444 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 444 | Rev 496 | ||
---|---|---|---|
Line 364... | Line 364... | ||
364 | } |
364 | } |
365 | $ary = array( |
365 | $ary = array( |
366 | // https://code.visualstudio.com/docs/languages/json#_mapping-in-the-json |
366 | // https://code.visualstudio.com/docs/languages/json#_mapping-in-the-json |
367 | // Note that this syntax is VS Code-specific and not part of the JSON Schema specification. |
367 | // Note that this syntax is VS Code-specific and not part of the JSON Schema specification. |
368 | //'$schema' => 'https://oidplus.viathinksoft.com/oidplus/plugins/publicPages/100_whois/whois/json_schema.json', |
368 | //'$schema' => 'https://oidplus.viathinksoft.com/oidplus/plugins/publicPages/100_whois/whois/json_schema.json', |
369 | '$schema' => OIDplus::getSystemUrl().'plugins/publicPages/100_whois/whois/json_schema.json', |
369 | '$schema' => OIDplus::webpath().'plugins/publicPages/100_whois/whois/json_schema.json', |
370 | 370 | ||
371 | // we need this NAMED root, otherwise PHP will name the sections "0", "1", "2" if the array is not sequencial (e.g. because "signature" is added) |
371 | // we need this NAMED root, otherwise PHP will name the sections "0", "1", "2" if the array is not sequencial (e.g. because "signature" is added) |
372 | 'whois' => $ary |
372 | 'whois' => $ary |
373 | ); |
373 | ); |
374 | 374 | ||
Line 416... | Line 416... | ||
416 | header('Content-Type:application/xml; charset=UTF-8'); |
416 | header('Content-Type:application/xml; charset=UTF-8'); |
417 | echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'; |
417 | echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'; |
418 | echo '<root xmlns="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.1.1"'; |
418 | echo '<root xmlns="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.1.1"'; |
419 | echo ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'; |
419 | echo ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'; |
420 | //echo ' xsi:schemaLocation="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.1.1 https://oidplus.viathinksoft.com/oidplus/plugins/publicPages/100_whois/whois/xml_schema.xsd">'; |
420 | //echo ' xsi:schemaLocation="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.1.1 https://oidplus.viathinksoft.com/oidplus/plugins/publicPages/100_whois/whois/xml_schema.xsd">'; |
421 | echo ' xsi:schemaLocation="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.1.1 '.OIDplus::getSystemUrl().'plugins/publicPages/100_whois/whois/xml_schema.xsd">'; |
421 | echo ' xsi:schemaLocation="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.1.1 '.OIDplus::webpath().'plugins/publicPages/100_whois/whois/xml_schema.xsd">'; |
422 | echo $xml; |
422 | echo $xml; |
423 | echo '</root>'; |
423 | echo '</root>'; |
424 | } |
424 | } |
425 | 425 | ||
426 | # --- |
426 | # --- |