diff --git a/app/controller/Api.php b/app/controller/Api.php index 96cc88e..f6e1093 100644 --- a/app/controller/Api.php +++ b/app/controller/Api.php @@ -215,11 +215,20 @@ class Api extends BaseController //宝塔云WAF最新版本 public function btwaf_latest_version(){ - $data = [ - 'version' => '2.5', - 'description' => '暂无更新日志', - 'create_time' => 1701252997, - ]; + $type = input('?post.type') ? input('post.type') : 0; + if($type == 1){ + $data = [ + 'version' => '1.1', + 'description' => '暂无更新日志', + 'create_time' => 1705315163, + ]; + }else{ + $data = [ + 'version' => '3.0', + 'description' => '暂无更新日志', + 'create_time' => 1705315163, + ]; + } $data = bin2hex(json_encode($data)); return json(['status'=>true,'err_no'=>0,'msg'=>'获取成功','data'=>$data]); } diff --git a/app/view/admin/deplist.html b/app/view/admin/deplist.html index 10d0f86..6fb984a 100644 --- a/app/view/admin/deplist.html +++ b/app/view/admin/deplist.html @@ -1,49 +1,49 @@ -{extend name="admin/layout" /} -{block name="title"}一键部署列表{/block} -{block name="main"} -
-
-
-

一键部署列表

-
-
-
Linux面板
-
列表文件更新时间:{$deplist_linux_time}重新获取
-
-
-
Windows面板
-
列表文件更新时间:{$deplist_win_time}重新获取
-
-
-
- - +{extend name="admin/layout" /} +{block name="title"}一键部署列表{/block} +{block name="main"} +
+
+
+

一键部署列表

+
+
+
Linux面板
+
列表文件更新时间:{$deplist_linux_time}重新获取
+
+
+
Windows面板
+
列表文件更新时间:{$deplist_win_time}重新获取
+
+
+
+ + {/block} \ No newline at end of file diff --git a/app/view/admin/layout.html b/app/view/admin/layout.html index 47fc92a..775590e 100644 --- a/app/view/admin/layout.html +++ b/app/view/admin/layout.html @@ -5,15 +5,15 @@ {block name="title"}标题{/block} - - + + - - - + + + diff --git a/app/view/admin/list.html b/app/view/admin/list.html index 7da4194..79b8a99 100644 --- a/app/view/admin/list.html +++ b/app/view/admin/list.html @@ -42,9 +42,9 @@
- - - + + + - - + + + - - - - - -
-
-
-

管理员登录

-
-
-
- - -

-
- - -

-
- - - - - -

-
-
-
-
-
-
-
-
- - - + + + + + + + 管理员登录 + + + + + + + +
+
+
+

管理员登录

+
+
+
+ + +

+
+ + +

+
+ + + + + +

+
+
+
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/app/view/admin/plugins.html b/app/view/admin/plugins.html index 21fa83d..cd17632 100644 --- a/app/view/admin/plugins.html +++ b/app/view/admin/plugins.html @@ -69,9 +69,9 @@ td{overflow: hidden;text-overflow: ellipsis;white-space: nowrap;max-width:340px;
- - - + + + - - + + + - - + + + + - - - - - - - + + + + + + + + 宝塔面板安装脚本 + + + + + +
+
+
+
+

宝塔面板安装脚本

+
+

2分钟装好面板,一键管理服务器

+

集成LAMP/LNMP环境安装,网站、FTP、数据库、文件管理、软件安装等功能

+
+
+
+
+ +
+
+
+
Linux面板 {:config_get('new_version')}
+
+ 支持Centos、Ubuntu、Deepin、Debian、Fedora等Linux系统。 + 查看演示 +
+
+ 2分钟装好 + 阿里云推荐 + 腾讯云推荐 +
+
+ +
+
+
+
+ +
+
+
+
Windows面板 {:config_get('new_version_win')}
+
支持Windows Server 2008 R2/2012/2016/2019/2022,64位系统
+
+ 操作简单 + 使用方便 +
+
+ +
+
+
+ {if config_get('new_version_btm')}
+
+
+ +
+
+
+
云安全监控
+
多机跨平台安全管理和监控
+
+ +
+
+
{/if} +
+
+
+
+
+
+
Linux面板{:config_get('new_version')}安装脚本
+
+
+ 使用 SSH 连接工具,如 + PUTTY + 连接到您的 Linux 服务器后, + 挂载磁盘 + ,根据系统执行相应命令开始安装: +
+
+ Centos安装脚本 +
+
yum install -y wget && wget -O install.sh {$siteurl}/install/install_6.0.sh && sh install.sh
+ 复制 +
+
+
+ Ubuntu/Debian安装脚本 +
+
wget -O install.sh {$siteurl}/install/install_6.0.sh && bash install.sh
+ 复制 +
+
+
+ 一键更新脚本 +
+
curl {$siteurl}/install/update6.sh|bash
+ 复制 +
+
+
+

注意:必须为没装过其它环境如Apache/Nginx/php/MySQL的新系统,推荐使用centos 7.X的系统安装宝塔面板

+

推荐使用Chrome、火狐、edge浏览器,国产浏览器请使用极速模式访问面板登录地址

+

如果使用过官方版或其他第三方云端的版本,使用一键更新脚本即可切换到此云端

+
+
+
+
+
+
+
Windows面板{:config_get('new_version_win')}安装方法
+
+
+

1、使用官方安装程序进行安装,安装完先不要进入面板。

+

2、在命令提示符(cmd)输入以下一键更新命令,然后重启面板。

+
+
+
+
wget {$siteurl}/win/panel/data/setup.py -O C:/update.py && "C:\Program Files\python\python.exe" C:/update.py update_panel {:config_get('new_version_win')}
+ 复制 +
+
+
+

注意:仅支持Windows Server 2008 R2/2012/2016/2019/2022,64位系统(中文简体),且未安装其它环境

+
+
+
+ {if config_get('new_version_btm')} +
+
+
+
云安全监控{:config_get('new_version_btm')}安装脚本
+
+
+ 使用 SSH 连接工具,如 + PUTTY + 连接到您的 Linux 服务器后,根据系统执行相应命令开始安装: +
+
+ 云安全监控安装脚本 +
+
curl -sS {$siteurl}/install/install_btmonitor.sh -o /tmp/install_btmonitor.sh && bash /tmp/install_btmonitor.sh
+ 复制 +
+
+
+ 云安全监控更新脚本 +
+
curl {$siteurl}/install/update_btmonitor.sh|bash
+ 复制 +
+
+
+

注意:安装完成后推荐使用Chrome、火狐、edge浏览器,国产浏览器(极速模式)访问登录系统

+
+
+
{/if} +
+
+ +
+
+
+ +
+

+ Copyright © {:date('Y')} 宝塔面板安装脚本 +

+
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/app/view/install/index.html b/app/view/install/index.html index 05b5311..a18717c 100644 --- a/app/view/install/index.html +++ b/app/view/install/index.html @@ -1,268 +1,268 @@ - - - - - - 宝塔第三方云端 - 安装程序 - - - - - - -
-

- - - -

-

宝塔第三方云端 - 安装程序

-
- -
- - - - -
-
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
-
- -
-
- - -
- -
- - -
-
- -
- - - -
-
-
-
- - - + + + + + + 宝塔第三方云端 - 安装程序 + + + + + + +
+

+ + + +

+

宝塔第三方云端 - 安装程序

+
+ +
+ + + + +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+ +
+
+ + +
+ +
+ + +
+
+ +
+ + + +
+
+
+
+ + + \ No newline at end of file