mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-09-10 11:37:38 +02:00
v6.8.8
1. Add user login function. 2. Add the first professional plug-in Nginx WAF. 3. Release a new version of the online editor. 4. Fixed some bugs.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
|
||||
#coding: utf-8
|
||||
import os,sys
|
||||
sys.path.insert(0,"/www/server/panel/class/")
|
||||
try:
|
||||
import send_to_user
|
||||
msg=send_to_user.send_to_user()
|
||||
msg.main()
|
||||
except:
|
||||
pass
|
||||
@@ -0,0 +1,13 @@
|
||||
#coding: utf-8
|
||||
import os,sys,time
|
||||
os.chdir('/www/server/panel/')
|
||||
sys.path.insert(0,"class/")
|
||||
import setPanelLets,public
|
||||
from json import loads
|
||||
lets_info = public.readFile("/www/server/panel/ssl/lets.info")
|
||||
if lets_info:
|
||||
lets_info = loads(lets_info)
|
||||
if setPanelLets.setPanelLets().check_cert_update(lets_info['domain']):
|
||||
strTime = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(int(time.time())))
|
||||
public.writeFile("/tmp/panelSSL.pl","{} Panel certificate updated successfully\n".format(strTime),"a+")
|
||||
public.writeFile('/www/server/panel/data/reload.pl',"1")
|
||||
@@ -0,0 +1,18 @@
|
||||
#coding: utf-8
|
||||
import os,sys,time
|
||||
os.chdir('/www/server/panel/')
|
||||
sys.path.insert(0,"class/")
|
||||
import public
|
||||
oldEdate = public.readFile('data/edate.pl')
|
||||
if not oldEdate: oldEdate = '0000-00-00'
|
||||
mEdate = time.strftime('%Y-%m-%d',time.localtime())
|
||||
edateSites = public.M('sites').where('edate>? AND edate<? AND (status=? OR status=?)',('0000-00-00',mEdate,1,u'正在运行')).field('id,name').select()
|
||||
import panelSite
|
||||
siteObject = panelSite.panelSite()
|
||||
for site in edateSites:
|
||||
get = public.dict_obj()
|
||||
get.id = site['id']
|
||||
get.name = site['name']
|
||||
siteObject.SiteStop(get)
|
||||
oldEdate = mEdate
|
||||
public.writeFile('data/edate.pl',mEdate)
|
||||
Reference in New Issue
Block a user