'device', 'device' => $device['device_id'], 'tab' => 'routing', 'proto' => 'ipsec_tunnels', ); print_optionbar_start(); echo "IPSEC Tunnels » "; $menu_options = array('basic' => 'Basic'); if (!isset($vars['view'])) { $vars['view'] = 'basic'; } echo "VRFs » "; $menu_options = array('basic' => 'Basic', // 'detail' => 'Detail', ); if (!$_GET['opta']) { $_GET['opta'] = 'basic'; } $sep = ''; foreach ($menu_options as $option => $text) { if ($vars['view'] == $option) { echo " '; } echo ' | '; } echo ' Graphs: '; $graph_types = array( 'bits' => 'Bits', 'pkts' => 'Packets', ); foreach ($graph_types as $type => $descr) { echo "$type_sep"; if ($vars['graph'] == $type) { echo " '; } $type_sep = ' | '; } print_optionbar_end(); echo "
'.$tunnel['local_addr'].' » '.$tunnel['peer_addr'].' | '; echo ''.$tunnel['tunnel_name'].' | '; echo "".$tunnel['tunnel_status'].' | '; echo '
'; $graph_type = 'ipsectunnel_'.$vars['graph']; $graph_array['height'] = '100'; $graph_array['width'] = '215'; $graph_array['to'] = $config['time']['now']; $graph_array['id'] = $tunnel['tunnel_id']; $graph_array['type'] = $graph_type; include 'includes/print-graphrow.inc.php'; echo ' |