mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2542 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -71,7 +71,7 @@ function user_exists($username)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ function get_userlevel($username)
|
||||
$userlevel = $config['auth_ldap_groups'][$groupname]['level'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $userlevel;
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ function get_userid($username)
|
||||
{
|
||||
return $entries[0]['uidnumber'][0];
|
||||
}
|
||||
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@ function generate_graph_popup($graph_array)
|
||||
$graph_array['from'] = $config['time']['year'];
|
||||
$content .= generate_graph_tag($graph_array);
|
||||
$content .= "</div>";
|
||||
|
||||
|
||||
$graph_array['link'] = "graphs/type=" . $graph_array['type'] . "/id=" . $graph_array['id'];
|
||||
|
||||
return overlib_link($graph_array['link'], $graph, $content, NULL);
|
||||
|
||||
@@ -16,7 +16,7 @@ if (is_file($rrd_filename))
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if(is_array($vars))
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
|
||||
@@ -15,7 +15,7 @@ if (is_file($rrd_filename))
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if(is_array($vars))
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
|
||||
@@ -15,7 +15,7 @@ if (is_file($rrd_filename))
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if(is_array($vars))
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
|
||||
@@ -19,7 +19,7 @@ if (is_file($rrd_filename))
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if(is_array($vars))
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
|
||||
@@ -34,7 +34,7 @@ foreach ($rrd_list as $rrd)
|
||||
$colour_out=$config['graph_colours'][$colours_out][$iter];
|
||||
|
||||
$descr = str_replace(":", "\:", substr(str_pad($rrd['descr'], $descr_len),0,$descr_len)) . " In";
|
||||
if(isset($rrd['descr_in']))
|
||||
if (isset($rrd['descr_in']))
|
||||
{
|
||||
$descr = str_replace(":", "\:", substr(str_pad($rrd['descr_in'], $descr_len),0,$descr_len)) . " In";
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ $rrd_options .= " COMMENT:'\\n'";
|
||||
$colour_iter=0;
|
||||
foreach ($rrd_list as $i => $rrd)
|
||||
{
|
||||
if($rrd['colour'])
|
||||
if ($rrd['colour'])
|
||||
{
|
||||
$colour = $rrd['colour'];
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user