diff --git a/html/includes/authentication/ldap.inc.php b/html/includes/authentication/ldap.inc.php index 3ba08fc05..74213fbbc 100644 --- a/html/includes/authentication/ldap.inc.php +++ b/html/includes/authentication/ldap.inc.php @@ -126,10 +126,10 @@ function get_userlist() global $config, $ds; $filter = '(' . $config['auth_ldap_prefix'] . '*)'; - + $search = ldap_search($ds, trim($config['auth_ldap_suffix'],','), $filter); $entries = ldap_get_entries($ds, $search); - + if ($entries['count']) { foreach ($entries as $entry) @@ -137,14 +137,14 @@ function get_userlist() $username = $entry['uid'][0]; $realname = $entry['cn'][0]; $user_id = $entry['uidnumber'][0]; - + if (!isset($config['auth_ldap_group']) || ldap_compare($ds,$config['auth_ldap_group'],'memberUid',$username)) { $userlist[] = array('username' => $username, 'realname' => $realname, 'user_id' => $user_id); } } } - + return $userlist; } diff --git a/html/pages/device.inc.php b/html/pages/device.inc.php index 282efbdfc..70ed6a7be 100644 --- a/html/pages/device.inc.php +++ b/html/pages/device.inc.php @@ -251,7 +251,7 @@ if (device_permitted($vars['device']) || $check_device == $vars['device']) '); } - echo(""); + echo(""); } if (device_permitted($device['device_id']) || $check_device == $vars['device']) { diff --git a/html/pages/device/apps/powerdns.inc.php b/html/pages/device/apps/powerdns.inc.php index ae857f384..c1d93e0dd 100644 --- a/html/pages/device/apps/powerdns.inc.php +++ b/html/pages/device/apps/powerdns.inc.php @@ -11,7 +11,7 @@ $graphs = array('powerdns_latency' => 'Latency', 'powerdns_queries_udp' => 'Detail UDP IPv4/IPv6 Queries and Answers'); foreach ($graphs as $key => $text) { - $graph_type = $key; + $graph_type = $key; $graph_array['height'] = "100"; $graph_array['width'] = "215"; $graph_array['to'] = $now; diff --git a/html/pages/devices.inc.php b/html/pages/devices.inc.php index ba151f5c6..6f805ccc4 100644 --- a/html/pages/devices.inc.php +++ b/html/pages/devices.inc.php @@ -247,7 +247,7 @@ if($format == "graph") { $graph_type = "device_".$subformat; - if($_SESSION['widescreen']) { $width=270; } else { $width=315; } + if ($_SESSION['widescreen']) { $width=270; } else { $width=315; } echo("