#0: (unknown function) called at [/var/observium/includes/entities/ip-address.inc.php:420] 415: return $array; 416: } 417: 418: // Split ip and netmask is passed 419: [ $ip, $prefix ] = explode('/', $address, 2); 420: $addr = \IPLib\Factory::parseAddressString($ip); 421: 422: if (!$addr) { 423: // Invalid IP address, return empty string for consistency 424: print_debug("DEBUG: ip_compress() requested for incorrect IP address: $address."); 425: return ''; #1: ip_compress called at [/var/observium/includes/rewrites.inc.php:444] 439: $peer['peer_local_class'] = ""; 440: $peer['peer_local_type'] = "public"; 441: } 442: 443: // Format (compress) the local/remote IPs if they're IPv6 444: $peer['human_localip'] = ip_compress($peer['bgpPeerLocalAddr']); 445: $peer['human_remoteip'] = ip_compress($peer['bgpPeerRemoteAddr']); 446: 447: // Format ASN as asdot if configured 448: $peer['human_local_as'] = $config['web_show_bgp_asdot'] ? bgp_asplain_to_asdot($peer['local_as']) : $peer['local_as']; 449: $peer['human_remote_as'] = $config['web_show_bgp_asdot'] ? bgp_asplain_to_asdot($peer['bgpPeerRemoteAs']) : $peer['bgpPeerRemoteAs']; #2: humanize_bgp called at [/var/observium/includes/entities.inc.php:821] 816: if (function_exists('humanize_' . $entity_type)) { 817: $do = 'humanize_' . $entity_type; 818: $do($entity); 819: } elseif (isset($translate['humanize_function']) && function_exists($translate['humanize_function'])) { 820: $do = $translate['humanize_function']; 821: $do($entity); 822: } 823: 824: entity_rewrite($entity_type, $entity); 825: $cache[$entity_type][$entity_id] = $entity; 826: return $entity; #3: get_entity_by_id_cache called at [/var/observium/includes/entities.inc.php:2218] 2213: */ 2214: // TESTME needs unit testing 2215: function generate_entity_link($entity_type, $entity, $text = NULL, $graph_type = NULL, $escape = TRUE, $options = FALSE) 2216: { 2217: if (is_numeric($entity)) { 2218: $entity = get_entity_by_id_cache($entity_type, $entity); 2219: } 2220: // Compat with old boolean $short option 2221: if (is_array($options)) { 2222: $short = isset($options['short']) && $options['short']; 2223: $icon = isset($options['icon']) && $options['icon']; #4: generate_entity_link called at [/var/observium/html/includes/print/events.inc.php:134] 129: $entry['link'] = get_icon('info'); 130: } elseif ($entry['entity_type'] === 'info') { 131: $entry['link'] = get_icon('important'); 132: } else { 133: if (!empty($config['entities'][$entry['entity_type']]['icon'])) { 134: $entry['link'] = ' ' . generate_entity_link($entry['entity_type'], $entry['entity_id']) . ''; 135: } else { 136: $entry['link'] = nicecase($entry['entity_type']); 137: } 138: 139: } #5: print_events called at [/var/observium/html/pages/eventlog.inc.php:114] 109: 110: // Pagination 111: $vars['pagination'] = TRUE; 112: 113: // Print events 114: print_events($vars); 115: 116: register_html_title('Eventlog'); 117: 118: ?> 119: #6: include called at [/var/observium/html/index.php:248] 243: 244: 245:
'; 246: } 247: 248: include($page_file); 249: echo '
'; 250: 251: // Register default panel (when not registered on pages) 252: if (!$config['pages'][$panel_name]['no_panel'] && !mem_cache_exists('html_page_panel')) { 253: register_html_panel('default');