mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	git-svn-id: http://www.observium.org/svn/observer/trunk@3135 61d68cd4-352d-0410-923a-c4978735b2b8
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
$graphs['apache']     = array('bits', 'hits', 'scoreboard', 'cpu');
 | 
						|
$graphs['drbd']       = array('disk_bits', 'network_bits', 'queue', 'unsynced');
 | 
						|
$graphs['mysql']      = array('network_traffic', 'connections', 'command_counters', 'select_types');
 | 
						|
$graphs['memcached']  = array('bits', 'commands', 'data', 'items');
 | 
						|
 | 
						|
print_optionbar_start();
 | 
						|
 | 
						|
echo("<span style='font-weight: bold;'>Apps</span> » ");
 | 
						|
 | 
						|
unset($sep);
 | 
						|
 | 
						|
$link_array = array('page'    => 'device',
 | 
						|
                    'device'  => $device['device_id'],
 | 
						|
                    'tab' => 'apps');
 | 
						|
 | 
						|
foreach ($app_list as $app)
 | 
						|
{
 | 
						|
  echo($sep);
 | 
						|
 | 
						|
#  if (!$vars['app']) { $vars['app'] = $app['app_type']; }
 | 
						|
 | 
						|
  if ($vars['app'] == $app['app_type'])
 | 
						|
  {
 | 
						|
    echo("<span class='pagemenu-selected'>");
 | 
						|
    #echo('<img src="images/icons/'.$app['app_type'].'.png" class="optionicon" />');
 | 
						|
  } else {
 | 
						|
    #echo('<img src="images/icons/greyscale/'.$app['app_type'].'.png" class="optionicon" />');
 | 
						|
  }
 | 
						|
  echo(generate_link(nicecase($app['app_type']),array('page'=>'apps','app'=>$app['app_type'])));
 | 
						|
  if ($vars['app'] == $app['app_type']) { echo("</span>"); }
 | 
						|
  $sep = " | ";
 | 
						|
}
 | 
						|
 | 
						|
print_optionbar_end();
 | 
						|
 | 
						|
if($vars['app'])
 | 
						|
{
 | 
						|
  if (is_file("pages/apps/".mres($vars['app']).".inc.php"))
 | 
						|
  {
 | 
						|
    include("pages/apps/".mres($vars['app']).".inc.php");
 | 
						|
  } else {
 | 
						|
    include("pages/apps/default.inc.php");
 | 
						|
  }
 | 
						|
} else {
 | 
						|
  include("pages/apps/overview.inc.php");
 | 
						|
}
 | 
						|
 | 
						|
$pagetitle[] = "Apps";
 | 
						|
?>
 |