@@ 371-390 (lines=20) @@ | ||
368 | Output: $this->results an array of the links from the post |
|
369 | \*======================================================================*/ |
|
370 | ||
371 | function submitlinks($URI, $formvars = "", $formfiles = "") |
|
372 | { |
|
373 | if ($this->submit($URI, $formvars, $formfiles) !== false) { |
|
374 | if ($this->lastredirectaddr) |
|
375 | $URI = $this->lastredirectaddr; |
|
376 | if (is_array($this->results)) { |
|
377 | for ($x = 0; $x < count($this->results); $x++) { |
|
378 | $this->results[$x] = $this->_striplinks($this->results[$x]); |
|
379 | if ($this->expandlinks) |
|
380 | $this->results[$x] = $this->_expandlinks($this->results[$x], $URI); |
|
381 | } |
|
382 | } else { |
|
383 | $this->results = $this->_striplinks($this->results); |
|
384 | if ($this->expandlinks) |
|
385 | $this->results = $this->_expandlinks($this->results, $URI); |
|
386 | } |
|
387 | return $this; |
|
388 | } else |
|
389 | return false; |
|
390 | } |
|
391 | ||
392 | /*======================================================================*\ |
|
393 | Function: submittext |
|
@@ 399-418 (lines=20) @@ | ||
396 | Output: $this->results the text from the web page |
|
397 | \*======================================================================*/ |
|
398 | ||
399 | function submittext($URI, $formvars = "", $formfiles = "") |
|
400 | { |
|
401 | if ($this->submit($URI, $formvars, $formfiles) !== false) { |
|
402 | if ($this->lastredirectaddr) |
|
403 | $URI = $this->lastredirectaddr; |
|
404 | if (is_array($this->results)) { |
|
405 | for ($x = 0; $x < count($this->results); $x++) { |
|
406 | $this->results[$x] = $this->_striptext($this->results[$x]); |
|
407 | if ($this->expandlinks) |
|
408 | $this->results[$x] = $this->_expandlinks($this->results[$x], $URI); |
|
409 | } |
|
410 | } else { |
|
411 | $this->results = $this->_striptext($this->results); |
|
412 | if ($this->expandlinks) |
|
413 | $this->results = $this->_expandlinks($this->results, $URI); |
|
414 | } |
|
415 | return $this; |
|
416 | } else |
|
417 | return false; |
|
418 | } |
|
419 | ||
420 | ||
421 | /*======================================================================*\ |