|
本帖最后由 flyqie 于 2020-3-29 22:52 编辑
无意间看到了https://www.hostloc.com/thread-665725-1-1.html这个帖子,闲的没事解密了一下(zym混淆),以下是授权码生成代码 ~
仅供交流使用,正式使用请购买正版
单域名:
- <?php
- //仅供交流使用,正式使用请购买正版!!!
- //这里填写你的网站域名(不加协议)
- $Domain = 'www.baidu.com';
- echo 'Your License Code: '.$Domain.'|'.md5($Domain.'301!@#'.$Domain.'301!@#').PHP_EOL;
复制代码
授权码验证相关代码:
- $license_site = explode("|", $license_code);
- $license_sn = $_SERVER['SERVER_NAME'];
- $license_tip = "";
- if ($license_sn == 'localhost' || $license_sn == '127.0.0.1') {
- $license_tip = '<font color="blue">(本地测试,高级VIP功能暂时可用,上线后将失效)</font>';
- } else {
- $license = $license_site[0] . '301!@#' . $license_site[0] . '301!@#';
- $license_code_md5 = md5($license);
- if (strpos('.' . $license_sn . '.', '.' . $license_site[0] . '.') > -1 && $license_site[1] == $license_code_md5) {
- $license_tip = '<font color="green">(当前域名已授权,高级VIP功能可用)</font>';
- } else {
- $license_tip = '<font color="red">(当前域名未授权,高级VIP功能失效)</font>';
- }
- }
复制代码
-----------------------------------------------------------------------------------------------------------------------------
泛域名:
- <?php
- //仅供交流使用,正式使用请购买正版!!!
- //这里填写你的网站域名(不加协议)
- $Domain = 'www.baidu.com';
- echo 'Your License Code: '.$Domain.'|'.md5($Domain.'302!@#'.$Domain.'302!@#').PHP_EOL;
复制代码
授权码验证相关代码:
- $license_site = explode("|", $license_code);
- $license_sn = $_SERVER['SERVER_NAME'];
- $license_tip = "";
- if ($license_sn == 'localhost' || $license_sn == '127.0.0.1') {
- $license_tip = '<font color="blue">(本地测试,高级VIP功能暂时可用,上线后将失效)</font>';
- } else {
- $license = $license_site[0] . '302!@#' . $license_site[0] . '302!@#';
- $license_code_md5 = md5($license);
- if (strpos('.' . $license_sn . '.', '.' . $license_site[0] . '.') > -1 && $license_site[1] == $license_code_md5) {
- $license_tip = '<font color="green">(当前域名已授权,高级VIP功能可用)</font>';
- } else {
- $license_tip = '<font color="red">(当前域名未授权,高级VIP功能失效)</font>';
- }
- }
复制代码 |
|