Revision 1451
Added by Luisehahne over 14 years ago
| search_modext.php | ||
|---|---|---|
| 362 | 362 |
return $files; |
| 363 | 363 |
foreach($files as $file) {
|
| 364 | 364 |
if($keep) {
|
| 365 |
if(eregi($str, $file)) {
|
|
| 365 |
if(preg_match("~$str~i", $file)) {
|
|
| 366 | 366 |
$c_filelist[] = $file; |
| 367 | 367 |
} |
| 368 | 368 |
} else {
|
| 369 |
if(!eregi($str, $file)) {
|
|
| 369 |
if(!preg_match("~$str~i", $file)) {
|
|
| 370 | 370 |
$c_filelist[] = $file; |
| 371 | 371 |
} |
| 372 | 372 |
} |
Also available in: Unified diff
replace eregi with pregmatch in search_modext (Tks to Thorn)