mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed some scrut major issues
This commit is contained in:
@@ -86,7 +86,7 @@ function graph_error($string)
|
||||
rrdtool_graph($graphfile, $rrd_options);
|
||||
|
||||
if ($height > "99") {
|
||||
$woo = shell_exec($rrd_cmd);
|
||||
shell_exec($rrd_cmd);
|
||||
if ($debug) { echo("<pre>".$rrd_cmd."</pre>"); }
|
||||
if (is_file($graphfile) && !$debug)
|
||||
{
|
||||
@@ -98,7 +98,6 @@ function graph_error($string)
|
||||
} else {
|
||||
if (!$debug) { header('Content-type: image/png'); }
|
||||
$im = imagecreate($width, $height);
|
||||
$orange = imagecolorallocate($im, 255, 225, 225);
|
||||
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
|
||||
imagestring($im, 3, $px, $height / 2 - 8, $string, imagecolorallocate($im, 128, 0, 0));
|
||||
imagepng($im);
|
||||
@@ -113,7 +112,7 @@ if ($error_msg) {
|
||||
|
||||
graph_error($graph_error);
|
||||
|
||||
} elseif (!$auth) {
|
||||
} elseif ($auth === null) {
|
||||
// We are unauthenticated :(
|
||||
|
||||
if ($width < 200)
|
||||
|
Reference in New Issue
Block a user