Changeset 5934 for trunk/expressoAdmin1_2
- Timestamp:
- 04/12/12 15:18:08 (12 years ago)
- Location:
- trunk/expressoAdmin1_2/inc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.functions.inc.php
r5593 r5934 729 729 730 730 /* Retira todos os caracteres que nao sejam 0-9 */ 731 $cpf = ereg_replace("[^0-9]", "", $cpf);731 $cpf = preg_replace('/[^0-9]/', '', $cpf); 732 732 733 733 /*Retorna falso se houver letras no cpf */ -
trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php
r5593 r5934 818 818 { 819 819 //retira caracteres que não são números. 820 $cpf = ereg_replace("[^0-9]", "", $cpf);820 $cpf = preg_replace('/[^0-9]/', '', $cpf); 821 821 822 822 $local_ldap_connection = ldap_connect($GLOBALS['phpgw_info']['server']['ldap_host']); -
trunk/expressoAdmin1_2/inc/class.login_algorithm_example.inc.php
r594 r5934 92 92 //Retira acentos e caracteres especiais, e substitui espaço em branco pelo caracter #. 93 93 private function formata_frase($frase) { 94 $frase = ereg_replace("[^a-zA-Z0-9#.]", "",94 $frase = preg_replace('/[^a-zA-Z0-9#.]/', '', 95 95 strtr($frase, "áàãâéêíóôõúüçÁÀÃÂÉÊÍÓÔÕÚÜÇ ", 96 96 "aaaaeeiooouucAAAAEEIOOOUUC#"));
Note: See TracChangeset
for help on using the changeset viewer.