文章最后更新时间:
演示效果文章源自墨非网-https://www.mf8.site/2350.html
文章源自墨非网-https://www.mf8.site/2350.html
将下面代码放到子比主题go.php页面,直接覆盖就好
[erphpdown]文章源自墨非网-https://www.mf8.site/2350.html
<?php /* * @Author : Qinver * @Url : zibll.com * @Date : 2020-09-29 13:18:36 * @LastEditTime: 2022-04-28 21:25:40 * @Email : 770349780@qq.com * @Project : Zibll子比主题 * @Description : 一款极其优雅的Wordpress主题 * @Read me : 感谢您使用子比主题,主题源码有详细的注释,支持二次开发。 * @Remind : 使用盗版主题会存在各种未知风险。支持正版,从我做起! */ if ( strlen($_SERVER['REQUEST_URI']) > 384 || strpos($_SERVER['REQUEST_URI'], "eval(") || strpos($_SERVER['REQUEST_URI'], "base64") ) { @header("HTTP/1.1 414 Request-URI Too Long"); @header("Status: 414 Request-URI Too Long"); @header("Connection: Close"); @exit; } //通过QUERY_STRING取得完整的传入数据,然后取得url=之后的所有值,兼容性更好 @session_start(); $t_url = !empty($_SESSION['GOLINK']) ? $_SESSION['GOLINK'] : preg_replace('/^url=(.*)$/i', '$1', $_SERVER["QUERY_STRING"]); //数据处理 if (!empty($t_url)) { //判断取值是否加密 if ($t_url == base64_encode(base64_decode($t_url))) { $t_url = base64_decode($t_url); } //防止xss $t_url = htmlspecialchars($t_url); //对取值进行网址校验和判断 preg_match('/^(http|https|thunder|qqdl|ed2k|Flashget|qbrowser):\/\//i', $t_url, $matches); $dux_title = get_bloginfo('name'); $title = $dux_title . ' - 安全中心'; if ($matches) { $url = $t_url; // $title = '页面加载中,请稍候...'; } else { preg_match('/\./i', $t_url, $matche); if ($matche) { $url = 'http://' . $t_url; // $title = '页面加载中,请稍候...'; } else { $url = 'http://' . $_SERVER['HTTP_HOST']; $title = '参数错误,正在返回首页...'; } } } else { $title = '参数缺失,正在返回首页...'; $url = 'http://' . $_SERVER['HTTP_HOST']; } $url = str_replace('&', '&', $url); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="robots" content="noindex, nofollow" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <?php echo "<link rel='apple-touch-icon-precomposed icon' href='" . _pz('iconpng') . "' type='image/x-icon'/>"; ?> <noscript> <meta http-equiv="refresh" content="1;url='<?php echo $url; ?>';"> </noscript> <script> function link_jump() { //禁止其他网站使用我们的跳转页面 var MyHOST = new RegExp("<?php echo $_SERVER['HTTP_HOST']; ?>"); if (!MyHOST.test(document.referrer)) { location.href = "//" + MyHOST; } location.href = "<?php echo $url; ?>"; } //延时10S跳转,可自行修改延时时间 setTimeout(link_jump, 10000); //延时50S关闭跳转页面,用于文件下载后不会关闭跳转页的问题 setTimeout(function() { window.opener = null; window.close(); }, 50000); </script> <link rel="stylesheet" id="_fontawesome-css" href="//cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css" media="all"> <title> <?php echo $title; ?> </title> <style> body,html{padding:0;margin:0} body{background:#f5f6f7;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif} a{cursor:default;text-decoration:none;word-wrap:break-word;word-break:break-all} .dux-go-main{display:flex;width:100%;height:100%;justify-content:center;align-items:center} .dux-go-container{position: relative;max-width:38em;height:auto;display:inline-block;background:#fff;margin:10px;padding:1.5em;border-radius:5px;box-shadow:0 0 10px rgba(116,116,116,.1)} .dux-go-url a{color:#036af4} .dux-go-content a:hover{color:#036af4} .dux-go-logo{text-align:center;width:auto;height:36px;margin-bottom:10px} .dux-go-logo img{max-width:100%;height:100%} .dux-go-msg{cursor:default;text-align:center;padding:10px 5px;font-weight:700;color:rgba(255, 0, 0, 0.85);background:rgba(255, 0, 0, 0.1);border-radius:5px} .dux-go-button-item{text-align:right;margin-bottom:10px} .dux-go-button{display:inline-block;border-radius:5px;padding:10px 15px;background:rgba(116,116,116,.1);transition:all .5s} .dux-go-button a{font-weight:700;font-size:14px;color:#333} .dux-go-button:hover{color:#000;background:rgba(116,116,116,.2)} .dux-goid-item{position:absolute;top:10px;left:10px;border-radius:4px;overflow:hidden;background:#ffd07c} .dux-goid-title{padding:0 4px;background:#ffa400} .dux-goid-text{padding-right:5px} .dux-go-container hr{border: 0;height: 0.05em;background: #eee;} .dux-danger {display:inline-block;border-radius:5px;padding:5px 8px; color: #fff; background-color: #d9534f; border-color: #d43f3a; } .dux-success {display:inline-block;border-radius:5px;padding:5px 8px; color: #fff; background-color: #5cb85c; border-color:#4cae4c } .dux-text{text-align:center;} </style> <style> .ad-container { max-width: 100%; height: auto; overflow: hidden; position: relative; margin-bottom:10px } .ad-image { width: 100%; height: auto; } @media (max-width: 768px) { .ad-image { width: 100%; height: auto; } } @media (max-width: 480px) { .ad-image { width: 100%; height: auto; } } </style> </head> <body> <div class="dux-go-main"> <div class="dux-go-container"> <div class="dux-goid-item"> <b class="dux-goid-title">GID</b> <span class="dux-goid-text">LINK<?php echo hexdec($url); ?></span> </div> <div class="dux-go-logo"><?php echo zib_get_adaptive_theme_img(_pz('logo_src'), _pz('logo_src_dark')); ?></div> <div class="dux-go-content"> <div class="dux-go-msg"> <span><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> 您即将离开<?php echo $dux_title; ?>,即将访问第三方链接</span> </div> <div class="dux-text dux-go-url"> <p>访问链接:<a onclick="location.replace('<?php echo $url; ?>')" title="<?php echo $url; ?>"><?php echo $url; ?></a></p> </div> <div class="dux-text"> <p style="font-size:14px;margin:20px 0 10px 0">请勿随意打开陌生人发来的链接,如您不确定网站安全性,请点击下方取消访问</p> <p style="font-size:12px;margin:20px 0 0 0"><?php echo $dux_title; ?>本站不对该网站内容承担任何责任,请小心填写账号、密码信息。</p> <p style="font-size:12px">QGET.TOP assumes no responsibility for the security of this site,please be caution for your confidential.</p> <hr></div> <div class="dux-go-button-item"> <div class="dux-danger"> <a onclick="location.replace('//<?php echo $_SERVER['HTTP_HOST']; ?>')">取消访问</a> </div> <div class="dux-success"> <a onclick="location.replace('<?php echo $url; ?>')">继续访问</a> </div> </div> <div class="ad-container"><a href="https://www.aliyun.com/daily-act/ecs/activity_selection?userCode=rqxbdd4j" target="_blank"><img src="https://js.itly.com.cn/ads/aly5.jpg" alt="广告也精彩" /></a></div> </div> </div> </body> </html>
[/erphpdown]文章源自墨非网-https://www.mf8.site/2350.html
暂无评论内容