From 866c352c5ff23912a00709b81aa9eaae1a07869f Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Thu, 5 Apr 2012 16:48:06 +0000 Subject: [PATCH] syntaxer run git-svn-id: http://www.observium.org/svn/observer/trunk@2969 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/hostbox-basic.inc.php | 2 +- html/includes/hostbox.inc.php | 6 +++--- html/includes/print-interface.inc.php | 4 ++-- html/includes/print-menubar.php | 7 +++---- html/includes/print-vlan.inc.php | 6 +++--- html/includes/topnav.inc.php | 2 +- 6 files changed, 13 insertions(+), 14 deletions(-) diff --git a/html/includes/hostbox-basic.inc.php b/html/includes/hostbox-basic.inc.php index c1d49644b..e4bd2b991 100644 --- a/html/includes/hostbox-basic.inc.php +++ b/html/includes/hostbox-basic.inc.php @@ -38,6 +38,6 @@ echo(' ' . formatUptime($device['uptime'], 'short') . '
'); if (get_dev_attrib($device,'override_sysLocation_bool')) { $device['location'] = get_dev_attrib($device,'override_sysLocation_string'); } echo(' ' . truncate($device['location'],32, '') . ''); -echo (' '); +echo(' '); ?> diff --git a/html/includes/hostbox.inc.php b/html/includes/hostbox.inc.php index cd31d1e5c..dc84c1c4d 100644 --- a/html/includes/hostbox.inc.php +++ b/html/includes/hostbox.inc.php @@ -44,11 +44,11 @@ echo(' '); +echo(''); if ($port_count) { echo(' '.$port_count); } echo('
'); if ($sensor_count) { echo(' '.$sensor_count); } -echo (''); +echo(''); echo(' ' . $device['hardware'] . '
' . $device['features'] . ''); echo(' ' . $device['os_text'] . '
' . $device['version'] . ''); echo(' ' . formatUptime($device['uptime'], 'short') . '
'); @@ -56,6 +56,6 @@ echo(' ' . formatUptime($device['uptime'], 'short') . if (get_dev_attrib($device,'override_sysLocation_bool')) { $device['location'] = get_dev_attrib($device,'override_sysLocation_string'); } echo(' ' . truncate($device['location'],32, '') . ''); -echo (' '); +echo(' '); ?> diff --git a/html/includes/print-interface.inc.php b/html/includes/print-interface.inc.php index 3b605ccd8..c6b3bdbbc 100644 --- a/html/includes/print-interface.inc.php +++ b/html/includes/print-interface.inc.php @@ -92,9 +92,9 @@ if ($device['os'] == "ios" || $device['os'] == "iosxe") echo('

".$vlan['vlan'] ." ".$vlan['vlan_descr']."
"); } echo('">'.$port['ifTrunk'].'

'); diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php index d1dd3f044..863372941 100644 --- a/html/includes/print-menubar.php +++ b/html/includes/print-menubar.php @@ -346,7 +346,7 @@ foreach (array('fanspeed','humidity','temperature') as $item) { if ($menu_sensors[$item]) { - echo ('
  • '.ucfirst($item).'
  • '); + echo('
  • '.ucfirst($item).'
  • '); unset($menu_sensors[$item]);$sep++; } } @@ -361,7 +361,7 @@ foreach (array('current','frequency','power','voltage') as $item) { if ($menu_sensors[$item]) { - echo ('
  • '.ucfirst($item).'
  • '); + echo('
  • '.ucfirst($item).'
  • '); unset($menu_sensors[$item]);$sep++; } } @@ -374,7 +374,7 @@ if ($sep && array_keys($menu_sensors)) foreach (array_keys($menu_sensors) as $item) { - echo ('
  • '.ucfirst($item).'
  • '); + echo('
  • '.ucfirst($item).'
  • '); unset($menu_sensors[$item]);$sep++; } @@ -456,7 +456,6 @@ if ($_SESSION['userlevel'] >= '5' && ($routing_count['bgp']+$routing_count['ospf "); $vlan_ports = array(); $otherports = dbFetchRows("SELECT * FROM `ports_vlans` AS V, `ports` as P WHERE V.`device_id` = ? AND V.`vlan` = ? AND P.interface_id = V.interface_id", array($device['device_id'], $vlan['vlan_vlan'])); - foreach($otherports as $otherport) + foreach ($otherports as $otherport) { $vlan_ports[$otherport[ifIndex]] = $otherport; } $otherports = dbFetchRows("SELECT * FROM ports WHERE `device_id` = ? AND `ifVlan` = ?", array($device['device_id'], $vlan['vlan_vlan'])); - foreach($otherports as $otherport) + foreach ($otherports as $otherport) { $vlan_ports[$otherport[ifIndex]] = array_merge($otherport, array('untagged' => '1')); } @@ -42,7 +42,7 @@ foreach ($vlan_ports as $port) { echo($vlan['port_sep'] . generate_port_link($port, makeshortif($port['label']))); $vlan['port_sep'] = ", "; - if($port['untagged']) { echo("(U)"); } + if ($port['untagged']) { echo("(U)"); } } } diff --git a/html/includes/topnav.inc.php b/html/includes/topnav.inc.php index de5ab8637..7d068479e 100644 --- a/html/includes/topnav.inc.php +++ b/html/includes/topnav.inc.php @@ -14,7 +14,7 @@ foreach (dbFetchRows("SELECT * FROM `devices` ORDER BY `hostname`") as $device) $cache['devices']['hostname'][$device['hostname']] = $device['device_id']; $cache['devices']['id'][$device['device_id']] = $device; - + $cache['device_types'][$device['type']]++; }