diff --git a/addhost.php b/addhost.php
index 8afe81619..8b0583522 100755
--- a/addhost.php
+++ b/addhost.php
@@ -53,7 +53,7 @@ if (isset($argv[1]) && $argv[1])
echo("Added device ".$device['hostname']." (".$device['device_id'].")\n");
}
-} else {
+} else {
print Console_Color::convert("
Observium v".$config['version']." Add Host Tool
diff --git a/check-services.php b/check-services.php
index 3172c170b..b9e619ac6 100755
--- a/check-services.php
+++ b/check-services.php
@@ -29,7 +29,7 @@ foreach (dbFetchRows("SELECT * FROM `devices` AS D, `services` AS S WHERE S.devi
if ($service_status != $status)
{
$update['service_changed'] = time();
-
+
if ($service['sysContact']) { $email = $service['sysContact']; } else { $email = $config['email_default']; }
if ($status == "1")
{
@@ -47,7 +47,7 @@ foreach (dbFetchRows("SELECT * FROM `devices` AS D, `services` AS S WHERE S.devi
$update = array_merge(array('service_status' => $status, 'service_message' => $check, 'service_checked' => time()), $update);
dbUpdate($update, 'services', '`service_id` = ?', array($service['service_id']));
- unset($update);
+ unset($update);
} else {
$status = "0";
diff --git a/html/billing-graph.php b/html/billing-graph.php
index 5a1f93e8e..12b6776d8 100755
--- a/html/billing-graph.php
+++ b/html/billing-graph.php
@@ -152,7 +152,7 @@ $graph->xaxis->SetTitleMargin(30);
$graph->xaxis->title->Set($type);
$graph->yaxis->title->Set($yaxis);
-function TimeCallback($aVal) {
+function TimeCallback($aVal) {
global $dur;
if ($dur < 172800)
@@ -161,7 +161,7 @@ function TimeCallback($aVal) {
} elseif ($dur < 604800) {
return Date('D',$aVal);
} else {
- return Date('j M',$aVal);
+ return Date('j M',$aVal);
}
}
diff --git a/html/graph-realtime.php b/html/graph-realtime.php
index e120d1990..7dc052d1f 100755
--- a/html/graph-realtime.php
+++ b/html/graph-realtime.php
@@ -1,11 +1,11 @@
, Manuel Kasper
and Jonathan Watt .
All rights reserved.
-
+
*/
include_once("../includes/defaults.inc.php");
@@ -184,7 +184,7 @@ function fetch_data() {
function plot_data(obj) {
// Show datetimelegend
var now = new Date();
- var datetime = (now.getMonth()+1) + "/" + now.getDate() + "/" + now.getFullYear() + ' ' +
+ var datetime = (now.getMonth()+1) + "/" + now.getDate() + "/" + now.getFullYear() + ' ' +
LZ(now.getHours()) + ":" + LZ(now.getMinutes()) + ":" + LZ(now.getSeconds());
SVGDoc.getElementById('datetime').firstChild.data = datetime;
@@ -210,7 +210,7 @@ function plot_data(obj) {
last_ugmt = ugmt;
last_ifin = ifin;
last_ifout = ifout;
-
+
switch (plot_in.length) {
case 0:
SVGDoc.getElementById("collect_initial").setAttributeNS(null, 'visibility', 'visible');
@@ -283,7 +283,7 @@ function plot_data(obj) {
rmax *= 1.25;
else
rmax *= 2;
-
+
if (i == 8)
rmax *= 1.024;
}
diff --git a/html/includes/authentication/mysql.inc.php b/html/includes/authentication/mysql.inc.php
index 7f39ec19b..3ea373e23 100644
--- a/html/includes/authentication/mysql.inc.php
+++ b/html/includes/authentication/mysql.inc.php
@@ -30,7 +30,7 @@ function passwordscanchange($username="")
* By default allow the password to be modified, unless the existing
* user is explicitly prohibited to do so.
*/
-
+
if (empty($username) || !user_exists($username))
{
return 1;
diff --git a/html/includes/collectd/definitions.php b/html/includes/collectd/definitions.php
index de188ee6b..a3a227775 100644
--- a/html/includes/collectd/definitions.php
+++ b/html/includes/collectd/definitions.php
@@ -505,7 +505,7 @@ function load_graph_definitions($logarithmic = false, $tinylegend = false) {
'GPRINT:temp_max:MAX:%4.1lf%%',
'GPRINT:temp_avg:LAST:%4.1lf%%\l');
$GraphDefs['if_errors'] = array(
- #'-v', 'Errors/s',
+ #'-v', 'Errors/s',
'--units=si',
'DEF:tx_min={file}:tx:MIN',
'DEF:tx_avg={file}:tx:AVERAGE',
@@ -551,7 +551,7 @@ function load_graph_definitions($logarithmic = false, $tinylegend = false) {
'GPRINT:max:MAX:%5.1lf%s',
'GPRINT:avg:LAST:%5.1lf%s\l');
$GraphDefs['if_dropped'] = array(
- #'-v', 'Packets/s',
+ #'-v', 'Packets/s',
'--units=si',
'DEF:tx_min={file}:tx:MIN',
'DEF:tx_avg={file}:tx:AVERAGE',
@@ -734,7 +734,7 @@ function load_graph_definitions($logarithmic = false, $tinylegend = false) {
'GPRINT:spam:LAST:%4.1lf',
'HRULE:0#000000');
$GraphDefs['memory'] = array(
- '-b', '1024',
+ '-b', '1024',
#'-v', 'Bytes',
'DEF:avg={file}:value:AVERAGE',
'DEF:min={file}:value:MIN',
@@ -1290,7 +1290,7 @@ function load_graph_definitions($logarithmic = false, $tinylegend = false) {
'GPRINT:max:MAX:%9.3lf',
'GPRINT:avg:LAST:%9.3lf\l');
$GraphDefs['swap'] = array(
- #'-v', 'Bytes',
+ #'-v', 'Bytes',
'-b', '1024',
'DEF:avg={file}:value:AVERAGE',
'DEF:min={file}:value:MIN',
@@ -1396,7 +1396,7 @@ function load_graph_definitions($logarithmic = false, $tinylegend = false) {
'GPRINT:s_max:MAX:%5.2lf%s',
'GPRINT:s_avg:LAST:%5.2lf%s');
$GraphDefs['if_octets'] = array(
- #'-v', 'Bits/s',
+ #'-v', 'Bits/s',
'--units=si',
'DEF:out_min_raw={file}:tx:MIN',
'DEF:out_avg_raw={file}:tx:AVERAGE',
@@ -1755,7 +1755,7 @@ function meta_graph_memory($host, $plugin, $plugin_instance, $type, $type_instan
$opts['title'] = $title;
$opts['number_format'] = '%5.1lf%s';
$opts['rrd_opts'] = array('-b', '1024', 'COMMENT:Bytes Cur Min Ave Max\l');
-
+
# BYTES
diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php
index 2f9454567..3b781c394 100644
--- a/html/includes/functions.inc.php
+++ b/html/includes/functions.inc.php
@@ -39,7 +39,7 @@ function rrdtool_graph($graph_file, $options)
// proc_close in order to avoid a deadlock
$return_value = proc_close($process);
- if($debug)
+ if($debug)
{
echo("");
if($debug) { echo("graph $graph_file $options"); }
@@ -415,7 +415,7 @@ function generate_port_thumbnail($args)
function print_optionbar_start ($height = 0, $width = 0, $marginbottom = 5)
{
echo("
-
");
}
@@ -443,7 +443,7 @@ function overlibprint($text)
function humanmedia($media)
{
- array_preg_replace($rewrite_iftype, $media);
+ array_preg_replace($rewrite_iftype, $media);
return $media;
}
diff --git a/html/includes/geshi/docs/geshi-doc.html.gz b/html/includes/geshi/docs/geshi-doc.html.gz
index f779cd1e9..12413168a 100644
Binary files a/html/includes/geshi/docs/geshi-doc.html.gz and b/html/includes/geshi/docs/geshi-doc.html.gz differ
diff --git a/html/includes/geshi/docs/geshi-doc.txt.gz b/html/includes/geshi/docs/geshi-doc.txt.gz
index 0eb5675e8..8b95874d8 100644
Binary files a/html/includes/geshi/docs/geshi-doc.txt.gz and b/html/includes/geshi/docs/geshi-doc.txt.gz differ
diff --git a/html/includes/geshi/geshi/ios.php b/html/includes/geshi/geshi/ios.php
index 6e809e26f..dc6ccc508 100755
--- a/html/includes/geshi/geshi/ios.php
+++ b/html/includes/geshi/geshi/ios.php
@@ -9,7 +9,7 @@ $language_data = array (
'OOLANG' => false,
'NUMBERS' => GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX,
'KEYWORDS' => array(
- 1 => array(
+ 1 => array(
'no', 'shutdown'
),
# 2 => array(
@@ -32,7 +32,7 @@ $language_data = array (
# 'isis', 'ospf', 'eigrp', 'rip', 'igrp', 'bgp', 'ipv4', 'unicast', 'multicast', 'ipv6', 'connected', 'static', 'subnets', 'tcl'
# ),
# 4 => array(
-# 'point-to-point', 'aal5snap', 'rj45', 'auto', 'full', 'half', 'precedence', 'percent', 'datetime', 'msec', 'locatime', 'summer-time', 'md5', 'wait-for-bgp', 'wide',
+# 'point-to-point', 'aal5snap', 'rj45', 'auto', 'full', 'half', 'precedence', 'percent', 'datetime', 'msec', 'locatime', 'summer-time', 'md5', 'wait-for-bgp', 'wide',
# 'level-1', 'level-2', 'log-neighbor-changes', 'directed-request', 'password-encryption', 'common', 'origin-as', 'bgp-nexthop', 'random-detect', 'localtime', 'sso', 'stm-1',
# 'dot1q', 'isl', 'new-model', 'always', 'summary-only', 'freeze', 'global', 'forwarded', 'access', 'trunk', 'edge', 'transparent'
# ),
@@ -108,7 +108,7 @@ $language_data = array (
GESHI_REPLACE => '\\2',
GESHI_BEFORE => '\\1 '
),
-
+
),
'STYLES' => array(
@@ -163,7 +163,7 @@ $language_data = array (
2 => '',
3 => ''
)
-
+
)
diff --git a/html/includes/graphs/application/apache_scoreboard.inc.php b/html/includes/graphs/application/apache_scoreboard.inc.php
index 7d9d51650..ebabfba98 100755
--- a/html/includes/graphs/application/apache_scoreboard.inc.php
+++ b/html/includes/graphs/application/apache_scoreboard.inc.php
@@ -61,6 +61,6 @@ $rrd_options .= 'GPRINT:i:MAX:"%6.2lf %s\n" ';
$rrd_options .= 'AREA:j#FF4105FF:"Idle ":STACK ';
$rrd_options .= 'GPRINT:j:LAST:"%6.2lf %s" ';
$rrd_options .= 'GPRINT:j:AVERAGE:"%6.2lf %s" ';
-$rrd_options .= 'GPRINT:j:MAX:"%6.2lf %s\n"';
+$rrd_options .= 'GPRINT:j:MAX:"%6.2lf %s\n"';
?>
diff --git a/html/includes/graphs/application/mysql_network_traffic.inc.php b/html/includes/graphs/application/mysql_network_traffic.inc.php
index 00c4440be..08835450d 100644
--- a/html/includes/graphs/application/mysql_network_traffic.inc.php
+++ b/html/includes/graphs/application/mysql_network_traffic.inc.php
@@ -9,7 +9,7 @@ if (is_file($mysql_rrd))
$rrd_filename = $mysql_rrd;
}
-$rrd_options .= ' -b 1024 ';
+$rrd_options .= ' -b 1024 ';
$rrd_options .= ' DEF:a='.$rrd_filename.':BRd:AVERAGE ';
$rrd_options .= ' DEF:b='.$rrd_filename.':BSt:AVERAGE ';
$rrd_options .= ' CDEF:c=a,-1,* ';
diff --git a/html/includes/graphs/common.inc.php b/html/includes/graphs/common.inc.php
index fd60e10b8..bc1742389 100644
--- a/html/includes/graphs/common.inc.php
+++ b/html/includes/graphs/common.inc.php
@@ -23,7 +23,7 @@ if ($_GET['bg']) { $rrd_options .= " -c CANVAS#" . mres($_GET['bg']) . " "; }
#$rrd_options .= " -c BACK#FFFFFF";
-if ($height < "99") { $rrd_options .= " --only-graph"; }
+if ($height < "99") { $rrd_options .= " --only-graph"; }
if ($width <= "300") { $rrd_options .= " --font LEGEND:7:" . $config['mono_font'] . " --font AXIS:6:" . $config['mono_font']; }
else { $rrd_options .= " --font LEGEND:8:" . $config['mono_font'] . " --font AXIS:7:" . $config['mono_font']; }
diff --git a/html/includes/graphs/device/netstat_icmp.inc.php b/html/includes/graphs/device/netstat_icmp.inc.php
index 6caa7ac06..3ea622ab5 100644
--- a/html/includes/graphs/device/netstat_icmp.inc.php
+++ b/html/includes/graphs/device/netstat_icmp.inc.php
@@ -17,7 +17,7 @@ $stats = array('icmpInMsgs' => '00cc00',
$i=0;
-foreach($stats as $stat => $colour)
+foreach($stats as $stat => $colour)
{
$i++;
$rrd_list[$i]['filename'] = $rrd_filename;
diff --git a/html/includes/graphs/device/nfsen_common.inc.php b/html/includes/graphs/device/nfsen_common.inc.php
index 4c941a607..3e4d59b0f 100644
--- a/html/includes/graphs/device/nfsen_common.inc.php
+++ b/html/includes/graphs/device/nfsen_common.inc.php
@@ -5,7 +5,7 @@ $device = device_by_id_cache($id);
if (!is_array($config['nfsen_rrds'])) { $config['nfsen_rrds'] = array($config['nfsen_rrds']); }
foreach ( $config['nfsen_rrds'] as $nfsenrrds )
-{
+{
if ($configs[strlen($nfsenrrds)-1] != '/') { $nfsenrrds .= '/'; }
# convert dots in filename to underscores
@@ -16,7 +16,7 @@ foreach ( $config['nfsen_rrds'] as $nfsenrrds )
if (is_file($nfsenrrds . $nfsen_filename . ".rrd"))
{
- $rrd_filename = $nfsenrrds . $nfsen_filename . ".rrd";
+ $rrd_filename = $nfsenrrds . $nfsen_filename . ".rrd";
$flowtypes = array('tcp', 'udp', 'icmp', 'other');
diff --git a/html/includes/graphs/device/screenos_sessions.inc.php b/html/includes/graphs/device/screenos_sessions.inc.php
index 04fe44ac5..0e67d22cb 100644
--- a/html/includes/graphs/device/screenos_sessions.inc.php
+++ b/html/includes/graphs/device/screenos_sessions.inc.php
@@ -18,7 +18,7 @@ $rrd_list[2]['filename'] = $file;
$rrd_list[2]['descr'] = "Failed";
$rrd_list[2]['rra'] = "failed";
-if ($_GET['debug']) { print_r($rrd_list); }
+if ($_GET['debug']) { print_r($rrd_list); }
$colours = "mixed";
$nototal = 1;
diff --git a/html/includes/graphs/device/ucd_io.inc.php b/html/includes/graphs/device/ucd_io.inc.php
index c657e1e0f..d6486be66 100644
--- a/html/includes/graphs/device/ucd_io.inc.php
+++ b/html/includes/graphs/device/ucd_io.inc.php
@@ -1,7 +1,7 @@
$rrd)
$g_defname = $rrd['rra'] . "_cdef";
$rrd_options .= " CDEF:" . $g_defname . $i . "=" . $rrd['rra'] . $i . "," . $multiplier . ",*";
$rrd_options .= " CDEF:" . $g_defname . $i . "max=" . $rrd['rra'] . $i . "max," . $multiplier . ",*";
-
+
## If we've been passed a divider (divisor!) we make a CDEF for it.
} elseif (is_numeric($divider))
{
diff --git a/html/includes/graphs/graph.inc.php b/html/includes/graphs/graph.inc.php
index c2a53e4df..5ea8d6c5c 100644
--- a/html/includes/graphs/graph.inc.php
+++ b/html/includes/graphs/graph.inc.php
@@ -40,10 +40,10 @@ if (isset($config['allow_unauth_graphs']) && $config['allow_unauth_graphs'])
{
$auth = "1"; ## hardcode auth for all with config function
} else {
- if (!$_SESSION['authenticated'])
- {
- graph_error("Session not authenticated");
- exit;
+ if (!$_SESSION['authenticated'])
+ {
+ graph_error("Session not authenticated");
+ exit;
}
}
@@ -120,7 +120,7 @@ function graph_error($string)
if ($error_msg) {
graph_error($graph_error);
} elseif (!$auth) {
-
+
if ($width < 200)
{
graph_error("No Auth");
diff --git a/html/includes/graphs/macaccounting/auth.inc.php b/html/includes/graphs/macaccounting/auth.inc.php
index 603715eea..50f892587 100644
--- a/html/includes/graphs/macaccounting/auth.inc.php
+++ b/html/includes/graphs/macaccounting/auth.inc.php
@@ -21,8 +21,8 @@ if (is_numeric($id))
if(is_file($config['rrd_dir'] . "/" . $acc['hostname'] . "/" . safename("cip-" . $acc['ifIndex'] . "-" . $acc['mac'] . ".rrd")))
{
if($debug) { echo("exists"); }
- $rrd_filename = $config['rrd_dir'] . "/" . $acc['hostname'] . "/" . safename("cip-" . $acc['ifIndex'] . "-" . $acc['mac'] . ".rrd");
- $port = get_port_by_id($acc['interface_id']);
+ $rrd_filename = $config['rrd_dir'] . "/" . $acc['hostname'] . "/" . safename("cip-" . $acc['ifIndex'] . "-" . $acc['mac'] . ".rrd");
+ $port = get_port_by_id($acc['interface_id']);
$device = device_by_id_cache($port['device_id']);
$title = generate_device_link($device);
$title .= " :: Port ".generate_port_link($port);
diff --git a/html/includes/graphs/multiport/bits_separate.inc.php b/html/includes/graphs/multiport/bits_separate.inc.php
index 05cfe4bfc..c9d522013 100644
--- a/html/includes/graphs/multiport/bits_separate.inc.php
+++ b/html/includes/graphs/multiport/bits_separate.inc.php
@@ -5,7 +5,7 @@ $i = 0;
foreach (explode(",", $id) as $ifid)
{
$port = dbFetchRow("SELECT * FROM `ports` AS I, devices as D WHERE I.interface_id = ? AND I.device_id = D.device_id", array($ifid));
- if (is_file($config['rrd_dir'] . "/" . $port['hostname'] . "/port-" . safename($port['ifIndex'] . ".rrd")))
+ if (is_file($config['rrd_dir'] . "/" . $port['hostname'] . "/port-" . safename($port['ifIndex'] . ".rrd")))
{
$rrd_list[$i]['filename'] = $config['rrd_dir'] . "/" . $port['hostname'] . "/port-" . safename($port['ifIndex'] . ".rrd");
$rrd_list[$i]['descr'] = $port['hostname'] . " " . $port['ifDescr'];
diff --git a/html/includes/graphs/port/nupkts.inc.php b/html/includes/graphs/port/nupkts.inc.php
index d33738b03..4628b4082 100644
--- a/html/includes/graphs/port/nupkts.inc.php
+++ b/html/includes/graphs/port/nupkts.inc.php
@@ -38,7 +38,7 @@ if (1)
include("includes/graphs/generic_multi_seperated.inc.php");
}
-elseif (is_file($config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename($port['ifIndex'] . ".rrd")))
+elseif (is_file($config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename($port['ifIndex'] . ".rrd")))
{
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename($port['ifIndex'] . ".rrd");
diff --git a/html/includes/graphs/sensor/temperature.inc.php b/html/includes/graphs/sensor/temperature.inc.php
index ea34c3eb0..a2a38b836 100644
--- a/html/includes/graphs/sensor/temperature.inc.php
+++ b/html/includes/graphs/sensor/temperature.inc.php
@@ -23,7 +23,7 @@ $rrd_options .= " AREA:sensor_min#ffffffff";
# $rrd_options .= " AREA:sensorcold#CCCCFF";
# $rrd_options .= " LINE1:sensor#cc0000:'" . str_replace(':','\:',str_replace('\*','*',quotemeta($sensor['sensor_descr_fixed'])))."'"; # Ugly hack :(
-$rrd_options .= " LINE1.5:sensor#cc0000:'" . $sensor['sensor_descr_fixed']."'";
+$rrd_options .= " LINE1.5:sensor#cc0000:'" . $sensor['sensor_descr_fixed']."'";
# $rrd_options .= " LINE1.5:sensorwarm#660000";
$rrd_options .= " GPRINT:sensor_min:MIN:%4.1lfC";
$rrd_options .= " GPRINT:sensor:LAST:%4.1lfC";
diff --git a/html/includes/graphs/storage/usage.inc.php b/html/includes/graphs/storage/usage.inc.php
index feba9d11c..715908439 100644
--- a/html/includes/graphs/storage/usage.inc.php
+++ b/html/includes/graphs/storage/usage.inc.php
@@ -13,7 +13,7 @@ $rrd_options .= " COMMENT:' Size Free % Used\\n'";
$hostname = gethostbyid($storage['device_id']);
-$colour="CC0000";
+$colour="CC0000";
$colour_area="ffaaaa";
$descr = substr(str_pad($storage[storage_descr], 12),0,12);
diff --git a/html/includes/hostbox-basic.inc.php b/html/includes/hostbox-basic.inc.php
index 7ffa0137d..c21dc3ca4 100644
--- a/html/includes/hostbox-basic.inc.php
+++ b/html/includes/hostbox-basic.inc.php
@@ -2,18 +2,18 @@
if ($bg == $list_colour_b) { $bg = $list_colour_a; } else { $bg = $list_colour_b; }
-if ($device['status'] == '0')
+if ($device['status'] == '0')
{
- $class = "list-device-down";
-} else {
+ $class = "list-device-down";
+} else {
$class = "list-device";
}
-if ($device['ignore'] == '1')
+if ($device['ignore'] == '1')
{
$class = "list-device-ignored";
- if ($device['status'] == '1')
- {
- $class = "list-device-ignored-up";
+ if ($device['status'] == '1')
+ {
+ $class = "list-device-ignored-up";
}
}
if ($device['disabled'] == '1')
diff --git a/html/includes/hostbox.inc.php b/html/includes/hostbox.inc.php
index 8e91369c7..d08b9b2fc 100644
--- a/html/includes/hostbox.inc.php
+++ b/html/includes/hostbox.inc.php
@@ -2,18 +2,18 @@
if ($bg == $list_colour_b) { $bg = $list_colour_a; } else { $bg = $list_colour_b; }
-if ($device['status'] == '0')
+if ($device['status'] == '0')
{
- $class = "list-device-down";
-} else {
+ $class = "list-device-down";
+} else {
$class = "list-device";
}
-if ($device['ignore'] == '1')
+if ($device['ignore'] == '1')
{
$class = "list-device-ignored";
- if ($device['status'] == '1')
- {
- $class = "list-device-ignored-up";
+ if ($device['status'] == '1')
+ {
+ $class = "list-device-ignored-up";
}
}
if ($device['disabled'] == '1')
diff --git a/html/includes/print-interface.inc.php b/html/includes/print-interface.inc.php
index 3ad386e76..3f28947c3 100644
--- a/html/includes/print-interface.inc.php
+++ b/html/includes/print-interface.inc.php
@@ -9,7 +9,7 @@ $if_id = $port['interface_id'];
$port = ifLabel($port);
-if($int_colour)
+if($int_colour)
{
$row_colour = $int_colour;
} else {
@@ -40,7 +40,7 @@ unset ($break);
if ($port_details)
{
- foreach (dbFetchRows("SELECT * FROM `ipv4_addresses` WHERE `interface_id` = ?", array($port['interface_id'])) as $ip)
+ foreach (dbFetchRows("SELECT * FROM `ipv4_addresses` WHERE `interface_id` = ?", array($port['interface_id'])) as $ip)
{
echo("$break
".$ip['ipv4_address']."/".$ip['ipv4_prefixlen']." ");
$break = "
";
@@ -202,7 +202,7 @@ foreach (dbFetchRows("SELECT * FROM `pseudowires` WHERE `interface_id` = ?", arr
#`interface_id`,`peer_device_id`,`peer_ldp_id`,`cpwVcID`,`cpwOid`
$pw_peer_dev = dbFetchRow("SELECT * FROM `devices` WHERE `device_id` = ?", array($pseudowire['peer_device_id']));
$pw_peer_int = dbFetchRow("SELECT * FROM `ports` AS I, pseudowires AS P WHERE I.device_id = ? AND P.cpwVcID = ? AND P.interface_id = I.interface_id", array($pseudowire['peer_device_id'], $pseudowire['cpwVcID']));
-
+
$pw_peer_int = ifNameDescr($pw_peer_int);
echo("$br
" . generate_port_link($pw_peer_int, makeshortif($pw_peer_int['label'])) ." on ". generate_device_link($pw_peer_dev, shorthost($pw_peer_dev['hostname'])) . " ");
$br = "
";
@@ -223,7 +223,7 @@ if ($port['pagpGroupIfIndex'] && $port['pagpGroupIfIndex'] != $port['ifIndex'])
foreach(dbFetchRows("SELECT * FROM `ports_stack` WHERE `interface_id_low` = ? and `device_id` = ?", array($port['ifIndex'], $device['device_id'])) as $higher_if)
{
- if($higher_if['interface_id_high'])
+ if($higher_if['interface_id_high'])
{
$this_port = get_port_by_index_cache($device['device_id'], $higher_if['interface_id_high']);
echo("$br
" . generate_port_link($this_port) . " ");
diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php
index 517da4506..f9674ae99 100644
--- a/html/includes/print-menubar.php
+++ b/html/includes/print-menubar.php
@@ -61,10 +61,10 @@ foreach (dbFetchRows("SELECT * FROM `devices`") as $device)
-
+
-
+
Devices
@@ -93,15 +93,15 @@ if ($_SESSION['userlevel'] >= '10') {
-
-
-
-
+
+
+
+
Ports
-
+
All Ports
@@ -294,10 +294,10 @@ if ($deleted_ports) { echo('
-
+
-
+
@@ -212,7 +212,7 @@ if ($config['page_refresh']) { echo(" ");
print_r($_GET);
diff --git a/html/pages/about.inc.php b/html/pages/about.inc.php
index 574e06765..452763976 100644
--- a/html/pages/about.inc.php
+++ b/html/pages/about.inc.php
@@ -155,7 +155,7 @@ print_optionbar_end();
Facebook
-
+
Observium is a Free, Open project. Please donate to support continued development.
diff --git a/html/pages/adduser.inc.php b/html/pages/adduser.inc.php
index cb3128d23..d85caa0bd 100644
--- a/html/pages/adduser.inc.php
+++ b/html/pages/adduser.inc.php
@@ -18,13 +18,13 @@ else
{
if (!user_exists($_POST['new_username']))
{
-
+
if (isset($_POST['can_modify_passwd'])) {
$_POST['can_modify_passwd'] = 1;
} else {
$_POST['can_modify_passwd'] = 0;
}
-
+
# FIXME: missing email field here on the form
if (adduser($_POST['new_username'], $_POST['new_password'], $_POST['new_level'], '', $_POST['realname'], $_POST['can_modify_passwd']))
{
diff --git a/html/pages/bill.inc.php b/html/pages/bill.inc.php
index 6cd86b898..cac7dbf87 100644
--- a/html/pages/bill.inc.php
+++ b/html/pages/bill.inc.php
@@ -61,7 +61,7 @@ if (bill_permitted($bill_id))
$unixfrom = dbFetchCell("SELECT UNIX_TIMESTAMP('$datefrom')");
$unixto = dbFetchCell("SELECT UNIX_TIMESTAMP('$dateto')");
- $unix_prev_from = dbFetchCell("SELECT UNIX_TIMESTAMP('$lastfrom')");
+ $unix_prev_from = dbFetchCell("SELECT UNIX_TIMESTAMP('$lastfrom')");
$unix_prev_to = dbFetchCell("SELECT UNIX_TIMESTAMP('$lastto')");
echo("
diff --git a/html/pages/bill/actions.inc.php b/html/pages/bill/actions.inc.php
index 94e02478d..93f1ebd8c 100644
--- a/html/pages/bill/actions.inc.php
+++ b/html/pages/bill/actions.inc.php
@@ -18,18 +18,18 @@ if ($_POST['action'] == "delete_bill" && $_POST['confirm'] == "confirm")
echo(" ");
}
-if ($_POST['action'] == "add_bill_port")
-{
+if ($_POST['action'] == "add_bill_port")
+{
dbInsert(array('bill_id' => $_POST['bill_id'], 'port_id' => $_POST['interface_id']), 'bill_ports');
}
-if ($_POST['action'] == "delete_bill_port")
-{
+if ($_POST['action'] == "delete_bill_port")
+{
dbDelete('bill_ports', "`bill_id` = ? AND `port_id` = ?", array($bill_id, $_POST['interface_id']));
}
if ($_POST['action'] == "update_bill")
{
- if (dbUpdate(array('bill_name' => $_POST['bill_name'], 'bill_day' => $_POST['bill_day'], 'bill_gb' => $_POST['bill_gb'],
+ if (dbUpdate(array('bill_name' => $_POST['bill_name'], 'bill_day' => $_POST['bill_day'], 'bill_gb' => $_POST['bill_gb'],
'bill_cdr' => $_POST['bill_cdr'], 'bill_type' => $_POST['bill_type']), 'bills', '`bill_id` = ?', array($bill_id)))
{
print_message("Bill Properties Updated");
diff --git a/html/pages/device.inc.php b/html/pages/device.inc.php
index aeed76973..d7f7764df 100644
--- a/html/pages/device.inc.php
+++ b/html/pages/device.inc.php
@@ -117,7 +117,7 @@ if (device_permitted($vars['device']) || $check_device == $vars['device'])
$device_routing_count['bgp'] = dbFetchCell("SELECT COUNT(*) FROM `bgpPeers` WHERE `device_id` = ?", array($device['device_id']));
if ($device_routing_count['bgp']) { $routing_tabs[] = 'bgp'; }
-
+
$device_routing_count['ospf'] = dbFetchCell("SELECT COUNT(*) FROM `ospf_ports` WHERE `device_id` = ?", array($device['device_id']));
if ($device_routing_count['ospf']) { $routing_tabs[] = 'ospf'; }
@@ -127,7 +127,7 @@ if (device_permitted($vars['device']) || $check_device == $vars['device'])
$device_routing_count['vrf'] = @dbFetchCell("SELECT COUNT(*) FROM `vrfs` WHERE `device_id` = ?", array($device['device_id']));
if($device_routing_count['vrf']) { $routing_tabs[] = 'vrf'; }
- if (is_array($routing_tabs))
+ if (is_array($routing_tabs))
{
echo('
@@ -219,7 +219,7 @@ if (device_permitted($vars['device']) || $check_device == $vars['device'])
}
if ($config['nfsen_enable'])
- {
+ {
if (!is_array($config['nfsen_rrds'])) { $config['nfsen_rrds'] = array($config['nfsen_rrds']); }
foreach ($config['nfsen_rrds'] as $nfsenrrds)
{
diff --git a/html/pages/device/edit/apps.inc.php b/html/pages/device/edit/apps.inc.php
index 63e2ab571..c8bb3c01c 100644
--- a/html/pages/device/edit/apps.inc.php
+++ b/html/pages/device/edit/apps.inc.php
@@ -1,10 +1,5 @@
$_POST['community'], 'snmpver' => $_POST['snmpver'], 'port' => $_POST['port']);
if ($_POST['timeout']) { $update['timeout'] = $_POST['timeout']; } else { $update['timeout'] = array(NULL); }
if ($_POST['retries']) { $update['retries'] = $_POST['retries']; } else { $update['retries'] = array(NULL); }
-
+
$rows_updated = dbUpdate($update, 'devices', '`device_id` = ?',array($device['device_id']));
if ($rows_updated > 0)
diff --git a/html/pages/device/graphs.inc.php b/html/pages/device/graphs.inc.php
index 77ae29e57..c9d13383f 100644
--- a/html/pages/device/graphs.inc.php
+++ b/html/pages/device/graphs.inc.php
@@ -37,9 +37,9 @@ foreach ($config['graph_sections'] as $section)
echo(generate_link(ucfirst($type),$link_array,array('group'=>$type)));
- if ($vars['group'] == $type)
- {
- echo("");
+ if ($vars['group'] == $type)
+ {
+ echo("");
}
$sep = " | ";
}
diff --git a/html/pages/device/health/diskio.inc.php b/html/pages/device/health/diskio.inc.php
index d58fcabbf..0fac6fbbd 100644
--- a/html/pages/device/health/diskio.inc.php
+++ b/html/pages/device/health/diskio.inc.php
@@ -23,7 +23,7 @@ foreach (dbFetchRows("SELECT * FROM `ucd_diskio` WHERE device_id = ? ORDER BY di
$graph_array_zoom['height'] = "125";
$graph_array_zoom['from'] = $config['time']['twoday'];
$graph_array_zoom['to'] = $config['time']['now'];
-
+
echo("");
echo(overlib_link($fs_url, $drive['diskio_descr'], generate_graph_tag($graph_array_zoom), NULL));
diff --git a/html/pages/device/nfsen.inc.php b/html/pages/device/nfsen.inc.php
index 95303f480..68ed31dfc 100644
--- a/html/pages/device/nfsen.inc.php
+++ b/html/pages/device/nfsen.inc.php
@@ -7,7 +7,7 @@ $datas = array(
);
foreach ($datas as $name=>$type)
-{
+{
$graph_title = $name;
$graph_type = "device_".$type;
include("includes/print-device-graph.php");
diff --git a/html/pages/device/port/realtime.inc.php b/html/pages/device/port/realtime.inc.php
index 9627721bf..9bfc63389 100644
--- a/html/pages/device/port/realtime.inc.php
+++ b/html/pages/device/port/realtime.inc.php
@@ -14,7 +14,7 @@ print_optionbar_start();
echo("Polling Interval: ");
-foreach(array(0.25, 1, 2, 5, 15, 60) as $interval)
+foreach(array(0.25, 1, 2, 5, 15, 60) as $interval)
{
echo($thinger);
if ($vars['interval'] == $interval) { echo("