| @@ 4579-4582 (lines=4) @@ | ||
| 4576 | foreach ($this->scandirCE($path) as $p) { |
|
| 4577 | elFinder::extendTimeLimit($this->options['searchTimeout'] + 30); |
|
| 4578 | ||
| 4579 | if ($timeout && ($this->error || $timeout < time())) { |
|
| 4580 | ! $this->error && $this->setError(elFinder::ERROR_SEARCH_TIMEOUT, $this->path($this->encode($path))); |
|
| 4581 | break; |
|
| 4582 | } |
|
| 4583 | ||
| 4584 | $stat = $this->stat($p); |
|
| 4585 | ||
| @@ 1279-1282 (lines=4) @@ | ||
| 1276 | RecursiveIteratorIterator::CATCH_GET_CHILD |
|
| 1277 | ); |
|
| 1278 | foreach ($iterator as $key => $node) { |
|
| 1279 | if ($timeout && ($this->error || $timeout < time())) { |
|
| 1280 | ! $this->error && $this->setError(elFinder::ERROR_SEARCH_TIMEOUT, $this->path($this->encode($node->getPath))); |
|
| 1281 | break; |
|
| 1282 | } |
|
| 1283 | if ($node->isDir()) { |
|
| 1284 | if ($this->stripos($node->getFilename(), $q) !== false) { |
|
| 1285 | $match[] = $key; |
|
| @@ 1296-1299 (lines=4) @@ | ||
| 1293 | ||
| 1294 | if ($match) { |
|
| 1295 | foreach ($match as $p) { |
|
| 1296 | if ($timeout && ($this->error || $timeout < time())) { |
|
| 1297 | ! $this->error && $this->setError(elFinder::ERROR_SEARCH_TIMEOUT, $this->path($this->encode(dirname($p)))); |
|
| 1298 | break; |
|
| 1299 | } |
|
| 1300 | ||
| 1301 | $stat = $this->stat($p); |
|
| 1302 | ||