diff --git a/CHANGELOG b/CHANGELOG index 0e08499758..c12665573e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -20,6 +20,7 @@ SVN 0.10-current * Add support for Ingrasys iPoMan 1200 series PDUs * Add support for Socomec Net Vision UPS systems * Add support for ServerTech Sentry3 power systems +* Add support for VMWare ESX hosts, and listing their virtual machines * MySQL and nginx application pollers * Add support for IPMI polling on servers * Add a new discovery parameter to only discover new devices, this can be run every 5 minutes diff --git a/html/includes/authenticate.inc.php b/html/includes/authenticate.inc.php index 598e36e6f1..c45c95ddb9 100644 --- a/html/includes/authenticate.inc.php +++ b/html/includes/authenticate.inc.php @@ -6,15 +6,22 @@ session_start(); // Preflight checks if (!is_dir($config['rrd_dir'])) +{ 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.
"); +} if (!is_writable($config['temp_dir'])) +{ echo("
Temp Directory is not writable ({$config['tmp_dir']}). Graphing may fail.
"); +} -if (isset($_GET['logout']) && $_SESSION['authenticated']) { +if (isset($_GET['logout']) && $_SESSION['authenticated']) +{ mysql_query("INSERT INTO authlog (`user`,`address`,`result`) VALUES ('" . $_SESSION['username'] . "', '".$_SERVER["REMOTE_ADDR"]."', 'logged out')"); unset($_SESSION); session_destroy(); @@ -24,13 +31,14 @@ if (isset($_GET['logout']) && $_SESSION['authenticated']) { $auth_message = "Logged Out"; } -if (isset($_GET['username']) && isset($_GET['password'])){ +if (isset($_GET['username']) && isset($_GET['password'])) +{ $_SESSION['username'] = mres($_GET['username']); $_SESSION['password'] = mres($_GET['password']); -} elseif (isset($_POST['username']) && isset($_POST['password'])){ +} elseif (isset($_POST['username']) && isset($_POST['password'])) { $_SESSION['username'] = mres($_POST['username']); $_SESSION['password'] = mres($_POST['password']); -} elseif (isset($_COOKIE['username']) && isset($_COOKIE['password'])){ +} elseif (isset($_COOKIE['username']) && isset($_COOKIE['password'])) { $_SESSION['username'] = mres($_COOKIE['username']); $_SESSION['password'] = mres($_COOKIE['password']); } @@ -46,7 +54,7 @@ if (file_exists('includes/authentication/' . $config['auth_mechanism'] . '.inc.p } else { - echo("
ERROR: no valid auth_mechanism defined
"); + print_error('ERROR: no valid auth_mechanism defined!'); exit(); } diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index 94617298fc..4f76b04686 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -334,12 +334,12 @@ function humanspeed($speed) function print_error($text) { - echo('
'.$text.'
'); + echo('
'.$text.'
'); } function print_message($text) { - echo('
'.$text.'
'); + echo('
'.$text.'
'); } function devclass($device) diff --git a/html/index.php b/html/index.php index 1a280273f1..f364ee3fea 100755 --- a/html/index.php +++ b/html/index.php @@ -23,7 +23,6 @@ include("../includes/defaults.inc.php"); include("../config.php"); include("../includes/functions.php"); include("includes/functions.inc.php"); -include("includes/authenticate.inc.php"); $start = utime(); $now = time(); @@ -61,8 +60,8 @@ if (is_array($config['branding'])) "); } ?> - - + + @@ -81,13 +80,15 @@ function popUp(URL)
+ +include("includes/authenticate.inc.php"); +include("includes/".$config['web_header']); -'); } ?> +if ($_SESSION['authenticated']) { include("includes/print-menubar.php"); } else { echo('
'); } +?>
-
diff --git a/html/pages/bills.inc.php b/html/pages/bills.inc.php index d3ee902035..c8e1d3149b 100644 --- a/html/pages/bills.inc.php +++ b/html/pages/bills.inc.php @@ -83,7 +83,7 @@ if ($_GET['opta'] == "add")
Bills
- + + - + - +
diff --git a/html/pages/ipv6.inc.php b/html/pages/ipv6.inc.php index 775f7d282f..960c1228a1 100644 --- a/html/pages/ipv6.inc.php +++ b/html/pages/ipv6.inc.php @@ -27,7 +27,7 @@ while ($data = mysql_fetch_array($query)) - +
diff --git a/html/pages/ports/default.inc.php b/html/pages/ports/default.inc.php index 1b29315320..e6c1ac1a8d 100644 --- a/html/pages/ports/default.inc.php +++ b/html/pages/ports/default.inc.php @@ -64,7 +64,7 @@ - + Deleted > diff --git a/html/pages/syslog.inc.php b/html/pages/syslog.inc.php index 81fcca6fea..b369976f05 100644 --- a/html/pages/syslog.inc.php +++ b/html/pages/syslog.inc.php @@ -6,7 +6,7 @@