限制电脑访问

 $wr= $_SERVER["HTTP_USER_AGENT"];
if(substr($wr,13,1)=="W"){
echo "<h2 align=center>请用手机访问</h2>";
exit();
}

评论

刷新

友情链接