| Code: |
if (($contents=file_get_contents($rss)) <> False) {
|
| Code: |
$parsedf = parse_url($rss);
$con = @fsockopen($parsedf['host'], 80, $errno, $errstr, 30);
if ($con) {
if ($parsedf['query'] !== '') {
$parsedf['query'] = "?" . $parsedf['query'];
} else {
$parsedf['query'] = '';
}
fputs($con, "GET " . $parsedf['path'] . $parsedf['query'] . " HTTP/1.0\r\n");
fputs($con, "HOST: " . $parsedf['host'] . "\r\n\r\n");
$contents = "";
while(!feof($con)) {
$contents .= trim(fgets($con));
}
fputs($con,"Connection: close\r\n\r\n");
fclose($con);
//if (($contents=file_get_contents($rss)) <> false) { |
| Code: |
//if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
|
| Code: |
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html> |