diff --git a/htdocs/advancedsearch.php b/htdocs/advancedsearch.php
index 82acd0b..60ba943 100644
--- a/htdocs/advancedsearch.php
+++ b/htdocs/advancedsearch.php
@@ -100,7 +100,13 @@
} else {
$value = '*' . ldap_escape($value, "", LDAP_ESCAPE_FILTER) . '*';
}
+ if (isset($_POST[$item."negates"]) and ($_POST[$item."negates"] == 'true')) {
+ $ldap_filter .= "(!";
+ }
$ldap_filter .= "($attribute=$value)";
+ if (isset($_POST[$item."negates"]) and ($_POST[$item."negates"] == 'true')) {
+ $ldap_filter .= ")";
+ }
}
}
}
diff --git a/lang/en.inc.php b/lang/en.inc.php
index b8d6ed2..3995c57 100644
--- a/lang/en.inc.php
+++ b/lang/en.inc.php
@@ -57,6 +57,7 @@
$messages['logout'] = "Logout";
$messages['noentriesfound'] = "No entries found";
$messages['notdefined'] = "Not defined";
+$messages['negates'] = "Check to negates this value";
$messages['search'] = "Search";
$messages['search_object'] = "Objects to search";
$messages['searchrequired'] = "Please enter your search";
diff --git a/lang/fr.inc.php b/lang/fr.inc.php
index 35d0c3d..5b81775 100644
--- a/lang/fr.inc.php
+++ b/lang/fr.inc.php
@@ -57,6 +57,7 @@
$messages['logout'] = "Déconnexion";
$messages['noentriesfound'] = "Aucune entrée trouvée";
$messages['notdefined'] = "Non renseigné";
+$messages['negates'] = "Cocher la case pour nier la valeur";
$messages['search'] = "Rechercher";
$messages['search_object'] = "Objets à rechercher";
$messages['searchrequired'] = "Veuillez saisir votre recherche";
diff --git a/lang/it.inc.php b/lang/it.inc.php
index 081faf4..1f7ed3c 100644
--- a/lang/it.inc.php
+++ b/lang/it.inc.php
@@ -57,6 +57,7 @@
$messages['logout'] = "Esci";
$messages['noentriesfound'] = "Nessun record trovato";
$messages['notdefined'] = "Non definito";
+$messages['negates'] = "Check to negates this value";
$messages['search'] = "Cerca";
$messages['search_object'] = "Oggetti da cercare";
$messages['searchrequired'] = "Inserisci il termine di ricerca";
diff --git a/templates/search_displayer.tpl b/templates/search_displayer.tpl
index 8bf6f67..8357c62 100644
--- a/templates/search_displayer.tpl
+++ b/templates/search_displayer.tpl
@@ -16,6 +16,8 @@
{elseif $type eq 'guid' or $type eq 'dn_link' or $type eq 'group_dn_link' or $type eq 'usergroup_dn_link' }
+
+
{elseif $type eq 'list'}
-
+
+
{elseif $type eq 'bytes'}
+
+
{else}
-
+
+
{/if}