原理就和代刷,防洪差不多,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;} ?>
版权属于:微米之家
本文链接:https://52vmi.cn/index.php/Design/80.html
转载时请注明出处及本声明
342认为全球付qf