'device', 'device' => $device['device_id'], 'tab' => 'routing'); #$type_text['overview'] = "Overview"; $type_text['ipsec_tunnels'] = "IPSEC Tunnels"; // Cisco ACE $type_text['loadbalancer_rservers'] = "Rservers"; $type_text['lb_slb_vsvrs'] = "Serverfarms"; register_html_title("Routing"); $navbar = array(); $navbar['brand'] = "Routing"; $navbar['class'] = "navbar-narrow"; foreach ($routing_tabs as $type) { if (!$vars['proto']) { $vars['proto'] = $type; } $navbar['options'][$type]['url'] = generate_url(array('page' => 'device', 'device' => $device['device_id'], 'tab' => 'routing', 'proto' => $type )); $navbar['options'][$type]['text'] = nicecase($type); if ($vars['proto'] == $type) { $navbar['options'][$type]['class'] = "active"; } } print_navbar($navbar); unset($navbar); if (isset($device_routing_count[$vars['proto']]) && $device_routing_count[$vars['proto']] == 0) { // Prevent direct empty links print_warning("Page not exist or data empty."); return; } if (is_alpha($vars['proto']) && is_file($config['html_dir']."/pages/device/routing/".$vars['proto'].".inc.php")) { include($config['html_dir']."/pages/device/routing/".$vars['proto'].".inc.php"); } else { $g_i = 0; foreach ($routing_tabs as $type) { if ($type != "overview") { if (is_file($config['html_dir']."/pages/device/routing/overview/".$type.".inc.php")) { $g_i++; $row_colour = !is_intnum($g_i / 2) ? OBS_COLOUR_LIST_A : OBS_COLOUR_LIST_B; echo('
'); echo('
'.$type_text[$type].''); include($config['html_dir']."/pages/device/routing/overview/".$type.".inc.php"); echo('
'); echo('
'); } else { $graph_title = $type_text[$type]; $graph_type = "device_".$type; include($config['html_dir']."/includes/print-device-graph.php"); } } } } // EOF