IWP Problem List

If you wish to submit new problems to this list, please email Loren Winters, winters@ncssm.edu


$problemUrl
\n"; } common_footer(); ?> 0 && $level > $maxLevels ) { return array(); } global $filesep; $subFiles = array(); $subDirs = array(); $dh = opendir($dir); while ( false != ($file = readdir($dh)) ) { if ( $file != '.' && $file != '..' ) { $fullFile = $dir . $filesep . $file; if ( is_dir($fullFile) ) { array_push($subDirs, $fullFile); } else { if ( ! $pattern or preg_match($pattern, $fullFile) ) { array_push($subFiles, $fullFile); } } } } closedir($dh); foreach ( $subDirs as $subDir ) { foreach ( megaRecurseFind_r($level, $subDir, $pattern, $maxLevels, $returnDirectories) as $subsubFile ) { array_push($subFiles, $subsubFile ); } } if ( $returnDirectories ) { return $subDirs; } else { return $subFiles; } } ?>