|
@@ 327-341 (lines=15) @@
|
| 324 |
|
Output: $this->results the resulting html form |
| 325 |
|
\*======================================================================*/ |
| 326 |
|
|
| 327 |
|
function fetchform($URI) |
| 328 |
|
{ |
| 329 |
|
|
| 330 |
|
if ($this->fetch($URI) !== false) { |
| 331 |
|
|
| 332 |
|
if (is_array($this->results)) { |
| 333 |
|
for ($x = 0; $x < count($this->results); $x++) |
| 334 |
|
$this->results[$x] = $this->_stripform($this->results[$x]); |
| 335 |
|
} else |
| 336 |
|
$this->results = $this->_stripform($this->results); |
| 337 |
|
|
| 338 |
|
return $this; |
| 339 |
|
} else |
| 340 |
|
return false; |
| 341 |
|
} |
| 342 |
|
|
| 343 |
|
|
| 344 |
|
/*======================================================================*\ |
|
@@ 351-362 (lines=12) @@
|
| 348 |
|
Output: $this->results the text from the web page |
| 349 |
|
\*======================================================================*/ |
| 350 |
|
|
| 351 |
|
function fetchtext($URI) |
| 352 |
|
{ |
| 353 |
|
if ($this->fetch($URI) !== false) { |
| 354 |
|
if (is_array($this->results)) { |
| 355 |
|
for ($x = 0; $x < count($this->results); $x++) |
| 356 |
|
$this->results[$x] = $this->_striptext($this->results[$x]); |
| 357 |
|
} else |
| 358 |
|
$this->results = $this->_striptext($this->results); |
| 359 |
|
return $this; |
| 360 |
|
} else |
| 361 |
|
return false; |
| 362 |
|
} |
| 363 |
|
|
| 364 |
|
/*======================================================================*\ |
| 365 |
|
Function: submitlinks |