安装环境:MySQL5.6,PHP7.0
授权代码1:
define(‘AUTH_SERVER’, ‘https://域名/auth_server.php’); define(‘AUTH_KEY’, ‘113300’); function check_auth() { $domain = str_replace(‘www.’, ”, $_SERVER[‘HTTP_HOST’]); $auth = json_decode(@file_get_contents(AUTH_SERVER.’?domain=’.urlencode($domain)), true) ?: []; return $auth[‘status’] ===’success’&& hash_equals(hash_hmac(‘sha256’, $auth[‘token’], AUTH_KEY), $auth[‘signature’]) && ($data = json_decode(base64_decode($auth[‘token’]), true)) && $data[‘domain’] === $domain && $data[‘expires’] > time();} if (!check_auth()) {http_response_code(403); exit(‘<h1> 授权验证失败 </h1><p> 请联系小年TG:xnkeji添加授权</p>’); }
授权代码2
define(‘AUTH_SERVER’, ‘https://域名/auth_server.php’);
define(‘AUTH_KEY’, ‘113300’);
function check_auth() {
$domain = str_replace(‘www.’, ”, $_SERVER[‘HTTP_HOST’]);
$auth = json_decode(@file_get_contents(AUTH_SERVER.’?domain=’.urlencode($domain)), true) ?: [];
return $auth[‘status’] ===’success’
&& hash_equals(hash_hmac(‘sha256’, $auth[‘token’], AUTH_KEY), $auth[‘signature’])
&& ($data = json_decode(base64_decode($auth[‘token’]), true))
&& $data[‘domain’] === $domain
&& $data[‘expires’] > time();
}
if (!check_auth()) {
http_response_code(403);
exit(‘<h1 style=”color: red; font-weight: bold;”>该域名未授权</h1>
<p style=”color: red; font-weight: bold;”>请联系小年TG:xnkeji添加授权</p>’);
}
授权代码3
define(‘AUTH_SERVER’, base64_decode(‘aHR0cHM6Ly9hoLmthbGl4dXRoX3NlcnZlci5waHA=’));
define(‘AUTH_KEY’, ‘113300’);
function check_auth() {
$domain = str_replace(‘www.’, ”, $_SERVER[‘HTTP_HOST’]);
$auth = json_decode(@file_get_contents(AUTH_SERVER.’?domain=’.urlencode($domain)), true) ?: [];
return $auth[‘status’] ===’success’
&& hash_equals(hash_hmac(‘sha256’, $auth[‘token’], AUTH_KEY), $auth[‘signature’])
&& ($data = json_decode(base64_decode($auth[‘token’]), true))
&& $data[‘domain’] === $domain
&& $data[‘expires’] > time();
}
if (!check_auth()) {
http_response_code(403);
exit(‘<h1 style=”color: red; font-weight: bold;”>’.base64_decode(‘6K+l5Z+f5ZCN5pyq5o6I5p2D’).'</h1>
<p style=”color: red; font-weight: bold;”>’.base64_decode(‘6K+36IGU57O75bCP5bm0VEfvvJp4bmtlamnmt7vliqDmjojmnYM=’).'</p>’);
}
![图片[1]-最新域名授权系统-小年资源网](https://i.imgs.ovh/2025/10/06/7sx9xd.png)
![图片[2]-最新域名授权系统-小年资源网](https://i.imgs.ovh/2025/10/06/7sxQpY.png)
![图片[3]-最新域名授权系统-小年资源网](https://i.imgs.ovh/2025/10/06/7sxP90.png)
![图片[4]-最新域名授权系统-小年资源网](https://i.imgs.ovh/2025/10/06/7sxnZb.png)
![图片[5]-最新域名授权系统-小年资源网](https://i.imgs.ovh/2025/10/06/7sx2k1.png)
![图片[6]-最新域名授权系统-小年资源网](https://i.imgs.ovh/2025/10/06/7sxH4n.png)



请登录后查看评论内容