QQ打开网址自动跳转浏览器代码

原理就和代刷,防洪差不多,QQ里的网址,打开自动跳转浏览器打开!
一段代码解决!
放在全局文件的</head>前面即可!


<?php
$conf['qqjump']=1;
if(strpos($_SERVER['HTTP_USER_AGENT'], 'QQ/')!==false && $conf['qqjump']==1){$a='http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
echo '<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>请使用浏览器打开</title>
<script src="https://open.mobile.qq.com/sdk/qqapi.js?_bid=152";></script>
<script type="text/javascript"> mqq.ui.openUrl({ target: 2,url: "'.$a.'"}); </script>
</head>
<body>请使用浏览器打开</body>
</html>';exit;} ?>

Last modification:March 12th, 2019 at 04:03 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment