Changeset 5934 for trunk/reports/inc/class.uireports_logon.inc.php
- Timestamp:
- 04/12/12 15:18:08 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/reports/inc/class.uireports_logon.inc.php
r5291 r5934 67 67 68 68 $grouplist = trim($_POST[setor]); 69 $grouplist = trim( ereg_replace("-","",$grouplist));69 $grouplist = trim(preg_replace('/-/','',$grouplist)); 70 70 71 71 $setordn = trim($_POST[setordn]); … … 286 286 // Save query 287 287 $varorganizacao = explode(",",$contextsdn); 288 $varorganizacao_nome = trim(strtoupper( ereg_replace("ou=","",$varorganizacao[0])));289 $varorganizacao_nome = trim(strtoupper( ereg_replace("DC=","",$varorganizacao_nome)));288 $varorganizacao_nome = trim(strtoupper(preg_replace('/ou=/','',$varorganizacao[0]))); 289 $varorganizacao_nome = trim(strtoupper(preg_replace('/DC=/','',$varorganizacao_nome))); 290 290 $user_logon = $GLOBALS['phpgw_info']['user'][account_lid]; 291 291 … … 329 329 if ( trim(strtoupper($varorganizacao_nome)) != trim(strtoupper($sector))) 330 330 { 331 $sectorok = trim(strtoupper( ereg_replace("dc=","",$sector)));332 $sectorok = trim(strtoupper( ereg_replace("dc=","",$sectorok)));331 $sectorok = trim(strtoupper(preg_replace('/dc=/','',$sector))); 332 $sectorok = trim(strtoupper(preg_replace('/dc=/','',$sectorok))); 333 333 $sector_options .= "<option value='" . $sectordn . "'>". $sectorok . "</option>"; 334 334 } … … 403 403 404 404 $grouplist = trim($_POST[setor]); 405 $grouplist = trim( ereg_replace("-","",$grouplist));405 $grouplist = trim(preg_replace('/-/','',$grouplist)); 406 406 $organizacao = trim($_POST[organizacao]); 407 407 $setordn = trim($_POST[setordn]);
Note: See TracChangeset
for help on using the changeset viewer.