Scu: Le mot de passe ne doit pas apparaitre meme crypt sauf pour admin qui peut apparaitre crypt.

This commit is contained in:
Laurent Destailleur 2007-04-26 01:00:27 +00:00
parent 0bc5453bc8
commit 36f2e6d580

View File

@ -2915,7 +2915,7 @@ class Form
}
function show_ldap_content($result,$level,$count,$var)
function show_ldap_content($result,$level,$count,$var,$hide=0)
{
global $bc, $conf;
@ -2936,18 +2936,21 @@ class Form
if (is_array($val))
{
$hide=0;
if (! is_numeric($key))
{
$var=!$var;
print '<tr '.$bc[$var].'><td>';
print $key;
print '</td><td>';
if (strtolower($key) == 'userpassword') $hide=1;
}
$this->show_ldap_content($val,$level+1,$count,$var);
$this->show_ldap_content($val,$level+1,$count,$var,$hide);
}
else
{
print utf8_decode("$val");
if ($hide) print eregi_replace('.','*',utf8_decode("$val"));
else print utf8_decode($val);
print '</td></tr>';
}
}