Ignore:
Timestamp:
04/12/12 15:18:08 (12 years ago)
Author:
marcosw
Message:

Ticket #2398 - Compatibilizacao com PHP-5.3 em alguns módulos do expresso

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/reports/inc/class.uireports_logon.inc.php

    r5291 r5934  
    6767 
    6868                        $grouplist = trim($_POST[setor]); 
    69                         $grouplist = trim(ereg_replace("-","",$grouplist)); 
     69                        $grouplist = trim(preg_replace('/-/','',$grouplist)); 
    7070 
    7171                        $setordn = trim($_POST[setordn]); 
     
    286286                        // Save query 
    287287                        $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))); 
    290290                        $user_logon = $GLOBALS['phpgw_info']['user'][account_lid]; 
    291291 
     
    329329                                                if ( trim(strtoupper($varorganizacao_nome)) !=  trim(strtoupper($sector))) 
    330330                                                { 
    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))); 
    333333                                                        $sector_options .= "<option value='" . $sectordn . "'>". $sectorok . "</option>"; 
    334334                                                } 
     
    403403 
    404404                        $grouplist = trim($_POST[setor]); 
    405                         $grouplist = trim(ereg_replace("-","",$grouplist)); 
     405                        $grouplist = trim(preg_replace('/-/','',$grouplist)); 
    406406                        $organizacao = trim($_POST[organizacao]); 
    407407                        $setordn = trim($_POST[setordn]); 
Note: See TracChangeset for help on using the changeset viewer.