|
XOOPS
2.6.0
|
Public Member Functions | |
| _check_timeout ($fp) | |
| _connect (&$fp) | |
| _disconnect ($fp) | |
| _expandlinks ($links, $URI) | |
| _httprequest ($url, $fp, $URI, $http_method, $content_type="", $body="") | |
| _prepare_post_body ($formvars, $formfiles) | |
| _stripform ($document) | |
| _striplinks ($document) | |
| _striptext ($document) | |
| fetch ($URI) | |
| fetchform ($URI) | |
| fetchlinks ($URI) | |
| fetchtext ($URI) | |
| getResults () | |
| set_submit_multipart () | |
| set_submit_normal () | |
| setcookies () | |
| submit ($URI, $formvars="", $formfiles="") | |
| submitlinks ($URI, $formvars="", $formfiles="") | |
| submittext ($URI, $formvars="", $formfiles="") | |
Public Attributes | |
| $_fp_timeout = 30 | |
| $_framedepth = 0 | |
| $_frameurls = array() | |
| $_httpmethod = "GET" | |
| $_httpversion = "HTTP/1.0" | |
| $_isproxy = false | |
| $_maxlinelen = 4096 | |
| $_mime_boundary = "" | |
| $_redirectaddr = false | |
| $_redirectdepth = 0 | |
| $_submit_method = "POST" | |
| $_submit_type = "application/x-www-form-urlencoded" | |
| $accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*" | |
| $agent = "Snoopy v2.0.0" | |
| $cafile | |
| $capath | |
| $cookies = array() | |
| $curl_path = false | |
| $error = "" | |
| $expandlinks = true | |
| $headers = array() | |
| $host = "www.php.net" | |
| $lastredirectaddr = "" | |
| $maxframes = 0 | |
| $maxlength = 500000 | |
| $maxredirs = 5 | |
| $offsiteok = true | |
| $pass = "" | |
| $passcookies = true | |
| $port = 80 | |
| $proxy_host = "" | |
| $proxy_pass = "" | |
| $proxy_port = "" | |
| $proxy_user = "" | |
| $rawheaders = array() | |
| $read_timeout = 0 | |
| $referer = "" | |
| $response_code = "" | |
| $results = "" | |
| $scheme = 'http' | |
| $status = 0 | |
| $temp_dir = "/tmp" | |
| $timed_out = false | |
| $use_gzip = true | |
| $user = "" | |
Definition at line 29 of file snoopy.php.
| Snoopy::_check_timeout | ( | $fp | ) |
Definition at line 806 of file snoopy.php.
Referenced by _httprequest().

| Snoopy::_connect | ( | & | $fp | ) |
Definition at line 824 of file snoopy.php.
References $cafile, $capath, $host, $port, $proxy_host, $proxy_port, and exit.
Referenced by fetch(), and submit().

| Snoopy::_disconnect | ( | $fp | ) |
Definition at line 912 of file snoopy.php.
Referenced by fetch(), and submit().

| Snoopy::_expandlinks | ( | $links, | |
| $URI | |||
| ) |
Definition at line 579 of file snoopy.php.
References $search.
Referenced by _httprequest(), fetchlinks(), submit(), submitlinks(), and submittext().

| Snoopy::_httprequest | ( | $url, | |
| $fp, | |||
| $URI, | |||
| $http_method, | |||
$content_type = "", |
|||
$body = "" |
|||
| ) |
Definition at line 619 of file snoopy.php.
References $_mime_boundary, $host, $port, $results, $url, _check_timeout(), _expandlinks(), and setcookies().
Referenced by fetch(), and submit().


| Snoopy::_prepare_post_body | ( | $formvars, | |
| $formfiles | |||
| ) |
Definition at line 926 of file snoopy.php.
Referenced by submit().

| Snoopy::_stripform | ( | $document | ) |
Definition at line 491 of file snoopy.php.
Referenced by fetchform().

| Snoopy::_striplinks | ( | $document | ) |
Definition at line 459 of file snoopy.php.
Referenced by fetchlinks(), and submitlinks().

| Snoopy::_striptext | ( | $document | ) |
Definition at line 510 of file snoopy.php.
References $search, and $text.
Referenced by fetchtext(), and submittext().

| Snoopy::fetch | ( | $URI | ) |
Definition at line 120 of file snoopy.php.
References $_frameurls, $_redirectaddr, $path, _connect(), _disconnect(), _httprequest(), and exit.
Referenced by fetchform(), fetchlinks(), fetchtext(), and submit().


| Snoopy::fetchform | ( | $URI | ) |
Definition at line 327 of file snoopy.php.
References _stripform(), and fetch().

| Snoopy::fetchlinks | ( | $URI | ) |
Definition at line 302 of file snoopy.php.
References $lastredirectaddr, _expandlinks(), _striplinks(), and fetch().

| Snoopy::fetchtext | ( | $URI | ) |
Definition at line 351 of file snoopy.php.
References _striptext(), and fetch().

| Snoopy::getResults | ( | ) |
Definition at line 995 of file snoopy.php.
References $results.
| Snoopy::set_submit_multipart | ( | ) |
Definition at line 426 of file snoopy.php.
| Snoopy::set_submit_normal | ( | ) |
Definition at line 438 of file snoopy.php.
| Snoopy::setcookies | ( | ) |
Definition at line 790 of file snoopy.php.
Referenced by _httprequest().

