最新域名授权系统

最新域名授权系统

最新域名授权系统-小年资源网
最新域名授权系统
此内容为付费资源,请付费后查看
9.9
付费资源

安装环境: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]-最新域名授权系统-小年资源网

图片[2]-最新域名授权系统-小年资源网

图片[3]-最新域名授权系统-小年资源网

图片[4]-最新域名授权系统-小年资源网

图片[5]-最新域名授权系统-小年资源网

图片[6]-最新域名授权系统-小年资源网

 

© 版权声明
THE END
喜欢就支持一下吧
点赞14 分享
评论 抢沙发

请登录后发表评论

    请登录后查看评论内容