[PHP] 纯文本查看 复制代码<?php
error_reporting(0);
include "./inc/aik.config.php";
if (!$_GET["bt"]) {
$tiao = $aik["pcdomain"];
?>
<?php
}
?>
《<?php echo $_GET["bt"];?>》-搜索结果-<?php echo $aik["title"];?>》搜索结果">
-《<?php echo $_GET["bt"];?>》搜索结果">
background: #FFEA97;
border: 1px solid #E1B400;
color: #3A87AD;
border-radius: 5px;
padding:5px 0px;
}
<?php
include "header.php";
?>
<?php
$sourl = "https://www.btdx8.com/?s=" . $_GET["bt"];
$info = file_get_contents($sourl);
$vname = "##";
$vimg = "#
#";$array = array();
preg_match_all($vname, $info, $namearr);
preg_match_all($vimg, $info, $imgarr);
preg_match_all($fname, $info, $fnamearr);
$zname = $namearr[2];
$fname = $namearr[1];
?>
相关资源BT下载链接
<?php
foreach ($fname as $key => $video) {
$url = "https://www.btdx8.com/" . $fname[$key] . ".html";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, "Dalvik/1.6.0 (Linux; U; Android 4.1.4; DROID RAZR HD Build/9.8.1Q-62_VQW_MR-2)");
curl_setopt($ch, CURLOPT_REFERER, "-");
$response = curl_exec($ch);
curl_close($ch);
if ($x = strpos($response, "
$response = substr($response, $x);
}
if ($x = strpos($response, "
$response = substr($response, 0, $x);
}
$response = str_replace("
", "", $response);
$response = str_replace("
", "", $response);$response = str_replace("rel=\"external nofollow\" >", "rel=\"external nofollow\" >点击下载:", $response);
$response = str_replace("rel=\"noopener\" target=\"_blank\">", "rel=\"noopener\" target=\"_blank\">点击下载:", $response);
?>
片名:<?php echo $zname[$key];?> <?php echo $response;?><?php
}
?>
<?php
include "footer.php";