diff --git a/adduser.php b/adduser.php
index d90e87b66..ad2852c4a 100755
--- a/adduser.php
+++ b/adduser.php
@@ -11,7 +11,7 @@ if (file_exists('html/includes/authentication/' . $config['auth_mechanism'] . '.
}
else
{
- echo "ERROR: no valid auth_mechanism defined.\n";
+ echo("ERROR: no valid auth_mechanism defined.\n)";
exit();
}
@@ -31,7 +31,7 @@ if (auth_usermanagement())
}
else
{
- echo "Auth module does not allow adding users!\n";
+ echo("Auth module does not allow adding users!\n");
}
?>
diff --git a/delhost.php b/delhost.php
index aa23da162..9384652ef 100755
--- a/delhost.php
+++ b/delhost.php
@@ -11,7 +11,7 @@ if($argv[1]) {
$host = strtolower($argv[1]);
$id = getidbyname($host);
if($id) {
- echo delete_device($id);
+ echo(delete_device($id));
echo("Removed $host\n");
} else {
echo("Host doesn't exist!\n");
diff --git a/discovery.php b/discovery.php
index e4ffbfcd0..1961a0cb5 100755
--- a/discovery.php
+++ b/discovery.php
@@ -89,7 +89,7 @@ if (file_exists('.svn'))
if ($dbu_rev+0 > $db_rev)
{
- echo "SVN revision changed.\n";
+ echo("SVN revision changed.\n");
if($db_rev+0 < "1000") {
echo("Running pre-revision 1000 SQL update script...\n");
shell_exec("scripts/update-sql.php database-update-pre1000.sql");
@@ -124,7 +124,7 @@ while ($device = mysql_fetch_array($device_query))
mysql_query("UPDATE `devices` SET `os` = '".strtolower($device['os'])."' WHERE device_id = '".$device['device_id']."'");
$device['os'] = strtolower($device['os']); echo("OS lowercased.");
}
- if($config['os'][$device['os']]['group']) {$device['os_group'] = $config['os'][$device['os']]['group']; echo "(".$device['os_group'].")";}
+ if($config['os'][$device['os']]['group']) {$device['os_group'] = $config['os'][$device['os']]['group']; echo("(".$device['os_group'].")");}
echo("\n");
@@ -184,6 +184,7 @@ if($discovered_devices) {
$string = $argv[0] . " $doing " . date("F j, Y, G:i") . " - $discovered_devices devices discovered in $proctime secs";
if ($debug) echo("$string\n");
+# FIXME EWW
shell_exec("echo '".$string."' >> ".$config['log_file']);
?>
diff --git a/fix-port-rrd.php b/fix-port-rrd.php
index 9dbec19b8..3b0c00a4a 100755
--- a/fix-port-rrd.php
+++ b/fix-port-rrd.php
@@ -13,14 +13,14 @@
$rrdcached = " --daemon " . $config['rrdcached'];
}
- echo $count . " Files \n";
+ echo($count . " Files \n");
$start = date("U");
$i = 0;
foreach($files as $file){
fixRdd($file);
$i++;
if(date("U") - $start > 1)
- echo round(($i / $count) * 100, 2) . "% \r";
+ echo(round(($i / $count) * 100, 2) . "% \r");
}
function getDirectoryTree( $outerDir, &$files = array()){
@@ -201,7 +201,7 @@ THIRD;
}
- echo "\n";
+ echo("\n");
?>
diff --git a/html/ajax_listports.php b/html/ajax_listports.php
index 815e3e5e5..7bd3a40f0 100755
--- a/html/ajax_listports.php
+++ b/html/ajax_listports.php
@@ -1,6 +1,6 @@
RRD Log Directory is missing ({$config['rrd_dir']}). Graphing may fail.";
-
-### RRD dir probably shouldn't be writable by apache :>
-#if(!$config['rrdcached'] && !is_writable($config['rrd_dir']))
-# echo "
RRD Log Directory is not writable ({$config['rrd_dir']}). Graphing may fail.
";
+ echo("RRD Log Directory is missing ({$config['rrd_dir']}). Graphing may fail.
");
if(!is_dir($config['temp_dir']))
- echo "Temp Directory is missing ({$config['tmp_dir']}). Graphing may fail.
";
+ echo("Temp Directory is missing ({$config['tmp_dir']}). Graphing may fail.
");
if(!is_writable($config['temp_dir']))
- echo "Temp Directory is not writable ({$config['tmp_dir']}). Graphing may fail.
";
+ echo("Temp Directory is not writable ({$config['tmp_dir']}). Graphing may fail.
");
if(isset($_GET['logout']) && $_SESSION['authenticated']) {
mysql_query("INSERT INTO authlog (`user`,`address`,`result`) VALUES ('" . $_SESSION['username'] . "', '".$_SERVER["REMOTE_ADDR"]."', 'logged out')");
@@ -50,7 +46,7 @@ if (file_exists('includes/authentication/' . $config['auth_mechanism'] . '.inc.p
}
else
{
- echo "ERROR: no valid auth_mechanism defined
";
+ echo("ERROR: no valid auth_mechanism defined
");
exit();
}
diff --git a/html/includes/authentication/ldap.inc.php b/html/includes/authentication/ldap.inc.php
index 1d8477d5d..cb178e3f4 100644
--- a/html/includes/authentication/ldap.inc.php
+++ b/html/includes/authentication/ldap.inc.php
@@ -27,7 +27,7 @@ function authenticate($username,$password)
}
else
{
- echo ldap_error($ds);
+ echo(ldap_error($ds));
}
}
else
diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php
index 1351e87d6..6881e499f 100644
--- a/html/includes/functions.inc.php
+++ b/html/includes/functions.inc.php
@@ -93,7 +93,7 @@ function generate_graph_popup($graph_array)
function print_graph_popup($graph_array)
{
- echo (generate_graph_popup($graph_array));
+ echo(generate_graph_popup($graph_array));
}
@@ -185,7 +185,7 @@ function device_permitted($device_id)
function print_graph_tag ($args)
{
- echo generate_graph_tag ($args);
+ echo(generate_graph_tag ($args));
}
function generate_graph_tag ($args)
@@ -260,7 +260,7 @@ function generate_port_thumbnail($args)
if(!$args['bg']) { $args['bg'] = "FFFFF"; }
$args['content'] = "
";
$output = generate_port_link($args, $args['content']);
- echo $output;
+ echo($output);
}
function print_optionbar_start ($height = 20, $width = 0, $marginbottom = 5)
diff --git a/html/includes/ifbox.inc b/html/includes/ifbox.inc
index 2b06ec185..d5f57cba4 100644
--- a/html/includes/ifbox.inc
+++ b/html/includes/ifbox.inc
@@ -2,7 +2,7 @@
$iftype = fixiftype($interface[ifType]);
- echo ("");
+ echo("");
if($ifalias && $ifalias != "") { echo("$ifalias
"); }
if($iftype && $iftype != "") { echo("$iftype ");
if($mac && $mac != "") { echo("$mac
");
@@ -17,6 +17,6 @@
echo("");
}
- echo ("$status");
+ echo("$status");
?>
diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php
index d7d0b61e9..41040604f 100644
--- a/html/includes/print-menubar.php
+++ b/html/includes/print-menubar.php
@@ -54,12 +54,12 @@ if (isset($config['enable_bgp']) && $config['enable_bgp'])
foreach ($config['device_types'] as $devtype)
{
- echo '
' . $devtype['text'] . '';
+ echo('
' . $devtype['text'] . '');
}
?>
-
Alerts ()
+
Alerts ()
= '10') {
echo('
@@ -118,7 +118,7 @@ if ($config['show_locations'])
{
if ($row['location'] != '')
{
- echo '
' . $row['location'] . ' ';
+ echo('
' . $row['location'] . ' ');
}
}
?>
@@ -277,7 +277,7 @@ echo('
Edit User
');
}
- echo ('
+ echo('
Authlog');
} ?>
diff --git a/html/includes/topnav.inc b/html/includes/topnav.inc
index 9b552c748..f3554a25a 100644
--- a/html/includes/topnav.inc
+++ b/html/includes/topnav.inc
@@ -48,39 +48,39 @@ if($services['down']) { $services['bgcolour'] = "#ffcccc"; } else { $services['b
-
+
|
Devices : |
- |
+ |
( |
- up |
- down |
- ignored |
- disabled |
+ up |
+ down |
+ ignored |
+ disabled |
) |
|
-
+
| Ports : |
- |
+ |
( |
- up |
- down |
- ignored |
- shutdown |
+ up |
+ down |
+ ignored |
+ shutdown |
) |
|
-
+
|
Services : |
- |
+ |
( |
- up |
- down |
- ignored |
- disabled |
+ up |
+ down |
+ ignored |
+ disabled |
) |
|
diff --git a/html/index.php b/html/index.php
index e244584b3..326849110 100755
--- a/html/index.php
+++ b/html/index.php
@@ -43,8 +43,6 @@ if(strpos($_SERVER['REQUEST_URI'], "debug")) {
eval("\$config['" . $confitem . "'] = \$confval;");
}
}
- } else {
-# echo "Please check config.php.default and adjust your settings to reflect the new Multi-Tenancy configuration.";
}
?>
@@ -113,24 +111,24 @@ function popUp(URL) {
$end = utime(); $run = $end - $start;
$gentime = substr($run, 0, 5);
-
- echo '
');
?>