fuc/storage/framework/smarty/compile/d887b0f90dd5ac8baafe99e30a25bf29bf9f6826_0.file_index.tpl.php
2025-02-23 13:30:57 +08:00

698 lines
40 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/* Smarty version 5.3.1, created on 2025-02-02 11:45:01
from 'file:user/index.tpl' */
/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.3.1',
'unifunc' => 'content_679eea3d619403_75626612',
'has_nocache_code' => false,
'file_dependency' =>
array (
'd887b0f90dd5ac8baafe99e30a25bf29bf9f6826' =>
array (
0 => 'user/index.tpl',
1 => 1738388866,
2 => 'file',
),
),
'includes' =>
array (
'file:user/header.tpl' => 1,
'file:captcha/div.tpl' => 1,
'file:captcha/ajax.tpl' => 1,
'file:captcha/js.tpl' => 1,
'file:user/footer.tpl' => 1,
),
))) {
function content_679eea3d619403_75626612 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/www/wwwroot/fuuu.cloud/resources/views/tabler/user';
$_smarty_tpl->renderSubTemplate('file:user/header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
?>
<div class="page-wrapper">
<div class="container-xl">
<div class="page-header d-print-none text-white">
<div class="row align-items-center">
<div class="col">
<h2 class="page-title">
<span class="home-title">用户中心</span>
</h2>
<div class="page-pretitle my-3">
<span class="home-subtitle">在这里查看账户信息和最新公告</span>
</div>
</div>
</div>
</div>
</div>
<div class="page-body">
<div class="container-xl">
<div class="row row-deck row-cards">
<div class="col-12">
<div class="row row-cards">
<div class="col-sm-6 col-lg-3">
<div class="card card-sm">
<div class="card-body">
<div class="row align-items-center">
<div class="col-auto">
<span class="bg-green text-white avatar">
<i class="ti ti-vip icon"></i>
</span>
</div>
<div class="col">
<div class="font-weight-medium">
订阅类型
</div>
<div class="text-secondary">
<?php echo $_smarty_tpl->getValue('class');?>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-3">
<div class="card card-sm">
<div class="card-body">
<div class="row align-items-center">
<div class="col-auto">
<span class="bg-green text-white avatar">
<i class="ti ti-coin icon"></i>
</span>
</div>
<div class="col">
<div class="font-weight-medium">
账户余额
</div>
<div class="text-secondary">
<?php echo $_smarty_tpl->getValue('user')->money;?>
</div>
</div>
<div class="col-auto">
<a href="/user/money" class="btn btn-primary btn-icon">
<i class="ti ti-plus icon"></i>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-3">
<div class="card card-sm">
<div class="card-body">
<div class="row align-items-center">
<div class="col-auto">
<span class="bg-green text-white avatar">
<i class="ti ti-devices-pc icon"></i>
</span>
</div>
<div class="col">
<div class="font-weight-medium">
同时连接IP限制
</div>
<div class="text-secondary">
<?php if ($_smarty_tpl->getValue('user')->node_iplimit !== 0) {?>
<?php echo $_smarty_tpl->getValue('user')->node_iplimit;?>
<?php } else { ?>
不限制
<?php }?>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-3">
<div class="card card-sm">
<div class="card-body">
<div class="row align-items-center">
<div class="col-auto">
<span class="bg-green text-white avatar">
<i class="ti ti-rocket icon"></i>
</span>
</div>
<div class="col">
<div class="font-weight-medium">
速度限制
</div>
<div class="text-secondary">
<?php if ($_smarty_tpl->getValue('user')->node_speedlimit !== 0.0) {?>
<code><?php echo $_smarty_tpl->getValue('user')->node_speedlimit;?>
</code>
Mbps
<?php } else { ?>
不限制
<?php }?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="card">
<ul class="nav nav-tabs nav-fill" data-bs-toggle="tabs">
<!--
<li class="nav-item">
<a href="#client-sub" class="nav-link" data-bs-toggle="tab">
<i class="ti ti-rss icon"></i>
&nbsp;客户端订阅
</a>
</li>
-->
<li class="nav-item">
<a href="#windows" class="nav-link active" data-bs-toggle="tab">
<i class="ti ti-brand-windows icon"></i>
&nbsp;Windows
</a>
</li>
<li class="nav-item">
<a href="#macos" class="nav-link" data-bs-toggle="tab">
<i class="ti ti-brand-finder icon"></i>
&nbsp;MacOS
</a>
</li>
<li class="nav-item">
<a href="#android" class="nav-link" data-bs-toggle="tab">
<i class="ti ti-brand-android icon"></i>
&nbsp;Android
</a>
</li>
<li class="nav-item">
<a href="#ios" class="nav-link" data-bs-toggle="tab">
<i class="ti ti-brand-apple icon"></i>
&nbsp;iOS
</a>
</li>
<li class="nav-item">
<a href="#linux" class="nav-link" data-bs-toggle="tab">
<i class="ti ti-brand-redhat icon"></i>
&nbsp;Linux
</a>
</li>
<!--
<li class="nav-item">
<a href="#config" class="nav-link" data-bs-toggle="tab">
<i class="ti ti-file-text icon"></i>
&nbsp;Config
</a>
</li>
-->
<li class="nav-item">
<a href="#sub" class="nav-link" data-bs-toggle="tab">
<i class="ti ti-rss icon"></i>
&nbsp;通用订阅
</a>
</li>
</ul>
<div class="card-body">
<div class="tab-content">
<div class="tab-pane" id="sub">
<div>
<p>
通用订阅json<code class="spoiler"><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/json</code>
</p>
<p>
通用订阅clash<code class="spoiler"><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/clash</code>
</p>
<p>
通用订阅sing-box<code class="spoiler"><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/singbox</code>
</p>
<p>
通用订阅v2rayjson<code class="spoiler"><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/v2rayjson</code>
</p>
<?php if ($_smarty_tpl->getValue('public_setting')['enable_ss_sub']) {?>
<p>
通用订阅sip008<code class="spoiler"><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/sip008</code>
</p>
<?php }?>
<div class="btn-list justify-content-start">
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/json"
class="copy btn btn-primary">
复制通用订阅json
</a>
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/clash"
class="copy btn btn-primary">
复制通用订阅clash
</a>
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/singbox"
class="copy btn btn-primary">
复制通用订阅sing-box
</a>
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/v2rayjson"
class="copy btn btn-primary">
复制通用订阅v2rayjson
</a>
<?php if ($_smarty_tpl->getValue('public_setting')['enable_ss_sub']) {?>
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/sip008"
class="copy btn btn-primary">
复制通用订阅sip008
</a>
<?php }?>
</div>
</div>
</div>
<!--
<div class="tab-pane show" id="client-sub">
<div>
<?php if ($_smarty_tpl->getValue('public_setting')['enable_ss_sub']) {?>
<p>
客户端订阅Shadowsocks<code><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/ss</code></p>
<p>
客户端订阅SIP002<code><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/sip002</code>
</p>
<?php }?>
<?php if ($_smarty_tpl->getValue('public_setting')['enable_v2_sub']) {?>
<p>
客户端订阅V2Ray<code><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/v2ray</code>
</p>
<?php }?>
<?php if ($_smarty_tpl->getValue('public_setting')['enable_trojan_sub']) {?>
<p>
客户端订阅Trojan<code><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/trojan</code>
</p>
<?php }?>
<div class="btn-list justify-content-start">
<?php if ($_smarty_tpl->getValue('public_setting')['enable_ss_sub']) {?>
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/ss"
class="copy btn btn-primary">
复制客户端订阅Shadowsocks
</a>
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/sip002"
class="copy btn btn-primary">
复制客户端订阅SIP002
</a>
<?php }?>
<?php if ($_smarty_tpl->getValue('public_setting')['enable_v2_sub']) {?>
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/v2ray"
class="copy btn btn-primary">
复制客户端订阅V2Ray
</a>
<?php }?>
<?php if ($_smarty_tpl->getValue('public_setting')['enable_trojan_sub']) {?>
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/trojan"
class="copy btn btn-primary">
复制客户端订阅Trojan
</a>
<?php }?>
</div>
</div>
</div>
-->
<div class="tab-pane active show" id="windows">
<div>
<p>
适用于 Clash 的订阅:<code class="spoiler"><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/clash</code>
</p>
<div class="btn-list justify-content-start">
<a
<?php if ($_smarty_tpl->getValue('config')['enable_r2_client_download']) {?>
href="/user/clients/Clash.Verge.exe"
<?php } else { ?>
href="/clients/Clash.Verge.exe"
<?php }?> class="btn btn-azure">
下载 Clash Verge
</a>
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/clash"
class="copy btn btn-primary">
复制 Clash 订阅链接
</a>
<a href="clash://install-config?url=<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/clash&name=<?php echo $_smarty_tpl->getValue('config')['appName'];?>
"
class="btn btn-indigo">
导入 Clash
</a>
</div>
</div>
</div>
<div class="tab-pane" id="macos">
<p>
适用于 Clash 的订阅:<code class="spoiler"><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/clash</code>
</p>
<!--
<p>
适用于 sing-box 的订阅:<code class="spoiler"><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/singbox</code>
</p>
-->
<div class="btn-list justify-content-start">
<a <?php if ($_smarty_tpl->getValue('config')['enable_r2_client_download']) {?>
href="/user/clients/Clash.Verge_aarch64.dmg"
<?php } else { ?>
href="/clients/Clash.Verge_intel.dmg"
<?php }?> class="btn btn-azure">
下载 Clash Verge (intel芯片)
</a>
<a <?php if ($_smarty_tpl->getValue('config')['enable_r2_client_download']) {?>
href="/user/clients/Clash.Verge_aarch64.dmg"
<?php } else { ?>
href="/clients/Clash.Verge_aarch64.dmg"
<?php }?> class="btn btn-azure">
下载 Clash Verge (m芯片)
</a>
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/clash"
class="copy btn btn-primary">
复制 Clash 订阅链接
</a>
<a href="clash://install-config?url=<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/clash&name=<?php echo $_smarty_tpl->getValue('config')['appName'];?>
"
class="btn btn-indigo">
导入 Clash
</a>
</div>
<!--
<div class="btn-list justify-content-start my-2">
<a <?php if ($_smarty_tpl->getValue('config')['enable_r2_client_download']) {?>
href="/user/clients/SFM.zip"
<?php } else { ?>
href="/clients/SFM.zip"
<?php }?> class="btn btn-azure">
下载 SFM
</a>
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/singbox"
class="copy btn btn-primary">
复制 sing-box 订阅链接
</a>
<a href="sing-box://import-remote-profile?url=<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/singbox#<?php echo $_smarty_tpl->getValue('config')['appName'];?>
"
class="btn btn-indigo">
导入 SFM
</a>
</div>
-->
</div>
<div class="tab-pane" id="android">
<p>
适用于 Clash 的订阅:<code class="spoiler"><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/clash</code>
</p>
<!--
<p>
适用于 sing-box 的订阅:<code class="spoiler"><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/singbox</code>
</p>
-->
<div class="btn-list justify-content-start">
<a <?php if ($_smarty_tpl->getValue('config')['enable_r2_client_download']) {?>
href="/user/clients/CMFA.apk"
<?php } else { ?>
href="/clients/CMFA.apk"
<?php }?> class="btn btn-azure">
下载 Clash Meta
</a>
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/clash"
class="copy btn btn-primary">
复制 Clash 订阅链接
</a>
<a href="clash://install-config?url=<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/clash&name=<?php echo $_smarty_tpl->getValue('config')['appName'];?>
"
class="btn btn-indigo">
导入 Clash
</a>
</div>
<!--
<div class="btn-list justify-content-start my-2">
<a <?php if ($_smarty_tpl->getValue('config')['enable_r2_client_download']) {?>
href="/user/clients/SFA.apk"
<?php } else { ?>
href="/clients/SFA.apk"
<?php }?> class="btn btn-azure">
下载 SFA
</a>
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/singbox"
class="copy btn btn-primary">
复制 sing-box 订阅链接
</a>
<a href="sing-box://import-remote-profile?url=<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/singbox#<?php echo $_smarty_tpl->getValue('config')['appName'];?>
"
class="btn btn-indigo">
导入 SFA
</a>
</div>
-->
</div>
<div class="tab-pane" id="ios">
<p>
适用于 sing-box 的订阅:<code class="spoiler"><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/singbox</code>
</p>
<div class="btn-list justify-content-start my-2">
<a href="https://apps.apple.com/app/sing-box-vt/id6673731168" target="_blank"
class="btn btn-azure">
安裝 sing-box
</a>
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/singbox"
class="copy btn btn-primary">
复制 sing-box 订阅链接
</a>
<a href="sing-box://import-remote-profile?url=<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/singbox#<?php echo $_smarty_tpl->getValue('config')['appName'];?>
"
class="btn btn-indigo">
导入 sing-box
</a>
</div>
</div>
<div class="tab-pane" id="linux">
<p>
适用于 Clash 的订阅:<code class="spoiler"><?php echo $_smarty_tpl->getValue('UniversalSub');?>
/clash</code>
</p>
<div class="btn-list justify-content-start">
<a <?php if ($_smarty_tpl->getValue('config')['enable_r2_client_download']) {?>
href="/user/clients/Clash.Verge.AppImage.tar.gz"
<?php } else { ?>
href="/clients/Clash.Verge.AppImage.tar.gz"
<?php }?> class="btn btn-azure">
下载 Clash Verge
</a>
<a data-clipboard-text="<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/clash"
class="copy btn btn-primary">
复制 Clash 订阅链接
</a>
<a href="clash://install-config?url=<?php echo $_smarty_tpl->getValue('UniversalSub');?>
/clash&name=<?php echo $_smarty_tpl->getValue('config')['appName'];?>
"
class="btn btn-indigo">
导入 Clash
</a>
</div>
</div>
<!--
<div class="tab-pane" id="config">
<p>你的连接信息:</p>
<div class="table-responsive">
<table class="table table-vcenter card-table">
<tbody>
<tr>
<td><strong>端口</strong></td>
<td><?php echo $_smarty_tpl->getValue('user')->port;?>
</td>
</tr>
<tr>
<td><strong>连接密码</strong></td>
<td><?php echo $_smarty_tpl->getValue('user')->passwd;?>
</td>
</tr>
<tr>
<td><strong>UUID</strong></td>
<td><?php echo $_smarty_tpl->getValue('user')->uuid;?>
</td>
</tr>
<tr>
<td><strong>自定义加密</strong></td>
<td><?php echo $_smarty_tpl->getValue('user')->method;?>
</td>
</tr>
</tbody>
</table>
</div>
</div>
-->
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="card">
<div class="card-body">
<h3 class="card-title">流量用量</h3>
<div class="progress progress-separated mb-3">
<?php if ($_smarty_tpl->getValue('user')->LastusedTrafficPercent() < '1') {?>
<div class="progress-bar bg-primary" role="progressbar" style="width: 1%"></div>
<?php } else { ?>
<div class="progress-bar bg-primary" role="progressbar"
style="width: <?php echo $_smarty_tpl->getValue('user')->LastusedTrafficPercent();?>
%">
</div>
<?php }?>
<?php if ($_smarty_tpl->getValue('user')->TodayusedTrafficPercent() < '1') {?>
<div class="progress-bar bg-success" role="progressbar" style="width: 1%"></div>
<?php } else { ?>
<div class="progress-bar bg-success" role="progressbar"
style="width: <?php echo $_smarty_tpl->getValue('user')->TodayusedTrafficPercent();?>
%"></div>
<?php }?>
</div>
<div class="row">
<div class="col-auto d-flex align-items-center pe-2">
<span class="legend me-2 bg-primary"></span>
<span>过去用量 <?php echo $_smarty_tpl->getValue('user')->LastusedTraffic();?>
</span>
</div>
<div class="col-auto d-flex align-items-center px-2">
<span class="legend me-2 bg-success"></span>
<span>今日用量 <?php echo $_smarty_tpl->getValue('user')->TodayusedTraffic();?>
</span>
</div>
<div class="col-auto d-flex align-items-center ps-2">
<span class="legend me-2"></span>
<span>剩余流量 <?php echo $_smarty_tpl->getValue('user')->unusedTraffic();?>
</span>
</div>
</div>
<p class="my-3">
<?php if ($_smarty_tpl->getValue('user')->class === 0) {?>
请先
<a href="/user/product">购买</a>
一个套餐
<?php } else { ?>
您的【<?php echo $_smarty_tpl->getValue('class');?>
】订阅会在 <?php echo $_smarty_tpl->getValue('class_expire_days');?>
天后到期(<?php echo $_smarty_tpl->getValue('user')->class_expire;?>
<?php }?>
</p>
</div>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="card">
<div class="ribbon ribbon-top bg-yellow">
<i class="ti ti-bell-ringing icon"></i>
</div>
<div class="card-body">
<h3 class="card-title">
最新公告
<?php if ($_smarty_tpl->getValue('ann') !== null) {?>
<span class="card-subtitle"><?php echo $_smarty_tpl->getValue('ann')->date;?>
</span>
<?php }?>
</h3>
<p class="text-secondary">
<?php if ($_smarty_tpl->getValue('ann') !== null) {?>
<?php echo $_smarty_tpl->getValue('ann')->content;?>
<?php } else { ?>
暂无公告
<?php }?>
</p>
</div>
</div>
</div>
<?php if ($_smarty_tpl->getValue('public_setting')['enable_checkin']) {?>
<div class="col-lg-6 col-sm-12">
<div class="card">
<div class="card-stamp">
<div class="card-stamp-icon bg-green">
<i class="ti ti-check"></i>
</div>
</div>
<div class="card-body">
<h3 class="card-title">每日签到</h3>
<p>
签到可领取
<?php if ($_smarty_tpl->getValue('public_setting')['checkin_min'] !== $_smarty_tpl->getValue('public_setting')['checkin_max']) {?>
&nbsp;
<code><?php echo $_smarty_tpl->getValue('public_setting')['checkin_min'];?>
MB</code>
<code><?php echo $_smarty_tpl->getValue('public_setting')['checkin_max'];?>
MB</code>
范围内的流量
<?php } else { ?>
<code><?php echo $_smarty_tpl->getValue('public_setting')['checkin_min'];?>
MB</code>
<?php }?>
</p>
<p>
上次签到时间:<code id="last-checkin-time"><?php echo $_smarty_tpl->getValue('user')->lastCheckInTime();?>
</code>
</p>
</div>
<div class="card-footer">
<div class="d-flex">
<?php if (!$_smarty_tpl->getValue('user')->isAbleToCheckin()) {?>
<button id="check-in" class="btn btn-primary ms-auto" disabled>已签到</button>
<?php } else { ?>
<?php if ($_smarty_tpl->getValue('public_setting')['enable_checkin_captcha']) {?>
<?php $_smarty_tpl->renderSubTemplate('file:captcha/div.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
?>
<?php }?>
<button id="check-in" class="btn btn-primary ms-auto"
hx-post="/user/checkin" hx-swap="none" hx-vals='js:{
<?php if ($_smarty_tpl->getValue('public_setting')['enable_checkin_captcha']) {?>
<?php $_smarty_tpl->renderSubTemplate('file:captcha/ajax.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
?>
<?php }?>
}'>
签到
</button>
<?php }?>
</div>
</div>
</div>
</div>
<?php }?>
</div>
</div>
</div>
<?php if ($_smarty_tpl->getValue('public_setting')['enable_checkin_captcha'] && $_smarty_tpl->getValue('user')->isAbleToCheckin()) {?>
<?php $_smarty_tpl->renderSubTemplate('file:captcha/js.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
?>
<?php }?>
<?php $_smarty_tpl->renderSubTemplate('file:user/footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
}
}