mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-03 07:32:32 +01:00
add new rule
This commit is contained in:
@@ -112,17 +112,14 @@ function show_ldap_test_button($butlabel, $testlabel, $key, $dn, $objectclass)
|
||||
if (!function_exists("ldap_connect"))
|
||||
{
|
||||
print '<a class="butActionRefused classfortooltip" href="#" title="'.$langs->trans('LDAPFunctionsNotAvailableOnPHP').'">'.$butlabel.'</a>';
|
||||
}
|
||||
elseif (empty($conf->global->LDAP_SERVER_HOST))
|
||||
} elseif (empty($conf->global->LDAP_SERVER_HOST))
|
||||
{
|
||||
print '<a class="butActionRefused classfortooltip" href="#" title="'.$langs->trans('LDAPSetupNotComplete').'">'.$butlabel.'</a>';
|
||||
}
|
||||
elseif (empty($key) || empty($dn) || empty($objectclass))
|
||||
} elseif (empty($key) || empty($dn) || empty($objectclass))
|
||||
{
|
||||
$langs->load("errors");
|
||||
print '<a class="butActionRefused classfortooltip" href="#" title="'.$langs->trans('ErrorLDAPSetupNotComplete').'">'.$butlabel.'</a>';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action='.$testlabel.'">'.$butlabel.'</a>';
|
||||
}
|
||||
print '<br><br>';
|
||||
@@ -169,8 +166,7 @@ function show_ldap_content($result, $level, $count, $var, $hide = 0, $subcount =
|
||||
if (strtolower($key) == 'userpassword') $hide = 1;
|
||||
}
|
||||
show_ldap_content($val, $level + 1, $count, $var, $hide, $val["count"]);
|
||||
}
|
||||
elseif ($subcount)
|
||||
} elseif ($subcount)
|
||||
{
|
||||
$subcount--;
|
||||
$newstring = dol_htmlentitiesbr($val);
|
||||
|
||||
Reference in New Issue
Block a user