mirror of
https://github.com/flucont/btcloud.git
synced 2025-01-23 05:08:14 -05:00
update
This commit is contained in:
parent
79fddbb943
commit
71db6b0a3e
@ -215,11 +215,20 @@ class Api extends BaseController
|
|||||||
|
|
||||||
//宝塔云WAF最新版本
|
//宝塔云WAF最新版本
|
||||||
public function btwaf_latest_version(){
|
public function btwaf_latest_version(){
|
||||||
|
$type = input('?post.type') ? input('post.type') : 0;
|
||||||
|
if($type == 1){
|
||||||
$data = [
|
$data = [
|
||||||
'version' => '2.5',
|
'version' => '1.1',
|
||||||
'description' => '暂无更新日志',
|
'description' => '暂无更新日志',
|
||||||
'create_time' => 1701252997,
|
'create_time' => 1705315163,
|
||||||
];
|
];
|
||||||
|
}else{
|
||||||
|
$data = [
|
||||||
|
'version' => '3.0',
|
||||||
|
'description' => '暂无更新日志',
|
||||||
|
'create_time' => 1705315163,
|
||||||
|
];
|
||||||
|
}
|
||||||
$data = bin2hex(json_encode($data));
|
$data = bin2hex(json_encode($data));
|
||||||
return json(['status'=>true,'err_no'=>0,'msg'=>'获取成功','data'=>$data]);
|
return json(['status'=>true,'err_no'=>0,'msg'=>'获取成功','data'=>$data]);
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="//cdn.staticfile.org/layer/3.5.1/layer.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/layer/3.5.1/layer.js"></script>
|
||||||
<script>
|
<script>
|
||||||
function refresh_deplist(os){
|
function refresh_deplist(os){
|
||||||
var confirm = layer.confirm('是否确定从宝塔官方获取最新一键部署列表?', {
|
var confirm = layer.confirm('是否确定从宝塔官方获取最新一键部署列表?', {
|
||||||
|
@ -5,15 +5,15 @@
|
|||||||
<meta name="renderer" content="webkit">
|
<meta name="renderer" content="webkit">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||||
<title>{block name="title"}标题{/block}</title>
|
<title>{block name="title"}标题{/block}</title>
|
||||||
<link href="//cdn.staticfile.org/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet" />
|
<link href="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet" />
|
||||||
<link href="//cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
|
<link href="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
|
||||||
<link href="/static/css/bootstrap-table.css" rel="stylesheet" />
|
<link href="/static/css/bootstrap-table.css" rel="stylesheet" />
|
||||||
<script src="//cdn.staticfile.org/modernizr/2.8.3/modernizr.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/modernizr/2.8.3/modernizr.min.js"></script>
|
||||||
<script src="//cdn.staticfile.org/jquery/2.1.4/jquery.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/2.1.4/jquery.min.js"></script>
|
||||||
<script src="//cdn.staticfile.org/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="//cdn.staticfile.org/html5shiv/3.7.3/html5shiv.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||||
<script src="//cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/respond.js/1.4.2/respond.min.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -42,9 +42,9 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="//cdn.staticfile.org/layer/3.5.1/layer.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/layer/3.5.1/layer.js"></script>
|
||||||
<script src="//cdn.staticfile.org/bootstrap-table/1.20.2/bootstrap-table.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap-table/1.19.1/bootstrap-table.min.js"></script>
|
||||||
<script src="//cdn.staticfile.org/bootstrap-table/1.20.2/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap-table/1.19.1/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
|
||||||
<script src="/static/js/custom.js"></script>
|
<script src="/static/js/custom.js"></script>
|
||||||
<script>
|
<script>
|
||||||
function setEnable(id,enable) {
|
function setEnable(id,enable) {
|
||||||
|
@ -23,9 +23,9 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="//cdn.staticfile.org/layer/3.5.1/layer.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/layer/3.5.1/layer.js"></script>
|
||||||
<script src="//cdn.staticfile.org/bootstrap-table/1.20.2/bootstrap-table.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap-table/1.19.1/bootstrap-table.min.js"></script>
|
||||||
<script src="//cdn.staticfile.org/bootstrap-table/1.20.2/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap-table/1.19.1/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
|
||||||
<script src="/static/js/custom.js"></script>
|
<script src="/static/js/custom.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
@ -5,12 +5,12 @@
|
|||||||
<meta name="renderer" content="webkit">
|
<meta name="renderer" content="webkit">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||||
<title>管理员登录</title>
|
<title>管理员登录</title>
|
||||||
<link href="//cdn.staticfile.org/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"/>
|
<link href="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"/>
|
||||||
<script src="//cdn.staticfile.org/modernizr/2.8.3/modernizr.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/modernizr/2.8.3/modernizr.min.js"></script>
|
||||||
<script src="//cdn.staticfile.org/jquery/2.1.4/jquery.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/2.1.4/jquery.min.js"></script>
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="//cdn.staticfile.org/html5shiv/3.7.3/html5shiv.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||||
<script src="//cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/respond.js/1.4.2/respond.min.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -63,7 +63,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="//cdn.staticfile.org/layer/3.5.1/layer.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/layer/3.5.1/layer.js"></script>
|
||||||
<script>
|
<script>
|
||||||
function submitlogin(){
|
function submitlogin(){
|
||||||
var user = $("input[name='user']").val();
|
var user = $("input[name='user']").val();
|
||||||
|
@ -69,9 +69,9 @@ td{overflow: hidden;text-overflow: ellipsis;white-space: nowrap;max-width:340px;
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="//cdn.staticfile.org/layer/3.5.1/layer.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/layer/3.5.1/layer.js"></script>
|
||||||
<script src="//cdn.staticfile.org/bootstrap-table/1.20.2/bootstrap-table.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap-table/1.19.1/bootstrap-table.min.js"></script>
|
||||||
<script src="//cdn.staticfile.org/bootstrap-table/1.20.2/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap-table/1.19.1/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
|
||||||
<script src="/static/js/custom.js"></script>
|
<script src="/static/js/custom.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
@ -69,9 +69,9 @@ td{overflow: hidden;text-overflow: ellipsis;white-space: nowrap;max-width:340px;
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="//cdn.staticfile.org/layer/3.5.1/layer.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/layer/3.5.1/layer.js"></script>
|
||||||
<script src="//cdn.staticfile.org/bootstrap-table/1.20.2/bootstrap-table.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap-table/1.19.1/bootstrap-table.min.js"></script>
|
||||||
<script src="//cdn.staticfile.org/bootstrap-table/1.20.2/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap-table/1.19.1/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
|
||||||
<script src="/static/js/custom.js"></script>
|
<script src="/static/js/custom.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
@ -23,9 +23,9 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="//cdn.staticfile.org/layer/3.5.1/layer.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/layer/3.5.1/layer.js"></script>
|
||||||
<script src="//cdn.staticfile.org/bootstrap-table/1.20.2/bootstrap-table.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap-table/1.19.1/bootstrap-table.min.js"></script>
|
||||||
<script src="//cdn.staticfile.org/bootstrap-table/1.20.2/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap-table/1.19.1/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
|
||||||
<script src="/static/js/custom.js"></script>
|
<script src="/static/js/custom.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
@ -279,7 +279,7 @@ $("select[name='wbt_type']").change(function(){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<script src="//cdn.staticfile.org/layer/3.5.1/layer.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/layer/3.5.1/layer.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
var items = $("select[default]");
|
var items = $("select[default]");
|
||||||
|
@ -65,12 +65,12 @@
|
|||||||
{if config_get('new_version_btm')}<div class="disflex flex_lrcenter mt_30 install-list">
|
{if config_get('new_version_btm')}<div class="disflex flex_lrcenter mt_30 install-list">
|
||||||
<div class="install-box monitor">
|
<div class="install-box monitor">
|
||||||
<div class="img">
|
<div class="img">
|
||||||
<img src="/static/images/bt_monitor.png" />
|
<img src="/static/images/bt_monitor.png" style="height: 96px;"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="cont">
|
<div class="cont">
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="title">堡塔云监控</div>
|
<div class="title">云安全监控</div>
|
||||||
<div class="desc">多服务监控和异常告警通知</div>
|
<div class="desc">多机跨平台安全管理和监控</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<a class="btn" href="javascript:;" id="goInstallMonitor">查看安装脚本</a>
|
<a class="btn" href="javascript:;" id="goInstallMonitor">查看安装脚本</a>
|
||||||
@ -145,7 +145,7 @@
|
|||||||
<div class="d4" id="instal-monitor">
|
<div class="d4" id="instal-monitor">
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<div class="wrap-title">
|
<div class="wrap-title">
|
||||||
<div class="text" style="margin-right: 12px;">堡塔云监控{:config_get('new_version_btm')}安装脚本</div>
|
<div class="text" style="margin-right: 12px;">云安全监控{:config_get('new_version_btm')}安装脚本</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="desc">
|
<div class="desc">
|
||||||
使用 SSH 连接工具,如
|
使用 SSH 连接工具,如
|
||||||
@ -153,21 +153,21 @@
|
|||||||
连接到您的 Linux 服务器后,根据系统执行相应命令开始安装:
|
连接到您的 Linux 服务器后,根据系统执行相应命令开始安装:
|
||||||
</div>
|
</div>
|
||||||
<div class="install-code">
|
<div class="install-code">
|
||||||
<span class="osname">堡塔云监控安装脚本</span>
|
<span class="osname">云安全监控安装脚本</span>
|
||||||
<div class="code-cont">
|
<div class="code-cont">
|
||||||
<div class="command" title="点击复制安装脚本">curl -sS {$siteurl}/install/install_btmonitor.sh -o /tmp/install_btmonitor.sh && bash /tmp/install_btmonitor.sh</div>
|
<div class="command" title="点击复制安装脚本">curl -sS {$siteurl}/install/install_btmonitor.sh -o /tmp/install_btmonitor.sh && bash /tmp/install_btmonitor.sh</div>
|
||||||
<span class="ico-copy" title="点击复制安装脚本" data-clipboard-text="curl -sS {$siteurl}/install/install_btmonitor.sh -o /tmp/install_btmonitor.sh && bash /tmp/install_btmonitor.sh">复制</span>
|
<span class="ico-copy" title="点击复制安装脚本" data-clipboard-text="curl -sS {$siteurl}/install/install_btmonitor.sh -o /tmp/install_btmonitor.sh && bash /tmp/install_btmonitor.sh">复制</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="install-code">
|
<div class="install-code">
|
||||||
<span class="osname">堡塔云监控更新脚本</span>
|
<span class="osname">云安全监控更新脚本</span>
|
||||||
<div class="code-cont">
|
<div class="code-cont">
|
||||||
<div class="command" title="点击复制更新脚本">curl {$siteurl}/install/update_btmonitor.sh|bash</div>
|
<div class="command" title="点击复制更新脚本">curl {$siteurl}/install/update_btmonitor.sh|bash</div>
|
||||||
<span class="ico-copy" title="点击复制更新脚本" data-clipboard-text="curl {$siteurl}/install/update_btmonitor.sh|bash">复制</span>
|
<span class="ico-copy" title="点击复制更新脚本" data-clipboard-text="curl {$siteurl}/install/update_btmonitor.sh|bash">复制</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tips" style="color: orangered; font-weight: 700">
|
<div class="tips" style="color: orangered; font-weight: 700">
|
||||||
<p>注意:推荐使用Chrome、火狐、edge浏览器,国产浏览器(极速模式)</p>
|
<p>注意:安装完成后推荐使用Chrome、火狐、edge浏览器,国产浏览器(极速模式)访问登录系统</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>{/if}
|
</div>{/if}
|
||||||
@ -193,10 +193,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="//cdn.staticfile.org/jquery/3.6.0/jquery.min.js" type="text/javascript" charset="utf-8"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.6.0/jquery.min.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="//cdn.staticfile.org/layer/3.5.1/layer.js" type="text/javascript" charset="utf-8"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/layer/3.5.1/layer.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
|
||||||
<script type="text/javascript" src="//cdn.staticfile.org/clipboard.js/1.7.1/clipboard.min.js"></script>
|
<script type="text/javascript" src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/clipboard.js/1.7.1/clipboard.min.js"></script>
|
||||||
<script type="text/javascript" src="/static/js/dx.js"></script>
|
<script type="text/javascript" src="/static/js/dx.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
|
@ -217,7 +217,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="//cdn.staticfile.org/jquery/2.1.4/jquery.min.js"></script>
|
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/2.1.4/jquery.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
$('form').on('submit', function (e) {
|
$('form').on('submit', function (e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user