| Snoopy::submit | ( | $URI, | |
$formvars = "", |
|||
$formfiles = "" |
|||
| ) |
Definition at line 209 of file snoopy.php.
References $_frameurls, $_redirectaddr, $path, _connect(), _disconnect(), _expandlinks(), _httprequest(), _prepare_post_body(), exit, and fetch().
Referenced by submitlinks(), and submittext().


| Snoopy::submitlinks | ( | $URI, | |
$formvars = "", |
|||
$formfiles = "" |
|||
| ) |
Definition at line 371 of file snoopy.php.
References $lastredirectaddr, _expandlinks(), _striplinks(), and submit().

| Snoopy::submittext | ( | $URI, | |
$formvars = "", |
|||
$formfiles = "" |
|||
| ) |
Definition at line 399 of file snoopy.php.
References $lastredirectaddr, _expandlinks(), _striptext(), and submit().

| Snoopy::$_fp_timeout = 30 |
Definition at line 109 of file snoopy.php.
| Snoopy::$_framedepth = 0 |
Definition at line 106 of file snoopy.php.
| Snoopy::$_frameurls = array() |
Definition at line 105 of file snoopy.php.
| Snoopy::$_httpmethod = "GET" |
Definition at line 98 of file snoopy.php.
| Snoopy::$_httpversion = "HTTP/1.0" |
Definition at line 99 of file snoopy.php.
| Snoopy::$_isproxy = false |
Definition at line 108 of file snoopy.php.
| Snoopy::$_maxlinelen = 4096 |
Definition at line 96 of file snoopy.php.
| Snoopy::$_mime_boundary = "" |
Definition at line 102 of file snoopy.php.
Referenced by _httprequest().
| Snoopy::$_redirectaddr = false |
Definition at line 103 of file snoopy.php.
| Snoopy::$_redirectdepth = 0 |
Definition at line 104 of file snoopy.php.
| Snoopy::$_submit_method = "POST" |
Definition at line 100 of file snoopy.php.
| Snoopy::$_submit_type = "application/x-www-form-urlencoded" |
Definition at line 101 of file snoopy.php.
| Snoopy::$accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*" |
Definition at line 65 of file snoopy.php.
| Snoopy::$agent = "Snoopy v2.0.0" |
Definition at line 43 of file snoopy.php.
| Snoopy::$cafile |
Definition at line 91 of file snoopy.php.
Referenced by _connect().
| Snoopy::$capath |
Definition at line 92 of file snoopy.php.
Referenced by _connect().
| Snoopy::$cookies = array() |
Definition at line 45 of file snoopy.php.
| Snoopy::$curl_path = false |
Definition at line 83 of file snoopy.php.
| Snoopy::$error = "" |
Definition at line 69 of file snoopy.php.
| Snoopy::$expandlinks = true |
Definition at line 54 of file snoopy.php.
| Snoopy::$headers = array() |
Definition at line 71 of file snoopy.php.
| Snoopy::$host = "www.php.net" |
Definition at line 36 of file snoopy.php.
Referenced by _connect(), and _httprequest().
| Snoopy::$lastredirectaddr = "" |
Definition at line 51 of file snoopy.php.
Referenced by fetchlinks(), submitlinks(), and submittext().
| Snoopy::$maxframes = 0 |
Definition at line 53 of file snoopy.php.
| Snoopy::$maxlength = 500000 |
Definition at line 72 of file snoopy.php.
| Snoopy::$maxredirs = 5 |
Definition at line 50 of file snoopy.php.
| Snoopy::$offsiteok = true |
Definition at line 52 of file snoopy.php.
| Snoopy::$pass = "" |
Definition at line 62 of file snoopy.php.
| Snoopy::$passcookies = true |
Definition at line 57 of file snoopy.php.
| Snoopy::$port = 80 |
Definition at line 37 of file snoopy.php.
Referenced by _connect(), and _httprequest().
| Snoopy::$proxy_host = "" |
Definition at line 38 of file snoopy.php.
Referenced by _connect().
| Snoopy::$proxy_pass = "" |
Definition at line 41 of file snoopy.php.
| Snoopy::$proxy_port = "" |
Definition at line 39 of file snoopy.php.
Referenced by _connect().
| Snoopy::$proxy_user = "" |
Definition at line 40 of file snoopy.php.
| Snoopy::$rawheaders = array() |
Definition at line 47 of file snoopy.php.
| Snoopy::$read_timeout = 0 |
Definition at line 73 of file snoopy.php.
| Snoopy::$referer = "" |
Definition at line 44 of file snoopy.php.
| Snoopy::$response_code = "" |
Definition at line 70 of file snoopy.php.
| Snoopy::$results = "" |
Definition at line 67 of file snoopy.php.
Referenced by _httprequest(), and getResults().
| Snoopy::$scheme = 'http' |
Definition at line 35 of file snoopy.php.
| Snoopy::$status = 0 |
Definition at line 77 of file snoopy.php.
| Snoopy::$temp_dir = "/tmp" |
Definition at line 79 of file snoopy.php.
| Snoopy::$timed_out = false |
Definition at line 76 of file snoopy.php.
| Snoopy::$use_gzip = true |
Definition at line 88 of file snoopy.php.
| Snoopy::$user = "" |
Definition at line 61 of file snoopy.php.