[Asm] 纯文本查看 复制代码
<dl class="b-listfilter-item js-listfilter" style="padding-left: 0px;height:auto;padding-right:0px;">
<dd class="item g-clear js-listfilter-content" style="margin: 0;">
<?php
$url = $aik["zhanwai"];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_VERBOSE, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
// 下面两行为不验证证书和 HOST,建议在此前判断 URL 是否是 HTTPS
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
// $ret 返回跳转信息
$ret = curl_exec($ch);
// $info 以 array 形式返回跳转信息
$info = curl_getinfo($ch);
// 跳转后的 URL 信息
$link = $info['url'];
// 记得关闭curl
curl_close($ch);
$a = $link . "/index.php/whole/index/1~~%E5%8A%A8%E4%BD%9C~~~~~0~addtime~~1";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $a);
curl_setopt($curl, CURLOPT_HEADER, 1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($curl);
curl_close($curl);
$response = strstr($response, "<div class=\"header-tag\">");
$response = strstr($response, "</ul>", true);
$response = str_replace("<li class=\"on\">", "", $response);
$response = str_replace("<div class=\"header-tag\">", "", $response);
$response = str_replace("<ul>", "", $response);
$response = str_replace("<li>", "", $response);
$response = str_replace("</li>", "", $response);
$response = str_replace("/index.php/whole/index/", "?cx=", $response);
$response = str_replace("\">", "\" target=\"_self\">", $response);
echo $response;
?>