PHP头条
热点:

php.net新闻拦截!


//请自己修改下面变量.
$newsnum=7;
$space=20;
$width=400;
$headclass="class5";
$lowerclass="class6";
//变量设置结束.

print "";

$opened=$QUERY_STRING;
if ($opened=="") { $opened="-1"; }

print "";

$file=file('http://www.php.net');

$where="";
$a=0;
while ($a $file[$a]=chop ($file[$a]);
if ($file[$a]==""https://www.php1.cn/detail/) {
$where=$a;
break 1;
}
$a ;
}

$file=file('http://www.php.net');
$a=$where 1;
$b=0;
while ($b<$newsnumhttps://www.php1.cn/detail/) {
if (substr($file[$a],0,4)=="

" & substr($file[$a],-6,5)=="

" | substr($file[$a],0,4)=="

" & substr($file[$a],-7,5)=="

"https://www.php1.cn/detail/) {
$from=$to;
$to=$a;
}

if ($to==$a & $from!=""https://www.php1.cn/detail/) {
$c=$from;
if ($b==$openedhttps://www.php1.cn/detail/) {
while ($c<$tohttps://www.php1.cn/detail/) {
if (substr($file[$c],0,9)==" }
$file[$c]=eregi_replace("src="","src="http://www.php.net/",$file[$c]);
$file[$c]=eregi_replace("href="","href="http://www.php.net/",$file[$c]);
$file[$c]=eregi_replace("

","

www.php.net
",$file[$c]);
$file[$c]=eregi_replace("","
",$file[$c]);
print $file[$c];
$c ;
}
} else {
if (substr($file[$c],0,9)==" }
$file[$c]=eregi_replace("src="","src="http://www.php.net/",$file[$c]);
$file[$c]=eregi_replace("href="","href="http://www.php.net/",$file[$c]);
$file[$c]=eregi_replace("

","

",$file[$c]);
$file[$c]=eregi_replace("","
",$file[$c]);
print $file[$c];
}
$b ;
}
$a ;
}
print "
";
print "";
?>

【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】

www.phpzy.comtrue/phpyy/11517.htmlTechArticlephp.net新闻拦截! //请自己修改下面变量. $newsnum=7; $space=20; $width=400; $headclass="class5"; $lowerclass="class6"; //变量设置结束. print " "; $opened=$QUERY_STRING; if ($opened=="") { $opened="-1"; } print " www.php.n...

相关文章

相关频道:

PHP之友评论

今天推荐