Changeset 4906 for branches/2.3/expressoMail1_2/inc
- Timestamp:
- 08/05/11 14:33:32 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/expressoMail1_2/inc/class.ldap_functions.inc.php
r3909 r4906 84 84 $functions = new functions; 85 85 86 // $search_for = utf8_encode($params['search_for']); 87 //Testa se a busca foi realizada com aspas 86 88 $search_for = utf8_encode($params['search_for']); 89 $search_len = (strlen($search_for)) - 1; 90 $quote_status=false; 91 92 if((($search_for{0}) == "\"") && (($search_for{$search_len}) == "\"")){ 93 $search_for{0} = " "; 94 $search_for{$search_len} = " "; 95 $quote_status=true; 96 } 97 98 99 87 100 $field = $params['field']; 88 101 $ID = $params['ID']; … … 133 146 else 134 147 { 135 $filter="(& (phpgwAccountType=u)(cn=*$search_for*) (!(phpgwaccountvisible=-1)) )"; 148 if($quote_status){ 149 $filter="(& (phpgwAccountType=u) (|(cn=* $search_for *)(cn=$search_for *)(cn=* $search_for)) (!(phpgwaccountvisible=-1)) )"; 150 } 151 else{ 152 $filter="(& (phpgwAccountType=u)(cn=*$search_for*) (!(phpgwaccountvisible=-1)) )"; 153 } 154 // $filter="(& (phpgwAccountType=u)(cn=*$search_for*) (!(phpgwaccountvisible=-1)) )"; 136 155 if($extendedinfo) 137 156 $justthese = array("cn", "mail", "telephoneNumber", "mobile", "phpgwAccountVisible","jpegPhoto", "uid", "employeeNumber", "ou");
Note: See TracChangeset
for help on using the changeset viewer.