Rev 75 | Rev 82 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 75 | Rev 76 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <?php |
1 | <?php |
2 | 2 | ||
3 | /* |
3 | /* |
4 | * UUID & MAC Utils |
4 | * UUID & MAC Utils |
5 | * Copyright 2017 - 2023 Daniel Marschall, ViaThinkSoft |
5 | * Copyright 2017 - 2023 Daniel Marschall, ViaThinkSoft |
6 | * Version 2023-10-06 |
6 | * Version 2023-11-10 |
7 | * |
7 | * |
8 | * Licensed under the Apache License, Version 2.0 (the "License"); |
8 | * Licensed under the Apache License, Version 2.0 (the "License"); |
9 | * you may not use this file except in compliance with the License. |
9 | * you may not use this file except in compliance with the License. |
10 | * You may obtain a copy of the License at |
10 | * You may obtain a copy of the License at |
11 | * |
11 | * |
Line 410... | Line 410... | ||
410 | <label>Namespace:</label><select name="namespace_choose" id="nb_nsc" onchange="javascript:nb_ns_choose();"> |
410 | <label>Namespace:</label><select name="namespace_choose" id="nb_nsc" onchange="javascript:nb_ns_choose();"> |
411 | <option value="dns">DNS</option> |
411 | <option value="dns">DNS</option> |
412 | <option value="url">URL</option> |
412 | <option value="url">URL</option> |
413 | <option value="oid">OID</option> |
413 | <option value="oid">OID</option> |
414 | <option value="x500">X.500 DN</option> |
414 | <option value="x500">X.500 DN</option> |
- | 415 | <option value="r74n">R74n Namespace</option> |
|
415 | <!-- <option value="oidplus_ns">OIDplus ns only</option> --> |
416 | <!-- <option value="oidplus_ns">OIDplus ns only</option> --> |
416 | <!-- <option value="oidplus_ns_val">OIDplus ns+val</option> --> |
417 | <!-- <option value="oidplus_ns_val">OIDplus ns+val</option> --> |
417 | <!-- <option value="oidplus_pubkey">OIDplus pubkey</option> --> |
418 | <!-- <option value="oidplus_pubkey">OIDplus pubkey</option> --> |
418 | <option value="other">Other</option> |
419 | <option value="other">Other</option> |
419 | </select> = Namespace UUID: <input type="text" name="nb_ns" value="" id="nb_ns" style="width:270px" onchange="javascript:nb_ns_textchange();" pattern="[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}"><br> |
420 | </select> = Namespace UUID: <input type="text" name="nb_ns" value="" id="nb_ns" style="width:270px" onchange="javascript:nb_ns_textchange();" pattern="[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}"><br> |
Line 451... | Line 452... | ||
451 | if (document.getElementById('nb_nsc').value != "x500") { |
452 | if (document.getElementById('nb_nsc').value != "x500") { |
452 | document.getElementById('nb_nsc').value = "x500"; |
453 | document.getElementById('nb_nsc').value = "x500"; |
453 | document.getElementById('nb_val').value = "UID=jsmith,DC=example,DC=net"; |
454 | document.getElementById('nb_val').value = "UID=jsmith,DC=example,DC=net"; |
454 | } |
455 | } |
455 | } |
456 | } |
- | 457 | else if (ns == "ca069732-780c-11ee-b962-000000000074") { // https://r74n.com/id/uuid |
|
- | 458 | if (document.getElementById('nb_nsc').value != "r74n") { |
|
- | 459 | document.getElementById('nb_nsc').value = "r74n"; |
|
- | 460 | document.getElementById('nb_val').value = "ants"; |
|
- | 461 | } |
|
- | 462 | } |
|
456 | else { |
463 | else { |
457 | if (document.getElementById('nb_nsc').value != "other") { |
464 | if (document.getElementById('nb_nsc').value != "other") { |
458 | document.getElementById('nb_nsc').value = "other"; |
465 | document.getElementById('nb_nsc').value = "other"; |
459 | document.getElementById('nb_val').value = ""; |
466 | document.getElementById('nb_val').value = ""; |
460 | } |
467 | } |
Line 476... | Line 483... | ||
476 | } |
483 | } |
477 | else if (ns == "x500") { |
484 | else if (ns == "x500") { |
478 | document.getElementById('nb_ns').value = "6ba7b814-9dad-11d1-80b4-00c04fd430c8"; |
485 | document.getElementById('nb_ns').value = "6ba7b814-9dad-11d1-80b4-00c04fd430c8"; |
479 | document.getElementById('nb_val').value = "UID=jsmith,DC=example,DC=net"; |
486 | document.getElementById('nb_val').value = "UID=jsmith,DC=example,DC=net"; |
480 | } |
487 | } |
- | 488 | else if (ns == "r74n") { // https://r74n.com/id/uuid |
|
- | 489 | document.getElementById('nb_ns').value = "ca069732-780c-11ee-b962-000000000074"; |
|
- | 490 | document.getElementById('nb_val').value = "ants"; |
|
- | 491 | } |
|
481 | /* |
492 | /* |
482 | else if (ns == "oidplus_ns") { |
493 | else if (ns == "oidplus_ns") { |
483 | document.getElementById('nb_ns').value = "0943e3ce-4b79-11e5-b742-78e3b5fc7f22"; |
494 | document.getElementById('nb_ns').value = "0943e3ce-4b79-11e5-b742-78e3b5fc7f22"; |
484 | document.getElementById('nb_val').value = "ipv4"; |
495 | document.getElementById('nb_val').value = "ipv4"; |
485 | } |
496 | } |