Serverfarm Rservers » "; // $auth = TRUE; $menu_options = array('basic' => 'Basic'); if (!$_GET['opta']) { $_GET['opta'] = 'basic'; } $sep = ''; foreach ($menu_options as $option => $text) { if ($_GET['optd'] == $option) { echo ""; } echo ''.$text .''; if ($_GET['optd'] == $option) { echo ''; } echo ' | '; } unset($sep); echo ' Graphs: '; // $graph_types = array("bits" => "Bits", // "pkts" => "Packets", // "errors" => "Errors"); $graph_types = array( 'curr' => 'CurrentConns', 'failed' => 'FailedConns', 'total' => 'TotalConns', ); foreach ($graph_types as $type => $descr) { echo "$type_sep"; if ($_GET['opte'] == $type) { echo ""; } echo ''.$descr.''; if ($_GET['opte'] == $type) { echo ''; } $type_sep = ' | '; } print_optionbar_end(); echo "
"; $i = '0'; foreach (dbFetchRows('SELECT * FROM `loadbalancer_rservers` WHERE `device_id` = ? ORDER BY `farm_id`', array($device['device_id'])) as $rserver) { if (is_integer($i / 2)) { $bg_colour = $list_colour_a; } else { $bg_colour = $list_colour_b; } if ($rserver['StateDescr'] == 'Server is now operational') { $rserver_class = 'green'; } else { $rserver_class = 'red'; } echo ""; // echo(""); echo ''; // echo(""); echo "'; echo ''; if ($_GET['optd'] == 'graphs') { echo ''; echo ''; } echo ''; echo ''; $i++; } echo '
" . $tunnel['local_addr'] . " » " . $tunnel['peer_addr'] . "'.$rserver['farm_id'].'" . $rserver['farm_id'] . "".$rserver['StateDescr'].'
'; $graph_type = 'rserver_'.$_GET['opte']; $graph_array['height'] = '100'; $graph_array['width'] = '215'; $graph_array['to'] = $config['time']['now']; $graph_array['id'] = $rserver['rserver_id']; $graph_array['type'] = $graph_type; require 'includes/print-graphrow.inc.php'; // include("includes/print-interface-graphs.inc.php"); echo '
';