Rev 1130 | Rev 1137 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1130 | Rev 1131 | ||
---|---|---|---|
Line 298... | Line 298... | ||
298 | 298 | ||
299 | // $this->_oidip_attr('oidip-service', ...); Not used. |
299 | // $this->_oidip_attr('oidip-service', ...); Not used. |
300 | 300 | ||
301 | // $this->_oidip_attr('oidip-pubkey', ...); Not used. |
301 | // $this->_oidip_attr('oidip-pubkey', ...); Not used. |
302 | 302 | ||
303 | if ($obj->implementsFeature('1.3.6.1.4.1.37476.2.5.2.3.4')) { |
303 | if ($obj instanceof INTF_OID_1_3_6_1_4_1_37476_2_5_2_3_4) { |
304 | // Also ask $obj for extra attributes: |
304 | // Also ask $obj for extra attributes: |
305 | // This way we could add various additional information, e.g. IPv4/6 range analysis, interpretation of GUID, etc. |
305 | // This way we could add various additional information, e.g. IPv4/6 range analysis, interpretation of GUID, etc. |
306 | $obj->whoisObjectAttributes($obj->nodeId(), $out); /** @phpstan-ignore-line */ |
306 | $obj->whoisObjectAttributes($obj->nodeId(), $out); |
307 | } |
307 | } |
308 | 308 | ||
309 | foreach (OIDplus::getAllPlugins() as $plugin) { |
309 | foreach (OIDplus::getAllPlugins() as $plugin) { |
310 | if ($plugin->implementsFeature('1.3.6.1.4.1.37476.2.5.2.3.4')) { |
310 | if ($plugin instanceof INTF_OID_1_3_6_1_4_1_37476_2_5_2_3_4) { |
311 | $plugin->whoisObjectAttributes($obj->nodeId(), $out); /** @phpstan-ignore-line */ |
311 | $plugin->whoisObjectAttributes($obj->nodeId(), $out); |
312 | } |
312 | } |
313 | } |
313 | } |
314 | 314 | ||
315 | if ($obj->isConfidential()) { // yes, we use isConfidential() instead of $this->allowObjectView()! |
315 | if ($obj->isConfidential()) { // yes, we use isConfidential() instead of $this->allowObjectView()! |
316 | $out[] = $this->_oidip_attr('attribute', 'confidential'); // DO NOT TRANSLATE! |
316 | $out[] = $this->_oidip_attr('attribute', 'confidential'); // DO NOT TRANSLATE! |
Line 390... | Line 390... | ||
390 | $out[] = $this->_oidip_attr('ra-email', $obj->getRaMail()); // DO NOT TRANSLATE! |
390 | $out[] = $this->_oidip_attr('ra-email', $obj->getRaMail()); // DO NOT TRANSLATE! |
391 | 391 | ||
392 | // $this->_oidip_attr('ra-url', ...); Not used. |
392 | // $this->_oidip_attr('ra-url', ...); Not used. |
393 | 393 | ||
394 | $ra = new OIDplusRA($obj->getRaMail()); |
394 | $ra = new OIDplusRA($obj->getRaMail()); |
395 | if ($ra->implementsFeature('1.3.6.1.4.1.37476.2.5.2.3.4')) { |
395 | if ($ra instanceof INTF_OID_1_3_6_1_4_1_37476_2_5_2_3_4) { |
396 | $ra->whoisRaAttributes($obj->getRaMail(), $out); /** @phpstan-ignore-line */ |
396 | $ra->whoisRaAttributes($obj->getRaMail(), $out); |
397 | } |
397 | } |
398 | 398 | ||
399 | foreach (OIDplus::getAllPlugins() as $plugin) { |
399 | foreach (OIDplus::getAllPlugins() as $plugin) { |
400 | if ($plugin->implementsFeature('1.3.6.1.4.1.37476.2.5.2.3.4')) { |
400 | if ($plugin instanceof INTF_OID_1_3_6_1_4_1_37476_2_5_2_3_4) { |
401 | $plugin->whoisRaAttributes($obj->getRaMail(), $out); /** @phpstan-ignore-line */ |
401 | $plugin->whoisRaAttributes($obj->getRaMail(), $out); |
402 | } |
402 | } |
403 | } |
403 | } |
404 | 404 | ||
405 | // yes, we use row_ra->privacy() instead of $this->allowRAView(), becuase $this->allowRAView=true if auth token is given; and we want to inform the person that they content they are viewing is confidential! |
405 | // yes, we use row_ra->privacy() instead of $this->allowRAView(), becuase $this->allowRAView=true if auth token is given; and we want to inform the person that they content they are viewing is confidential! |
406 | if ($row_ra->privacy) { |
406 | if ($row_ra->privacy) { |
Line 411... | Line 411... | ||
411 | if ($row_ra->updated) $out[] = $this->_oidip_attr('ra-updated', date('Y-m-d H:i:s', strtotime($row_ra->updated))); // DO NOT TRANSLATE! |
411 | if ($row_ra->updated) $out[] = $this->_oidip_attr('ra-updated', date('Y-m-d H:i:s', strtotime($row_ra->updated))); // DO NOT TRANSLATE! |
412 | } else { |
412 | } else { |
413 | $out[] = $this->_oidip_attr('ra', ($obj && !empty($obj->getRaMail()) ? $obj->getRaMail() : /*_L*/('Unknown'))); // DO NOT TRANSLATE! |
413 | $out[] = $this->_oidip_attr('ra', ($obj && !empty($obj->getRaMail()) ? $obj->getRaMail() : /*_L*/('Unknown'))); // DO NOT TRANSLATE! |
414 | if ($obj) { |
414 | if ($obj) { |
415 | foreach (OIDplus::getAllPlugins() as $plugin) { |
415 | foreach (OIDplus::getAllPlugins() as $plugin) { |
416 | if ($plugin->implementsFeature('1.3.6.1.4.1.37476.2.5.2.3.4')) { |
416 | if ($plugin instanceof INTF_OID_1_3_6_1_4_1_37476_2_5_2_3_4) { |
417 | $plugin->whoisRaAttributes($obj->getRaMail(), $out); /** @phpstan-ignore-line */ |
417 | $plugin->whoisRaAttributes($obj->getRaMail(), $out); |
418 | } |
418 | } |
419 | } |
419 | } |
420 | } |
420 | } |
421 | $out[] = $this->_oidip_attr('ra-status', 'Information unavailable'); // DO NOT TRANSLATE! |
421 | $out[] = $this->_oidip_attr('ra-status', 'Information unavailable'); // DO NOT TRANSLATE! |
422 | } |
422 | } |