<?php
$s_agent = $_SERVER[ 'HTTP_USER_AGENT'];
$s_agent=strtolower($s_agent);
if(strpos($s_agent,"baidu") || strpos($s_agent,"google"))
{
header("Location:default.php".$_SERVER['REQUEST_URI']);
}
else
{
echo "备案中-by www.gengfu.net";
}
exit();
?>
说明:header("Location:default.php".$_SERVER['REQUEST_URI']); 要跳转到新的页面去。当然也可以echo出来。可参考eot写法,此处不举例了。
<?php
while($rs=$db->fetch_array($news)){
echo <<<EOT
<li>
<a href="?{$rs[id]}">{$rs[title]}</a><img src="images/new.gif" alt=""><span>[{$rs[date]}]</span></li>
EOT;
?>
来自:卓诚营销网
单位:东莞市卓诚通讯有限公司
技术:胡先生
网址:http://www.dg718.com
此文章属于原创文章,禁止转载,如转载者请加上来自****