mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-09-22 09:24:53 +02:00
Update to 7.7.0
Since version 7.7.0, we recommend yours update python to 3.12. [+] Using nginx technology to load static files improves access speed [+] Refactor homepage, website, FTP, and database using vue3 [+] Table loading changed to skeleton screen [+] Add Website statistics-v2 professional plug-in [+] Add Home page - top 5 resource occupancy [+] Add protection for Files management (requires Tamper-proof for Enterprise 3.7) [+] Website, FTP, Databases page add program status [+] Add FTP log analysis (only supports Centos) [+] Add password-free login to phpMyAdmin [+] Add Proxy Project in Website (Supported when web service uses Nginx) [+] Add WP Toolkit (Pro version only) [+] Redesigned Docker module [+] Add WP Toolkit Protection [+] Add WP Toolkit Backup and Restore [+] Add WP Toolkit Migrated [+] Add WP Toolkit Clone site (supports new domain and subdomain) [+] Add WP Toolkit Create site from backup of other panel [+] Add WP Toolkit support for Cron automatic backup (only save Local disk) [+] Add WP Toolkit operation log [+] Add Integrity check for WP Toolkit [+] Add WP Toolkit plug-in management and themes management [*] Optimize phpMyAdmin formula access method [*] Optimize Home page PHP display problem [*] Optimize jump to the login interface after the login expires [*] Optimize automatic renewal of SSL at some times [*] Optimize Let's Encrypt to increase application success rate [-] Fix Logs Audit cannot be opened [-] Fix apache URL rewrite issue [-] Fix phpmyadmin installation problem [-] Fix the problem that some servers cannot install software [-] Fix upload file error [-] Fix left menu hiding problem [-] Fix aaPanel Mobile QR code display problem [-] Fix problem that third-party plug-ins are not displayed in the App Store [-] Fix issue where the menu bar is blank when opening new tabs [-] Fixed panel not being accessible in some cases [-] Fix the issue where Curl warning caused the inability to apply for SSL [-] Fix Quota issues for Website, FTP, Databases [-] Fix file interface display problem on mobile terminal
This commit is contained in:
+18
-15
@@ -1,10 +1,10 @@
|
||||
#coding: utf-8
|
||||
# +-------------------------------------------------------------------
|
||||
# | 宝塔Linux面板 x3
|
||||
# | aaPanel x3
|
||||
# +-------------------------------------------------------------------
|
||||
# | Copyright (c) 2015-2016 宝塔软件(http://bt.cn) All rights reserved.
|
||||
# | Copyright (c) 2015-2016 aaPanel(www.aapanel.com) All rights reserved.
|
||||
# +-------------------------------------------------------------------
|
||||
# | Author: hwliang <hwl@bt.cn>
|
||||
# | Author: hwliang <hwl@aapanel.com>
|
||||
# +-------------------------------------------------------------------
|
||||
import psutil,time,os,public,re,sys
|
||||
try:
|
||||
@@ -61,7 +61,7 @@ class system:
|
||||
try:
|
||||
if os.path.exists(configFile):
|
||||
conf = public.readFile(configFile)
|
||||
rep = "listen\s+([0-9]+)\s*;"
|
||||
rep = r"listen\s+([0-9]+)\s*;"
|
||||
rtmp = re.search(rep,conf)
|
||||
if rtmp:
|
||||
phpport = rtmp.groups()[0]
|
||||
@@ -70,7 +70,7 @@ class system:
|
||||
if conf.find(self.setupPath + '/stop') == -1: pstatus = True
|
||||
configFile = self.setupPath + '/nginx/conf/enable-php.conf'
|
||||
conf = public.readFile(configFile)
|
||||
rep = "php-cgi-([0-9]+)\.sock"
|
||||
rep = r"php-cgi-([0-9]+)\.sock"
|
||||
rtmp = re.search(rep,conf)
|
||||
if rtmp:
|
||||
phpversion = rtmp.groups()[0]
|
||||
@@ -85,11 +85,11 @@ class system:
|
||||
try:
|
||||
if os.path.exists(configFile):
|
||||
conf = public.readFile(configFile)
|
||||
rep = "php-cgi-([0-9]+)\.sock"
|
||||
rep = r"php-cgi-([0-9]+)\.sock"
|
||||
rtmp = re.search(rep,conf)
|
||||
if rtmp:
|
||||
phpversion = rtmp.groups()[0]
|
||||
rep = "Listen\s+([0-9]+)\s*\n"
|
||||
rep = "Listen\\s+([0-9]+)\\s*\n"
|
||||
rtmp = re.search(rep,conf)
|
||||
if rtmp:
|
||||
phpport = rtmp.groups()[0]
|
||||
@@ -105,12 +105,12 @@ class system:
|
||||
try:
|
||||
if os.path.exists(configFile):
|
||||
conf = public.readFile('/www/server/panel/vhost/openlitespeed/detail/phpmyadmin.conf')
|
||||
rep = "/usr/local/lsws/lsphp(\d+)/bin/lsphp"
|
||||
rep = r"/usr/local/lsws/lsphp(\d+)/bin/lsphp"
|
||||
rtmp = re.search(rep,conf)
|
||||
if rtmp:
|
||||
phpversion = rtmp.groups()[0]
|
||||
conf = public.readFile('/www/server/panel/vhost/openlitespeed/listen/888.conf')
|
||||
rep = "address\s+\*\:(\d+)"
|
||||
rep = r"address\s+\*\:(\d+)"
|
||||
rtmp = re.search(rep,conf)
|
||||
if rtmp:
|
||||
phpport = rtmp.groups()[0]
|
||||
@@ -206,13 +206,13 @@ class system:
|
||||
phpfpm = public.readFile(file)
|
||||
data = {}
|
||||
try:
|
||||
rep = "upload_max_filesize\s*=\s*([0-9]+)M"
|
||||
rep = r"upload_max_filesize\s*=\s*([0-9]+)M"
|
||||
tmp = re.search(rep,phpini).groups()
|
||||
data['max'] = tmp[0]
|
||||
except:
|
||||
data['max'] = '50'
|
||||
try:
|
||||
rep = "request_terminate_timeout\s*=\s*([0-9]+)\n"
|
||||
rep = "request_terminate_timeout\\s*=\\s*([0-9]+)\n"
|
||||
tmp = re.search(rep,phpfpm).groups()
|
||||
data['maxTime'] = tmp[0]
|
||||
except:
|
||||
@@ -564,6 +564,7 @@ class system:
|
||||
networkInfo['downPackets'] = 0
|
||||
networkInfo['upPackets'] = 0
|
||||
networkIo_list = psutil.net_io_counters(pernic = True)
|
||||
|
||||
for net_key in networkIo_list.keys():
|
||||
networkIo = networkIo_list[net_key][:4]
|
||||
up_key = "{}_up".format(net_key)
|
||||
@@ -623,7 +624,9 @@ class system:
|
||||
networkInfo['database_total'] = public.M('databases').count()
|
||||
networkInfo['system'] = self.GetSystemVersion()
|
||||
networkInfo['installed'] = self.CheckInstalled()
|
||||
|
||||
import panelSSL
|
||||
|
||||
networkInfo['user_info'] = panelSSL.panelSSL().GetUserInfo(None)
|
||||
networkInfo['up'] = round(float(networkInfo['up']),2)
|
||||
networkInfo['down'] = round(float(networkInfo['down']),2)
|
||||
@@ -683,7 +686,7 @@ class system:
|
||||
#取网络流量信息
|
||||
import time;
|
||||
pnet = public.readFile('/proc/net/dev')
|
||||
rep = '([^\s]+):[\s]{0,}(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)'
|
||||
rep = r'([^\s]+):[\s]{0,}(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)'
|
||||
pnetall = re.findall(rep,pnet)
|
||||
networkInfo = {}
|
||||
networkInfo['upTotal'] = networkInfo['downTotal'] = networkInfo['up'] = networkInfo['down'] = networkInfo['downPackets'] = networkInfo['upPackets'] = 0
|
||||
@@ -777,7 +780,7 @@ class system:
|
||||
if not os.path.exists(mypath): return False
|
||||
public.set_mode(mypath,644)
|
||||
mycnf = public.readFile(mypath)
|
||||
tmp = re.findall('datadir\s*=\s*(.+)',mycnf)
|
||||
tmp = re.findall(r'datadir\s*=\s*(.+)',mycnf)
|
||||
if not tmp: return False
|
||||
datadir = tmp[0]
|
||||
|
||||
@@ -988,12 +991,12 @@ class system:
|
||||
#修复面板
|
||||
def RepPanel(self,get):
|
||||
public.writeFile('data/js_random.pl','1')
|
||||
public.ExecShell("wget --no-check-certificate -O update.sh " + public.get_url() + "/install/update6_en.sh && bash update.sh")
|
||||
public.ExecShell("wget --no-check-certificate -O update.sh " + public.get_url() + "/install/update_7.x_en.sh && bash update.sh")
|
||||
self.ReWeb(None)
|
||||
return True
|
||||
|
||||
#升级到专业版
|
||||
def UpdatePro(self,get):
|
||||
public.ExecShell("wget --no-check-certificate -O update.sh " + public.get_url() + "/install/update6_en.sh && bash update.sh")
|
||||
public.ExecShell("wget --no-check-certificate -O update.sh " + public.get_url() + "/install/update_7.x_en.sh && bash update.sh")
|
||||
self.ReWeb(None)
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user