Try to fix
This commit is contained in:
parent
35db04e1b5
commit
c0cd28c722
@ -131,7 +131,7 @@ function show_ldap_content($result,$level,$count,$var,$hide=0)
|
|||||||
if ("$key" == "dn") continue;
|
if ("$key" == "dn") continue;
|
||||||
|
|
||||||
if ("$val" == "objectclass") continue;
|
if ("$val" == "objectclass") continue;
|
||||||
if ("$val" == $lastkey[$level]) continue;
|
//if ("$val" == $lastkey[$level]) continue;
|
||||||
|
|
||||||
$lastkey[$level]=$key;
|
$lastkey[$level]=$key;
|
||||||
|
|
||||||
@ -141,7 +141,8 @@ function show_ldap_content($result,$level,$count,$var,$hide=0)
|
|||||||
if (! is_numeric($key))
|
if (! is_numeric($key))
|
||||||
{
|
{
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td>';
|
print '<tr '.$bc[$var].'>';
|
||||||
|
print '<td>';
|
||||||
print $key;
|
print $key;
|
||||||
print '</td><td>';
|
print '</td><td>';
|
||||||
if (strtolower($key) == 'userpassword') $hide=1;
|
if (strtolower($key) == 'userpassword') $hide=1;
|
||||||
@ -153,8 +154,9 @@ function show_ldap_content($result,$level,$count,$var,$hide=0)
|
|||||||
$newstring=@htmlentities($val,ENT_COMPAT,'UTF-8'); // Make entity encoding
|
$newstring=@htmlentities($val,ENT_COMPAT,'UTF-8'); // Make entity encoding
|
||||||
if ($hide) print preg_replace('/./i','*',$newstring);
|
if ($hide) print preg_replace('/./i','*',$newstring);
|
||||||
else print $newstring;
|
else print $newstring;
|
||||||
print '</td></tr>';
|
if ("$val" == $lastkey[$level]) print '<br>';
|
||||||
}
|
}
|
||||||
|
if ("$val" != $lastkey[$level]) print '</td></tr>';
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -45,7 +45,7 @@ class UserGroup extends CommonObject
|
|||||||
var $note; // Note on group
|
var $note; // Note on group
|
||||||
var $datec; // Creation date of group
|
var $datec; // Creation date of group
|
||||||
var $datem; // Modification date of group
|
var $datem; // Modification date of group
|
||||||
var $members=array(1,2,18); // Array of users
|
var $members=array(); // Array of users
|
||||||
|
|
||||||
var $oldcopy; // To contains a clone of this when we need to save old properties of object
|
var $oldcopy; // To contains a clone of this when we need to save old properties of object
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user