Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1051 → Rev 1052

/trunk/plugins/viathinksoft/adminPages/400_oidinfo_export/OIDplusPageAdminOIDInfoExport.class.php
2,7 → 2,7
 
/*
* OIDplus 2.0
* Copyright 2019 - 2021 Daniel Marschall, ViaThinkSoft
* Copyright 2019 - 2022 Daniel Marschall, ViaThinkSoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
277,6 → 277,7
} else {
$aids = $obj->getAltIds();
foreach ($aids as $aid) {
// TODO: Let Object Type plugins decide if they want that their OID representations get published or not (via a Feature OID implementation)
if ($aid->getNamespace() == 'oid') {
$oid = $aid->getId();
if (strpos($oid.'.', $root['oid']) === 0) {
298,7 → 299,7
 
$row = $row_lookup[$local_oid];
 
$url = "http://www.oid-info.com/cgi-bin/manage?f=".oid_up($local_oid)."&a=create";
$url = "https://oid-rep.orange-labs.fr/cgi-bin/manage?f=".oid_up($local_oid)."&a=create";
 
$tmp = explode('.',$local_oid);
$url .= "&nb=".urlencode(array_pop($tmp));
529,6 → 530,7
if (!$obj) continue; // can happen when object type is not enabled
$aids = $obj->getAltIds();
foreach ($aids as $aid) {
// TODO: Let Object Type plugins decide if they want that their OID representations get published or not (via a Feature OID implementation)
if ($aid->getNamespace() == 'oid') {
$all_local_oids[] = $aid->getId();
}
556,7 → 558,7
$count++;
// Note: "Actions" is at the left, because it has a fixed width, so the user can continue clicking without the links moving if the OID length changes between lines
$out['text'] .= '<tr id="missing_oid_'.str_replace('.','_',$child_oid).'">'.
'<td><a target="_blank" href="http://www.oid-info.com/get/'.$child_oid.'">'._L('View OID at oid-info.com').'</a></td>'.
'<td><a target="_blank" href="https://oid-rep.orange-labs.fr/get/'.$child_oid.'">'._L('View OID at oid-info.com').'</a></td>'.
'<td><a href="javascript:OIDplusPageAdminOIDInfoExport.removeMissingOid(\''.$child_oid.'\');">'._L('Ignore for now').'</a></td>'.
'<td><a href="mailto:admin@oid-info.com">'._L('Report illegal OID').'</a></td>'.
(strpos($child_oid,'1.3.6.1.4.1.37476.30.9.') === 0 ? '<td>&nbsp;</td>' : '<td><a href="javascript:OIDplusPageAdminOIDInfoExport.importMissingOid(\''.$child_oid.'\');">'._L('Import OID').'</a></td>').
600,10 → 602,10
$out['text'] .= OIDplus::gui()->tabContentStart();
// ---------------- "Export" tab
$tabcont = '<h2>'._L('Generate XML file containing all OIDs').'</h2>';
$tabcont .= '<p>'._L('These XML files are following the <a %1>XML schema</a> of <b>oid-info.com</b>. They can be used for various purposes though.','href="http://www.oid-info.com/oid.xsd" target="_blank"').'</p>';
$tabcont .= '<p>'._L('These XML files are following the <a %1>XML schema</a> of <b>oid-info.com</b>. They can be used for various purposes though.','href="https://oid-rep.orange-labs.fr/oid.xsd" target="_blank"').'</p>';
$tabcont .= '<p><input type="button" onclick="window.open(\''.OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'oidinfo_export.php\',\'_blank\')" value="'._L('Generate XML (all OIDs)').'"></p>';
$tabcont .= '<p><input type="button" onclick="window.open(\''.OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'oidinfo_export.php?online=1\',\'_blank\')" value="'._L('Generate XML (only OIDs which do not exist at oid-info.com)').'"></p>';
$tabcont .= '<p><a href="http://www.oid-info.com/submit.htm" target="_blank">'._L('Upload XML files manually to oid-info.com').'</a></p>';
$tabcont .= '<p><a href="https://oid-rep.orange-labs.fr/submit.htm" target="_blank">'._L('Upload XML files manually to oid-info.com').'</a></p>';
$tabcont .= '<br><p>'._L('Attention: Do not use this XML Export/Import to exchange, backup or restore data between OIDplus systems!<br>It will cause various loss of information, e.g. because Non-OIDs like GUIDs are converted in OIDs and can\'t be converted back.').'</p>';
$tabcont .= '<h2>'._L('Automatic export to oid-info.com').'</h2>';
$privacy_level = OIDplus::config()->getValue('reg_privacy');
617,7 → 619,7
$out['text'] .= OIDplus::gui()->tabContentPage('export', $tabcont, $tab === 'export');
// ---------------- "Import" tab
$tabcont = '<h2>'._L('Import XML file').'</h2>';
$tabcont .= '<p>'._L('These XML files are following the <a %1>XML schema</a> of <b>oid-info.com</b>.','href="http://www.oid-info.com/oid.xsd" target="_blank"').'</p>';
$tabcont .= '<p>'._L('These XML files are following the <a %1>XML schema</a> of <b>oid-info.com</b>.','href="https://oid-rep.orange-labs.fr/oid.xsd" target="_blank"').'</p>';
// TODO: we need a waiting animation!
$tabcont .= '<form action="javascript:void(0);" onsubmit="return OIDplusPageAdminOIDInfoExport.uploadXmlFileOnSubmit(this);" enctype="multipart/form-data" id="uploadXmlFileForm">';
$tabcont .= '<div>'._L('Choose XML file here').':<input type="file" name="userfile" value="" id="userfile">';
841,6 → 843,7
$id = $alt_id->getId();
$desc = $alt_id->getDescription();
if ($ns == 'oid') {
// TODO: Let Object Type plugins decide if they want that their OID representations get published or not (via a Feature OID implementation)
if (strpos($id, '2.25.') === 0) continue; // don't spam the uuid arc with GUID objects
$out_content .= $oa->createXMLEntry($id, $elements, $params, $comment=$obj->nodeId());
}
/trunk/plugins/viathinksoft/objectTypes/oid/OIDplusOid.class.php
103,15 → 103,15
$tech_info = array();
 
$tmp = _L('Dot notation');
$tmp = str_replace(explode(' ', $tmp, 2)[0], '<a href="http://oid-info.com/faq.htm#14" target="_blank">'.explode(' ', $tmp, 2)[0].'</a>', $tmp);
$tmp = str_replace(explode(' ', $tmp, 2)[0], '<a href="https://oid-rep.orange-labs.fr/faq.htm#14" target="_blank">'.explode(' ', $tmp, 2)[0].'</a>', $tmp);
$tech_info[$tmp] = $this->getDotNotation();
 
$tmp = _L('ASN.1 notation');
$tmp = str_replace(explode(' ', $tmp, 2)[0], '<a href="http://oid-info.com/faq.htm#17" target="_blank">'.explode(' ', $tmp, 2)[0].'</a>', $tmp);
$tmp = str_replace(explode(' ', $tmp, 2)[0], '<a href="https://oid-rep.orange-labs.fr/faq.htm#17" target="_blank">'.explode(' ', $tmp, 2)[0].'</a>', $tmp);
$tech_info[$tmp] = $this->getAsn1Notation();
 
$tmp = _L('OID-IRI notation');
$tmp = str_replace(explode(' ', $tmp, 2)[0], '<a href="http://oid-info.com/faq.htm#iri" target="_blank">'.explode(' ', $tmp, 2)[0].'</a>', $tmp);
$tmp = str_replace(explode(' ', $tmp, 2)[0], '<a href="https://oid-rep.orange-labs.fr/faq.htm#iri" target="_blank">'.explode(' ', $tmp, 2)[0].'</a>', $tmp);
$tech_info[$tmp] = $this->getIriNotation();
 
$tmp = _L('WEID notation');
/trunk/plugins/viathinksoft/publicPages/100_whois/OIDplusOIDIP.class.php
240,7 → 240,7
if ($only_wellknown_ids_found) {
if (substr($query,0,4) === 'oid:') {
// Since it is well-known, oid-info.com will most likely have it described
$out[] = $this->_oidip_attr('url', 'http://www.oid-info.com/get/'.$obj->nodeId(false));
$out[] = $this->_oidip_attr('url', 'https://oid-rep.orange-labs.fr/get/'.$obj->nodeId(false));
}
} else {
$out[] = $this->_oidip_attr('url', OIDplus::webpath(null,OIDplus::PATH_ABSOLUTE).'?goto='.urlencode($obj->nodeId(true)));
/trunk/plugins/viathinksoft/publicPages/200_viathinksoft_freeoid/tos$dede.html
18,11 → 18,11
<li>Lesen Sie die folgenden Punkte sorgfältig durch, um sicherzustellen, dass Sie einen geeigneten OID-Namensraum für Ihre Anforderungen erhalten:<ul>
<li><b>Wenn Sie ein Unternehmen vertreten, sollten Sie stattdessen eine OID unter <code>1.3.6.1.4.1</code> registrieren (<a href="http://pen.iana.org" target="_blank">weitere Informationen</a>).</b></li>
<li>Wenn Sie nur eine OID für ein Beispiel in einem Dokument benötigen, verwenden Sie bitte die OID <code>2.999</code> (keine Registrierung erforderlich).</li>
<!--<li>Wenn Sie sicher sind, dass Ihre Zielanwendung OIDs mit 128-Bit-Nummern zulässt (was für die meisten ASN.1-Implementierungen <strong>nicht</strong> gilt), können Sie eine global eindeutige OID (UUID OID) unter OID <code>2.25</code> registrieren (siehe <a href="https://misc.daniel-marschall.de/tools/uuid_mac_decoder/interprete_uuid.php?uuid=CREATE" target="_blank">Generieren einer solchen OID</a> und <a href="http://www.oid-info.com/faq.htm#size-limitations" target="_blank">weitere Informationen zu bekannten Einschränkungen</a> ). Sie können jedoch weiterhin eine OID von diesem Dienst anfordern, da diese kürzer und leichter zu merken ist.</li>-->
<!--<li>Wenn Sie sicher sind, dass Ihre Zielanwendung OIDs mit 128-Bit-Nummern zulässt (was für die meisten ASN.1-Implementierungen <strong>nicht</strong> gilt), können Sie eine global eindeutige OID (UUID OID) unter OID <code>2.25</code> registrieren (siehe <a href="https://misc.daniel-marschall.de/tools/uuid_mac_decoder/interprete_uuid.php?uuid=CREATE" target="_blank">Generieren einer solchen OID</a> und <a href="https://oid-rep.orange-labs.fr/faq.htm#size-limitations" target="_blank">weitere Informationen zu bekannten Einschränkungen</a> ). Sie können jedoch weiterhin eine OID von diesem Dienst anfordern, da diese kürzer und leichter zu merken ist.</li>-->
<li>Wenn Sie das Active Directory-Schema erweitern möchten, sollten Sie stattdessen eine OID von Microsoft anfordern (<a href="http://msdn.microsoft.com/en-us/library/ms677620.aspx" target="_blank">weitere Informationen</a>).</li>
<li>Wenn Sie ein Land vertreten, sollten Sie stattdessen eine Unter-OID von <code>1.2</code> (veraltet) oder <code>2.16</code> (empfohlen) anfordern (<a href="http://www.oid-info.com/faq.htm#11" target="_blank">weitere Informationen</a>).</li>
<li>Wenn Sie einen Telekommunikationsbetreiber vertreten, sollten Sie stattdessen eine Unter-OID von <code>0.2</code> anfordern (<a href="http://www.oid-info.com/get/0.2" target="_blank">weitere Informationen</a>).</li>
<li>Wenn Sie einen Netzbetreiber vertreten, sollten Sie stattdessen eine Unter-OID von <code>0.3</code> anfordern (<a href="http://www.oid-info.com/get/0.3" target="_blank">weitere Informationen</a>).</li>
<li>Wenn Sie ein Land vertreten, sollten Sie stattdessen eine Unter-OID von <code>1.2</code> (veraltet) oder <code>2.16</code> (empfohlen) anfordern (<a href="https://oid-rep.orange-labs.fr/faq.htm#11" target="_blank">weitere Informationen</a>).</li>
<li>Wenn Sie einen Telekommunikationsbetreiber vertreten, sollten Sie stattdessen eine Unter-OID von <code>0.2</code> anfordern (<a href="https://oid-rep.orange-labs.fr/get/0.2" target="_blank">weitere Informationen</a>).</li>
<li>Wenn Sie einen Netzbetreiber vertreten, sollten Sie stattdessen eine Unter-OID von <code>0.3</code> anfordern (<a href="https://oid-rep.orange-labs.fr/get/0.3" target="_blank">weitere Informationen</a>).</li>
</ul><br></li>
 
<li><b><u>Wie funktioniert die Registrierung?</u></b></li>
30,7 → 30,7
<li>Sie können entweder Ihren persönlichen Namen angeben, den Namen Ihrer Arbeitsgruppe, oder auch einen Spitznamen. Namen wir "Anonym" oder "Max Mustermann" sind nicht zulässig und führen zum Verlust der OID-Registrierung, insbesondere wenn sich herausstellt, dass es sich bei der E-Mail-Adresse um eine "Wegwerf"-Adresse handelte.<br><br></li>
 
<li><b><u>Welche Daten werden nach der Registrierung veröffentlicht?</u></b></li>
<li><b>Sie erklären sich damit einverstanden, dass Ihre OID einschließlich Ihrer E-Mail-Adresse in diesem öffentlichen Register sowie auf <a href="http://oid-info.com/get/1.3.6.1.4.1.37476.9000" target="_blank">oid-info.com</a> und anderen öffentlichen Diensten veröffentlicht wird.</b></li>
<li><b>Sie erklären sich damit einverstanden, dass Ihre OID einschließlich Ihrer E-Mail-Adresse in diesem öffentlichen Register sowie auf <a href="https://oid-rep.orange-labs.fr/get/{{ROOT_OID}}" target="_blank">oid-info.com</a> und anderen öffentlichen Diensten veröffentlicht wird.</b></li>
<li>Eine registrierte OID kann niemals abgemeldet oder neu zugewiesen werden. Sie wird immer für die Öffentlichkeit sichtbar bleiben.</li>
<li>Unter-OIDs, die Sie erstellen, werden automatisch auch bei oid-info.com veröffentlicht, es sei denn Sie markieren die Unter-OID beim Erstellen als "Privat". Dann bleibt die OID für die Öffentlichkeit unsichtbar.<br><br></li>
 
/trunk/plugins/viathinksoft/publicPages/200_viathinksoft_freeoid/tos.html
18,11 → 18,11
<li>To ensure that you get an appropriate OID namespace for your needs, please read the following points carefully:<ul>
<li><b>If you are representing a company, you should consider registering an OID in arc <code>1.3.6.1.4.1</code> instead (<a href="http://pen.iana.org" target="_blank">more information</a>).</b></li>
<li>If you only need an OID for an example in a document, please use the OID <code>2.999</code> (no registration required).</li>
<!--<li>If you are sure that your target application does allow OIDs with 128-bit arcs (which does <strong>not</strong> apply to most ASN.1 implementations), you can register a globally unique OID (UUID OID) in arc <code>2.25</code> (see <a href="https://misc.daniel-marschall.de/tools/uuid_mac_decoder/interprete_uuid.php?uuid=CREATE" target="_blank">generate OID</a> and <a href="http://www.oid-info.com/faq.htm#size-limitations" target="_blank">more information about known limitations</a>). However, you can still request an OID from this service, because it is shorter and easier to remember.</li>-->
<!--<li>If you are sure that your target application does allow OIDs with 128-bit arcs (which does <strong>not</strong> apply to most ASN.1 implementations), you can register a globally unique OID (UUID OID) in arc <code>2.25</code> (see <a href="https://misc.daniel-marschall.de/tools/uuid_mac_decoder/interprete_uuid.php?uuid=CREATE" target="_blank">generate OID</a> and <a href="https://oid-rep.orange-labs.fr/faq.htm#size-limitations" target="_blank">more information about known limitations</a>). However, you can still request an OID from this service, because it is shorter and easier to remember.</li>-->
<li>If you want to extend the Active Directory schema, please consider obtaining an OID from Microsoft instead (<a href="http://msdn.microsoft.com/en-us/library/ms677620.aspx" target="_blank">more information</a>).</li>
<li>If you are representing a country, you should consider registering an OID under arc <code>1.2</code> (deprecated) or <code>2.16</code> (recommended) instead (<a href="http://www.oid-info.com/faq.htm#11" target="_blank">more information</a>).</li>
<li>If you are representing a telecom operator, you should consider registering an OID in arc <code>0.2</code> instead (<a href="http://www.oid-info.com/get/0.2" target="_blank">more information</a>).</li>
<li>If you are representing a network operator, you should consider registering an OID in arc <code>0.3</code> instead (<a href="http://www.oid-info.com/get/0.3" target="_blank">more information</a>).</li>
<li>If you are representing a country, you should consider registering an OID under arc <code>1.2</code> (deprecated) or <code>2.16</code> (recommended) instead (<a href="https://oid-rep.orange-labs.fr/faq.htm#11" target="_blank">more information</a>).</li>
<li>If you are representing a telecom operator, you should consider registering an OID in arc <code>0.2</code> instead (<a href="https://oid-rep.orange-labs.fr/get/0.2" target="_blank">more information</a>).</li>
<li>If you are representing a network operator, you should consider registering an OID in arc <code>0.3</code> instead (<a href="https://oid-rep.orange-labs.fr/get/0.3" target="_blank">more information</a>).</li>
</ul><br></li>
 
<li><b><u>How does the registration work?</u></b></li>
30,7 → 30,7
<li>You can either enter your personal name, the name of your workgroup, or a nickname. Names like "Anonymous" or "John Doe" are not permitted and will lead to the loss of the OID registration, especially if it turns out that the e-mail address was a "trash" address.<br><br></li>
 
<li><b><u>Which data will be published after registration?</u></b></li>
<li><b>You agree that your OID including your email address will be published in this public registry as well as in <a href="http://oid-info.com/get/{{ROOT_OID}}" target="_blank">oid-info.com</a> and other public services.</b></li>
<li><b>You agree that your OID including your email address will be published in this public registry as well as in <a href="https://oid-rep.orange-labs.fr/{{ROOT_OID}}" target="_blank">oid-info.com</a> and other public services.</b></li>
<li>A registered OID can never be unregistered or reassigned. It will always stay visible to the public.</li>
<li>Sub-OIDs that you create in this OIDplus system will automatically be transferred to oid-info.com, unless you mark the sub-OIDs as private during the creation - then it stays invisible for the public.<br><br></li>