Changeset 5773 for trunk/phpgwapi
- Timestamp:
- 03/21/12 14:00:25 (12 years ago)
- Location:
- trunk/phpgwapi/inc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
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';
Note: See TracChangeset
for help on using the changeset viewer.