<?php define('AUTH_SERVER', 'https://qnli.pw/auth.php'); define('AUTH_KEY', '878505'); 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('

授权验证失败

'); } >? 授权测试页面

授权验证成功!

这是你的测试页面内容。