HUOHUO 发表于 2020-10-13 09:38

授权商查询是否授权代码


在本地加密查询然后采集过来
{我这个是彩虹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."没有授权";
}


                            } ?>

chelsea0402 发表于 2020-10-13 09:38

感谢楼主分享

狗吧拉轰 发表于 2020-10-13 09:44

好的,非常感谢

akumagod 发表于 2020-10-13 10:37

谢谢大牛

Sunxuebing 发表于 2020-10-13 10:42

6666666666

只为当今 发表于 2020-10-13 11:00

谢谢大佬

2734464366 发表于 2020-10-13 11:45

谢谢分享
页: [1]
查看完整版本: 授权商查询是否授权代码