授权商查询是否授权代码
在本地加密查询然后采集过来
{我这个是彩虹ds查询的,可以根据自己的改下,类似的授权查询网站的授权商也可以用}
<form action="/" method="post" >
<input type="text" name="ym" placeholder="">
<button type="submit" class="site-btn">查询</button>
</form>
</div>
<p style="text-align: center;">请勿输入http</p>
<?php if (isset($_POST['ym'])) {
$cany = $_POST['ym'];
$cc=base64_encode($cany);
//header("Location:https://ds.cccyun.cc/?u=$cc");
$url="https://ds.cccyun.cc/?u='.$cc.'";
$con=file_get_contents("compress.zlib://".$url);
$preg='#<img src="(.*)">#isU';
preg_match_all($preg,$con,$res);
//var_dump($res);exit;
//for循环遍历数组
for($i = 1; $i < count($res); $i++) {
for($j = 0; $j < count($res[$i]); $j++) {
$imgjg='<img src="https://ds.cccyun.cc/'.$res[$i][$j].'">';
}
}
if ($imgjg=='<img src="https://ds.cccyun.cc/assets/ico_success.png">') {
echo $imgjg."正版授权";
} else {
echo $imgjg."没有授权";
}
} ?>
感谢楼主分享 好的,非常感谢 谢谢大牛 6666666666 谢谢大佬 谢谢分享
页:
[1]