授权代码
把授权代码里面的域名改成自己搭建授权系统的域名
授权代码放到需要授权才可以使用的PHP程序里面，可以放到核心文件里面
最好是添加完授权之后，把PHP文件加密一下

管理后台：域名/admin
账号密码：admin 000409

<?php
define('AUTH_SERVER', 'https://dm.luodian.net.cn/auth_server.php');
define('AUTH_KEY', '113300');
// 改成你的续费网址
define('RENEW_URL', 'https://dm.luodian.net.cn/');

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()) {
    // 授权失败：强制展示续费页面，终止后续所有程序
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>授权已过期</title>
    <style>
        *{margin:0;padding:0;box-sizing:border-box;font-family:"微软雅黑",sans-serif;}
        body{background:#f5f7fa;height:100vh;display:flex;justify-content:center;align-items:center;}
        .box{background:#fff;padding:50px 40px;border-radius:16px;box-shadow:0 8px 30px rgba(0,0,0,0.1);text-align:center;width:90%;max-width:420px;}
        .icon{font-size:60px;color:#f56c6c;margin-bottom:20px;}
        h2{color:#333;margin-bottom:15px;font-size:22px;}
        p{color:#666;margin-bottom:30px;line-height:1.7;}
        .btn{display:inline-block;padding:12px 35px;background:#ff6700;color:#fff;text-decoration:none;border-radius:8px;font-size:16px;transition:0.3s;}
        .btn:hover{background:#e55a00;}
    </style>
</head>
<body>
    <div class="box">
        <div class="icon">⚠</div>
        <h2>授权已过期</h2>
        <p>当前授权已过期，无法继续使用<br>请立即续费激活</p>
        <a href="<?php echo RENEW_URL; ?>" target="_blank" class="btn">立即前往续费</a>
    </div>
</body>
</html>
<?php
    // 关键：直接退出，后面所有程序都不执行
    exit;
}