Ignore:
Timestamp:
03/01/12 10:37:23 (12 years ago)
Author:
wmerlotto
Message:

Ticket #2398 - Compatibilizacao com PHP-5.3 no modulo ExpressoAdmin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.functions.inc.php

    r5133 r5593  
    512512                                $array_dn = ldap_explode_dn($context, 1 ); 
    513513                                foreach($array_dn as $key=>$value){ 
    514                                         $array_dn[$key]=preg_replace("/\\\([0-9A-Fa-f]{2})/e", "''.chr(hexdec('\\1')).''",$value); 
     514                                        $array_dn[$key]=preg_replace('/\\\([0-9A-Fa-f]{2})/e', "''.chr(hexdec('\\1')).''",$value); 
    515515                                }        
    516516 
     
    725725 
    726726                        /* formato do CPF */ 
    727                         if (!(ereg("^[0-9]{3}[.][0-9]{3}[.][0-9]{3}[-][0-9]{2}$",$cpf))) 
     727                        if (!(preg_match('/^[0-9]{3}[.][0-9]{3}[.][0-9]{3}[-][0-9]{2}$/',$cpf))) 
    728728                                return false; 
    729729 
     
    732732 
    733733                        /*Retorna falso se houver letras no cpf */ 
    734                         if (!(ereg("[0-9]",$cpf))) 
     734                        if (!(preg_match('/[0-9]/',$cpf))) 
    735735                        return false; 
    736736 
     
    772772                function make_lang($ram_lang) 
    773773                { 
    774                         $a_lang = split("_", $ram_lang); 
     774                        $a_lang = preg_split('/_/', $ram_lang); 
    775775                        $a_lang_reverse  = array_reverse ( $a_lang, true ); 
    776776                        array_pop ( $a_lang_reverse ); 
Note: See TracChangeset for help on using the changeset viewer.