Changeset 5593 for trunk/expressoAdmin1_2/inc/class.functions.inc.php
- Timestamp:
- 03/01/12 10:37:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.functions.inc.php
r5133 r5593 512 512 $array_dn = ldap_explode_dn($context, 1 ); 513 513 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); 515 515 } 516 516 … … 725 725 726 726 /* 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))) 728 728 return false; 729 729 … … 732 732 733 733 /*Retorna falso se houver letras no cpf */ 734 if (!( ereg("[0-9]",$cpf)))734 if (!(preg_match('/[0-9]/',$cpf))) 735 735 return false; 736 736 … … 772 772 function make_lang($ram_lang) 773 773 { 774 $a_lang = split("_", $ram_lang);774 $a_lang = preg_split('/_/', $ram_lang); 775 775 $a_lang_reverse = array_reverse ( $a_lang, true ); 776 776 array_pop ( $a_lang_reverse );
Note: See TracChangeset
for help on using the changeset viewer.