Subversion Repositories oidplus

Rev

Rev 713 | Rev 731 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 713 Rev 730
Line 215... Line 215...
215
 
215
 
216
                if ($obj->isConfidential()) { // yes, we use isConfidential() instead of allowObjectView()!
216
                if ($obj->isConfidential()) { // yes, we use isConfidential() instead of allowObjectView()!
217
                        $out[] = 'attribute: confidential'; // DO NOT TRANSLATE!
217
                        $out[] = 'attribute: confidential'; // DO NOT TRANSLATE!
218
                }
218
                }
219
 
219
 
-
 
220
                if ($obj->implementsFeature('1.3.6.1.4.1.37476.2.5.2.3.4')) {
-
 
221
                        // Also ask $obj for extra attributes:
-
 
222
                        // This way we could add various additional information, e.g. IPv4/6 range analysis, interpretation of GUID, etc. (TODO)
-
 
223
                        $obj->whoisObjectAttributes($obj->nodeId(), $out);
-
 
224
                }
-
 
225
 
220
                foreach (OIDplus::getPagePlugins() as $plugin) {
226
                foreach (OIDplus::getPagePlugins() as $plugin) {
221
                        if ($plugin->implementsFeature('1.3.6.1.4.1.37476.2.5.2.3.4')) {
227
                        if ($plugin->implementsFeature('1.3.6.1.4.1.37476.2.5.2.3.4')) {
222
                                // TODO: Also ask $obj for extra attributes (although it is not a plugin)?
-
 
223
                                //       This way we could add various additional information, e.g. IPv4/6 range analysis, interpretation of GUID, etc.
-
 
224
                                $plugin->whoisObjectAttributes($obj->nodeId(), $out);
228
                                $plugin->whoisObjectAttributes($obj->nodeId(), $out);
225
                        }
229
                        }
226
                }
230
                }
227
 
231
 
228
                if (substr($query,0,4) === 'oid:') {
232
                if (substr($query,0,4) === 'oid:') {
Line 281... Line 285...
281
                                $out[] = 'ra-phone: ' . $row2->phone; // DO NOT TRANSLATE!
285
                                $out[] = 'ra-phone: ' . $row2->phone; // DO NOT TRANSLATE!
282
                                $out[] = 'ra-mobile: ' . $row2->mobile; // DO NOT TRANSLATE!
286
                                $out[] = 'ra-mobile: ' . $row2->mobile; // DO NOT TRANSLATE!
283
                                $out[] = 'ra-fax: ' . $row2->fax; // DO NOT TRANSLATE!
287
                                $out[] = 'ra-fax: ' . $row2->fax; // DO NOT TRANSLATE!
284
                        }
288
                        }
285
                        $out[] = 'ra-email: ' . $row->ra_email; // DO NOT TRANSLATE!
289
                        $out[] = 'ra-email: ' . $row->ra_email; // DO NOT TRANSLATE!
-
 
290
 
-
 
291
                        $ra = new OIDplusRA($row->ra_email);
-
 
292
                        if ($ra->implementsFeature('1.3.6.1.4.1.37476.2.5.2.3.4')) {
-
 
293
                                // Also ask $obj for extra attributes:
-
 
294
                                // This way we could add various additional information, e.g. IPv4/6 range analysis, interpretation of GUID, etc.
-
 
295
                                $ra->whoisRaAttributes($row->ra_email, $out);
-
 
296
                        }
-
 
297
 
286
                        foreach (OIDplus::getPagePlugins() as $plugin) {
298
                        foreach (OIDplus::getPagePlugins() as $plugin) {
287
                                if ($plugin->implementsFeature('1.3.6.1.4.1.37476.2.5.2.3.4')) {
299
                                if ($plugin->implementsFeature('1.3.6.1.4.1.37476.2.5.2.3.4')) {
288
                                        // TODO: Also ask $ra for extra attributes (although it is not a plugin)?
-
 
289
                                        $plugin->whoisRaAttributes($row->ra_email, $out);
300
                                        $plugin->whoisRaAttributes($row->ra_email, $out);
290
                                }
301
                                }
291
                        }
302
                        }
292
 
303
 
293
                        if ($row2->privacy) { // yes, we use row2->privacy() instead of allowRAView()!
304
                        if ($row2->privacy) { // yes, we use row2->privacy() instead of allowRAView()!