add new rule

This commit is contained in:
Frédéric FRANCE
2020-05-21 15:05:19 +02:00
parent b58060f899
commit b41ac00b98
961 changed files with 9487 additions and 19110 deletions

View File

@@ -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);