Changeset 5773
- Timestamp:
- 03/21/12 14:00:25 (12 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/inc/class.uiconfig.inc.php
r5328 r5773 118 118 { 119 119 /* don't erase passwords, since we also don't print them */ 120 if(! ereg('passwd',$key) && !ereg('password',$key) && !ereg('root_pw',$key) && !ereg('pw',$key))120 if(!preg_match('/passwd/',$key) && !preg_match('/password/',$key) && !preg_match('/root_pw/',$key) && !preg_match('/pw/',$key)) 121 121 { 122 122 unset($c->config_data[$key]); … … 339 339 $newval = str_replace(' ','_',$newval); 340 340 /* Don't show passwords in the form */ 341 if( ereg('passwd',$value) || ereg('password',$value) || ereg('root_pw',$value))341 if(preg_match('/passwd/',$value) || preg_match('/password/',$value) || preg_match('/root_pw/',$value)) 342 342 { 343 343 $t->set_var($value,''); -
trunk/expressoAdmin1_2/inc/class.user.inc.php
r5693 r5773 175 175 { 176 176 //retira caracteres que não são números. 177 $params['corporative_information_cpf'] = ereg_replace("[^0-9]", "", $params['corporative_information_cpf']);177 $params['corporative_information_cpf'] = preg_replace('/[^0-9]/', '', $params['corporative_information_cpf']); 178 178 //description 179 179 $params['corporative_information_description'] = utf8_encode($params['corporative_information_description']); … … 289 289 290 290 //retira caracteres que não são números. 291 $new_values['corporative_information_cpf'] = ereg_replace("[^0-9]", "", $new_values['corporative_information_cpf']);291 $new_values['corporative_information_cpf'] = preg_replace('/[^0-9]/', '', $new_values['corporative_information_cpf']); 292 292 293 293 $diff = array_diff($new_values, $old_values); -
trunk/expressoMail1_2/inc/class.exporteml.inc.php
r5316 r5773 71 71 $subject = strtr($subject,$from,$to); 72 72 73 $subject = eregi_replace("[^a-zA-Z0-9_]", "_", $subject);73 $subject = preg_replace('/[^a-zA-Z0-9_]/i', '_', $subject); 74 74 $file = $subject."_".$id.".eml"; 75 75 } else{ … … 82 82 $subject = strtr($subject,$from,$to); 83 83 84 $subject = eregi_replace("[^a-zA-Z0-9_]", "_", $subject);84 $subject = preg_replace('/[^a-zA-Z0-9_]/i', '_', $subject); 85 85 86 86 // é necessário que a sessão faça parte do nome do arquivo para que o mesmo não venha vazio o.O -
trunk/expressoMail1_2/inc/class.imapfp.inc.php
r5362 r5773 105 105 return false; 106 106 } 107 $response_inbox_array = split("\r\n", $response_inbox);107 $response_inbox_array = preg_split('/\r\n/', $response_inbox); 108 108 array_pop($response_inbox_array); 109 109 array_shift($response_inbox_array); … … 126 126 } 127 127 128 $response_sub_array = split("\r\n", $response_sub);128 $response_sub_array = preg_split('/\r\n/', $response_sub); 129 129 array_pop($response_sub_array); 130 130 array_shift($response_sub_array); -
trunk/phpgwapi/inc/class.auth_ldap.inc.php
r5141 r5773 31 31 function authenticate($username, $passwd) 32 32 { 33 if ( ereg('[()|&=*,<>!~]',$username))33 if (preg_match('/[()|&=*,<>!~]/',$username)) 34 34 { 35 35 return False; -
trunk/phpgwapi/inc/class.sector_search_ldap.inc.php
r3530 r5773 190 190 // Cria a primeira entrada na combo 191 191 $first_sector_ufn = ldap_dn2ufn($context); 192 $first_sector_string = split(",", $first_sector_ufn);192 $first_sector_string = preg_split('/,/', $first_sector_ufn); 193 193 194 194 if ($context == $selected) -
trunk/phpgwapi/inc/class.sessions_php4.inc.php
r5281 r5773 71 71 $GLOBALS['phpgw_session']['session_install_id'] = $GLOBALS['phpgw_info']['server']['install_id']; 72 72 73 session_register('phpgw_session');74 73 $_SESSION['phpgw_session'] = $GLOBALS['phpgw_session']; 75 74 } … … 143 142 $GLOBALS['phpgw_session']['phpgw_app_sessions']['phpgwapi']['phpgw_info_cache'] = ''; 144 143 145 session_register('phpgw_session');146 144 $_SESSION['phpgw_session'] = $GLOBALS['phpgw_session']; 147 145 } -
trunk/phpgwapi/inc/class.setup_detection.inc.php
r2 r5773 21 21 while($entry=$d->read()) 22 22 { 23 if($entry != ".." && ! ereg('setup',$entry) && is_dir(PHPGW_SERVER_ROOT . '/' . $entry))23 if($entry != ".." && !preg_match('/setup/',$entry) && is_dir(PHPGW_SERVER_ROOT . '/' . $entry)) 24 24 { 25 25 $f = PHPGW_SERVER_ROOT . '/' . $entry . '/setup/setup.inc.php'; … … 317 317 $config_table = $ver[0] > 0 || (int)$ver[2] > 10 ? 'phpgw_config' : 'config'; 318 318 319 if( ereg("([0-9]+)(pre)([0-9]+)",$ver[2],$regs))319 if(preg_match('/([0-9]+)(pre)([0-9]+)/',$ver[2],$regs)) 320 320 { 321 321 if(($regs[1] == '10') && ($regs[3] >= '6')) … … 351 351 } 352 352 if($GLOBALS['phpgw_setup']->alessthanb($GLOBALS['setup_info']['phpgwapi']['currentver'], '0.9.14.501') || 353 ereg('0\.9\.15\.00[01]{1,1}',$GLOBALS['setup_info']['phpgwapi']['currentver']))353 preg_match('/0\.9\.15\.00[01]{1,1}/',$GLOBALS['setup_info']['phpgwapi']['currentver'])) 354 354 { 355 355 $langtbl = 'lang'; -
trunk/prototype/api/controller.php
r5715 r5773 636 636 { 637 637 if( self::isConcept( $URI['concept'], $linkName ) ) 638 $data[$linkName] = self::put( array( 'concept' => $linkTarget ), $data[$linkName], &$txIds );638 $data[$linkName] = self::put( array( 'concept' => $linkTarget ), $data[$linkName], $txIds ); 639 639 else 640 640 { … … 668 668 $value[ self::links( $URI['concept'], $linkNames[ $linkTarget ] ) ] = $URI['id']; 669 669 670 self::put( array( 'concept' => $linkTarget ), $value, &$txIds );670 self::put( array( 'concept' => $linkTarget ), $value, $txIds ); 671 671 } 672 672 } -
trunk/prototype/modules/calendar/interceptors/DBMapping.php
r5752 r5773 122 122 123 123 $params = array_merge( $params, $occ ); 124 $params = self::deepnessFindEvent( &$uri , &$params , &$criteria , $original);124 $params = self::deepnessFindEvent( $uri , $params , $criteria , $original); 125 125 126 126 return false; -
trunk/setup/config.php
r328 r5773 65 65 66 66 /* Following to ensure windows file paths are saved correctly */ 67 set_magic_quotes_runtime(0);67 magic_quotes_runtime(0); 68 68 69 69 $GLOBALS['phpgw_setup']->loaddb(); … … 112 112 /* echo '<br>Updating: ' . $setting . '=' . $value; */ 113 113 /* Don't erase passwords, since we also do not print them below */ 114 if($value || (! ereg('passwd',$setting) && !ereg('password',$setting) && !ereg('root_pw',$setting)))114 if($value || (!preg_match('/passwd/',$setting) && !preg_match('/password/',$setting) && !preg_match('/root_pw/',$setting))) 115 115 { 116 116 @$GLOBALS['phpgw_setup']->db->query("DELETE FROM $configtbl WHERE config_name='" . $setting . "'"); -
trunk/setup/inc/functions.inc.php
r2 r5773 81 81 while($line = fgets($f,200)) 82 82 { 83 list($x,$y) = split("\t",$line);83 list($x,$y) = preg_split('/\t/',$line); 84 84 $languages[$x]['lang'] = trim($x); 85 85 $languages[$x]['descr'] = trim($y);
Note: See TracChangeset
for help on using the changeset viewer.