|
@@ 561-572 (lines=12) @@
|
| 558 |
|
} |
| 559 |
|
|
| 560 |
|
// have we hit our frame depth and is there frame src to fetch? |
| 561 |
|
if(($this->_framedepth < $this->maxframes) && preg_match_all("'<frame\s+.*src[\s]*=[\'\"]?([^\'\"\>]+)'i",$results,$match)) |
| 562 |
|
{ |
| 563 |
|
$this->results[] = $results; |
| 564 |
|
for($x=0; $x<count($match[1]); $x++) |
| 565 |
|
$this->_frameurls[] = $this->_expandlinks($match[1][$x],$URI_PARTS["scheme"]."://".$this->host); |
| 566 |
|
} |
| 567 |
|
// have we already fetched framed content? |
| 568 |
|
elseif(is_array($this->results)) |
| 569 |
|
$this->results[] = $results; |
| 570 |
|
// no framed content |
| 571 |
|
else |
| 572 |
|
$this->results = $results; |
| 573 |
|
|
| 574 |
|
return true; |
| 575 |
|
} |
|
@@ 712-723 (lines=12) @@
|
| 709 |
|
} |
| 710 |
|
|
| 711 |
|
// have we hit our frame depth and is there frame src to fetch? |
| 712 |
|
if(($this->_framedepth < $this->maxframes) && preg_match_all("'<frame\s+.*src[\s]*=[\'\"]?([^\'\"\>]+)'i",$results,$match)) |
| 713 |
|
{ |
| 714 |
|
$this->results[] = $results; |
| 715 |
|
for($x=0; $x<count($match[1]); $x++) |
| 716 |
|
$this->_frameurls[] = $this->_expandlinks($match[1][$x],$URI_PARTS["scheme"]."://".$this->host); |
| 717 |
|
} |
| 718 |
|
// have we already fetched framed content? |
| 719 |
|
elseif(is_array($this->results)) |
| 720 |
|
$this->results[] = $results; |
| 721 |
|
// no framed content |
| 722 |
|
else |
| 723 |
|
$this->results = $results; |
| 724 |
|
|
| 725 |
|
unlink("/tmp/$headerfile"); |
| 726 |
|
|