better-staridc-MNBT
1<?php
2if (!defined('IN_CRONLITE')) { exit; }
3$page_title = $page_title ?? '控制面板';
4$u = $current_user;
5ob_start();
6?>
7<div class="ly-msg" id="msg"></div>
8
9<div style="padding:6px 0 20px;">
10 <h1 style="font-size:22px;margin:0 0 6px;">你好,<?= htmlspecialchars($u['username']) ?>!</h1>
11 <p style="color:#999;font-size:14px;margin:0;">欢迎回到用户中心,在这里管理你的个人信息与账号安全。</p>
12</div>
13
14<div class="ly-info-row"><span class="ly-info-label">用户名</span><span class="ly-info-value"><?= htmlspecialchars($u['username']) ?></span></div>
15<div class="ly-info-row"><span class="ly-info-label">邮箱</span><span class="ly-info-value"><?= htmlspecialchars($u['email']) ?: '未绑定' ?></span></div>
16<div class="ly-info-row"><span class="ly-info-label">QQ</span><span class="ly-info-value"><?= htmlspecialchars($u['qq']) ?: '未绑定' ?></span></div>
17<div class="ly-info-row"><span class="ly-info-label">注册时间</span><span class="ly-info-value"><?= htmlspecialchars($u['created_at']) ?></span></div>
18
19<div style="margin-top:24px;display:flex;gap:10px;flex-wrap:wrap;">
20 <a href="<?= user_info_url('account/profile') ?>" class="layui-btn">个人信息</a>
21 <a href="<?= user_info_url('account/password') ?>" class="layui-btn layui-btn-primary">修改密码</a>
22 <a href="<?= user_info_url('account/logout') ?>" class="layui-btn layui-btn-danger">退出登录</a>
23</div>
24<?php
25$content = ob_get_clean();
26include __DIR__ . '/layout.php';