- $interfaces = $adm->GetInterfaces(array('ip' => $_SERVER['REMOTE_ADDR']));
- if (!empty($interfaces)) {
- $nodes = $adm->GetNodes(array($interfaces[0]['node_id']));
- if (!empty($nodes)) {
- $node = $nodes[0];
- if ( $node['node_id'] == $node_id )
- {
- # NOTE: only provide complete view if
- # node exists
- # node has infrastrucure tag
- # infrastructure tag value == 1
- # Check that the requestor is the node.
- $limit_view = False;
- }
- }
- }
+ $interfaces = $adm->GetInterfaces(array('ip' => $_SERVER['REMOTE_ADDR']));
+ if (!empty($interfaces)) {
+ $nodes = $adm->GetNodes(array($interfaces[0]['node_id']));
+ if (!empty($nodes)) {
+ $node = $nodes[0];
+ if ( $node['node_id'] == $node_id )
+ {
+ # NOTE: only provide complete view if
+ # node exists
+ # node has infrastrucure tag
+ # infrastructure tag value == 1
+ # Check that the requestor is the node.
+ $limit_view = False;
+ }
+ }
+ }