Changeset 5773 for trunk/phpgwapi/inc/class.setup_detection.inc.php
- Timestamp:
- 03/21/12 14:00:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.