'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 = []; $navbar['brand'] = "Routing"; $navbar['class'] = "navbar-narrow"; foreach ($routing_tabs as $type) { if (!$vars['proto']) { $vars['proto'] = $type; } $navbar['options'][$type]['url'] = generate_url(['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('