diff --git a/plugins/php/icon.png b/plugins/php/icon.png new file mode 100644 index 000000000..66d0ff025 Binary files /dev/null and b/plugins/php/icon.png differ diff --git a/plugins/php/index.html b/plugins/php/index.html new file mode 100755 index 000000000..cf0b57f1b --- /dev/null +++ b/plugins/php/index.html @@ -0,0 +1,550 @@ + + + +
+
+
+

密钥

+

面板设置

+

面板登录日志

+

SSH设置

+

SSH日志管理

+
+
+
+

+ 密钥: + +

+ +
    +
  • 宝塔企业运维后台连接您的服务器需要此密钥,请妥善记录并保存
  • +
  • 一但密钥丢失,可能导致您无法登录服务器
  • +
+
+ + + + +
+
+
+ \ No newline at end of file diff --git a/plugins/php/info.json b/plugins/php/info.json new file mode 100755 index 000000000..f90a31c66 --- /dev/null +++ b/plugins/php/info.json @@ -0,0 +1,86 @@ +{ + "sort": 7, + "ps": "PHP是世界上最好的编程语言", + "shell": "php.sh", + "name": "php", + "title": "PHP", + "default": false, + "versions": "5.2,5.3,5.4,5.5,5.6,7.0,7.1,7.2", + "update": "5.2.17p1,5.3.29,5.4.45,5.5.38,5.6.32,7.0.26,7.1.12,7.2.0", + "tip": "soft", + "checks": "/www/server/php/VERSION/bin/php", + "display": 1, + "author": "Zend", + "date": "2017-04-01", + "home": "https://www.php.net", + "type": "语言解释器", + "pid": "1", + "versions": [ + { + "status": false, + "version": "5.3", + "no": "", + "task": "1" + }, + { + "status": true, + "task": "1", + "run": true, + "no": "5.4.45", + "fpm": true, + "max": "50", + "version": "5.4", + "pathinfo": true, + "maxTime": "100", + "display": false + }, + { + "status": false, + "version": "5.5", + "no": "", + "task": "1" + }, + { + "status": true, + "task": "1", + "run": true, + "no": "5.6.30", + "fpm": true, + "max": "50", + "version": "5.6", + "pathinfo": true, + "maxTime": "100", + "display": false + }, + { + "status": true, + "task": "1", + "run": true, + "no": "7.0.19", + "fpm": true, + "max": "50", + "version": "7.0", + "pathinfo": true, + "maxTime": "100", + "display": false + }, + { + "status": true, + "task": "1", + "run": true, + "no": "7.1.5", + "fpm": true, + "max": "50", + "version": "7.1", + "pathinfo": true, + "maxTime": "100", + "display": false + }, + { + "status": false, + "version": "7.2", + "no": "", + "task": "1" + } + ] +} \ No newline at end of file diff --git a/plugins/php/install.sh b/plugins/php/install.sh new file mode 100755 index 000000000..6965e237a --- /dev/null +++ b/plugins/php/install.sh @@ -0,0 +1,40 @@ +#!/bin/bash +PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin +export PATH +install_tmp='/tmp/bt_install.pl' +public_file=/www/server/panel/install/public.sh +if [ ! -f $public_file ];then + wget -O $public_file http://download.bt.cn/install/public.sh -T 5; +fi +. $public_file + +download_Url=$NODE_URL + +Install_safelogin() +{ + mkdir -p /www/server/panel/plugin/safelogin + echo '正在安装脚本文件...' > $install_tmp + wget -O /www/server/panel/plugin/safelogin/safelogin_main.py $download_Url/install/lib/plugin/safelogin/safelogin_main.py -T 5 + wget -O /www/server/panel/plugin/safelogin/index.html $download_Url/install/lib/plugin/safelogin/index.html -T 5 + wget -O /www/server/panel/plugin/safelogin/info.json $download_Url/install/lib/plugin/safelogin/info.json -T 5 + wget -O /www/server/panel/plugin/safelogin/icon.png $download_Url/install/lib/plugin/safelogin/icon.png -T 5 + echo '安装完成' > $install_tmp + +} + +Uninstall_safelogin() +{ + chattr -i /www/server/panel/plugin/safelogin/token.pl + rm -f /www/server/panel/data/limitip.conf + sed -i "/ALL/d" /etc/hosts.deny + rm -rf /www/server/panel/plugin/safelogin +} + + +action=$1 +host=$2; +if [ "${1}" == 'install' ];then + Install_safelogin +else + Uninstall_safelogin +fi diff --git a/static/js/soft.js b/static/js/soft.js index ed76bba87..a88c7f6ff 100755 --- a/static/js/soft.js +++ b/static/js/soft.js @@ -1896,8 +1896,6 @@ function GetSList(isdisplay) { //+''+rdata.data[i].type+'' + '' + pps + '' + - '免费' + - '--' + '' + softPath + '' + '' + state + '' + '' + indexshow + '' +