Rev 790 | Rev 830 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 790 | Rev 801 | ||
---|---|---|---|
Line 21... | Line 21... | ||
21 | 21 | ||
22 | //define('XML_URN', 'urn:oid:1.3.6.1.4.1.37476.2.5.2.5.1.1'); |
22 | //define('XML_URN', 'urn:oid:1.3.6.1.4.1.37476.2.5.2.5.1.1'); |
23 | define('XML_URN', 'urn:ietf:id:viathinksoft-oidip-02'); |
23 | define('XML_URN', 'urn:ietf:id:viathinksoft-oidip-02'); |
24 | 24 | ||
25 | // define('XML_URN_URL', 'https://oidplus.viathinksoft.com/oidplus/plugins/publicPages/100_whois/whois/xml_schema.xsd'); |
25 | // define('XML_URN_URL', 'https://oidplus.viathinksoft.com/oidplus/plugins/publicPages/100_whois/whois/xml_schema.xsd'); |
26 | define('XML_URN_URL', OIDplus::webpath(__DIR__,true).'xml_schema.xsd'); |
26 | define('XML_URN_URL', OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'xml_schema.xsd'); |
27 | 27 | ||
28 | OIDplus::init(true); |
28 | OIDplus::init(true); |
29 | set_exception_handler(array('OIDplusGui', 'html_exception_handler')); |
29 | set_exception_handler(array('OIDplusGui', 'html_exception_handler')); |
30 | 30 | ||
31 | if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_OIDplusPagePublicWhois', false)) { |
31 | if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_OIDplusPagePublicWhois', false)) { |
Line 432... | Line 432... | ||
432 | } |
432 | } |
433 | $ary = array( |
433 | $ary = array( |
434 | // https://code.visualstudio.com/docs/languages/json#_mapping-in-the-json |
434 | // https://code.visualstudio.com/docs/languages/json#_mapping-in-the-json |
435 | // Note that this syntax is VS Code-specific and not part of the JSON Schema specification. |
435 | // Note that this syntax is VS Code-specific and not part of the JSON Schema specification. |
436 | //'$schema' => 'https://oidplus.viathinksoft.com/oidplus/plugins/publicPages/100_whois/whois/json_schema.json', |
436 | //'$schema' => 'https://oidplus.viathinksoft.com/oidplus/plugins/publicPages/100_whois/whois/json_schema.json', |
437 | '$schema' => OIDplus::webpath(__DIR__,true).'json_schema.json', |
437 | '$schema' => OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'json_schema.json', |
438 | 438 | ||
439 | // 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) |
439 | // 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) |
440 | 'oidip' => $ary |
440 | 'oidip' => $ary |
441 | ); |
441 | ); |
442 | 442 |