@@ 470-488 (lines=19) @@ | ||
467 | Output: $this->results the resulting html form |
|
468 | \*======================================================================*/ |
|
469 | ||
470 | function fetchform($URI) |
|
471 | { |
|
472 | ||
473 | if ($this->fetch($URI)) |
|
474 | { |
|
475 | ||
476 | if(is_array($this->results)) |
|
477 | { |
|
478 | for($x=0;$x<count($this->results);$x++) |
|
479 | $this->results[$x] = $this->_stripform($this->results[$x]); |
|
480 | } |
|
481 | else |
|
482 | $this->results = $this->_stripform($this->results); |
|
483 | ||
484 | return true; |
|
485 | } |
|
486 | else |
|
487 | return false; |
|
488 | } |
|
489 | ||
490 | ||
491 | /*======================================================================*\ |
|
@@ 498-513 (lines=16) @@ | ||
495 | Output: $this->results the text from the web page |
|
496 | \*======================================================================*/ |
|
497 | ||
498 | function fetchtext($URI) |
|
499 | { |
|
500 | if($this->fetch($URI)) |
|
501 | { |
|
502 | if(is_array($this->results)) |
|
503 | { |
|
504 | for($x=0;$x<count($this->results);$x++) |
|
505 | $this->results[$x] = $this->_striptext($this->results[$x]); |
|
506 | } |
|
507 | else |
|
508 | $this->results = $this->_striptext($this->results); |
|
509 | return true; |
|
510 | } |
|
511 | else |
|
512 | return false; |
|
513 | } |
|
514 | ||
515 | /*======================================================================*\ |
|
516 | Function: submitlinks |