Rev 10 | Rev 24 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 10 | Rev 15 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <?php |
1 | <?php |
2 | 2 | ||
3 | /* |
3 | /* |
4 | * UUID utils for PHP |
4 | * UUID utils for PHP |
5 | * Copyright 2011 - 2022 Daniel Marschall, ViaThinkSoft |
5 | * Copyright 2011 - 2023 Daniel Marschall, ViaThinkSoft |
6 | * Version 2022-01-06 |
6 | * Version 2023-04-29 |
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 160... | Line 160... | ||
160 | } |
160 | } |
161 | echo sprintf("%-24s %s\n", "Node ID:", "$nodeid"); |
161 | echo sprintf("%-24s %s\n", "Node ID:", "$nodeid"); |
162 | 162 | ||
163 | if (function_exists('decode_mac')) { |
163 | if (function_exists('decode_mac')) { |
164 | echo "\nIn case that this Node ID is a MAC address, here is the interpretation of that MAC address:\n"; |
164 | echo "\nIn case that this Node ID is a MAC address, here is the interpretation of that MAC address:\n"; |
165 | echo decode_mac($nodeid); |
165 | decode_mac($nodeid); |
166 | } |
166 | } |
167 | 167 | ||
168 | break; |
168 | break; |
169 | case 2: |
169 | case 2: |
170 | echo sprintf("%-24s %s\n", "Version:", "[2] DCE Security version"); |
170 | echo sprintf("%-24s %s\n", "Version:", "[2] DCE Security version"); |
Line 218... | Line 218... | ||
218 | } |
218 | } |
219 | echo sprintf("%-24s %s\n", "Node ID:", "$nodeid"); |
219 | echo sprintf("%-24s %s\n", "Node ID:", "$nodeid"); |
220 | 220 | ||
221 | if (function_exists('decode_mac')) { |
221 | if (function_exists('decode_mac')) { |
222 | echo "\nIn case that this Node ID is a MAC address, here is the interpretation of that MAC address:\n"; |
222 | echo "\nIn case that this Node ID is a MAC address, here is the interpretation of that MAC address:\n"; |
223 | echo decode_mac($nodeid); |
223 | decode_mac($nodeid); |
224 | } |
224 | } |
225 | 225 | ||
226 | break; |
226 | break; |
227 | case 3: |
227 | case 3: |
228 | echo sprintf("%-24s %s\n", "Version:", "[3] Name-based (MD5 hash)"); |
228 | echo sprintf("%-24s %s\n", "Version:", "[3] Name-based (MD5 hash)"); |