mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-08-17 21:25:47 +02:00
1. Added: USDT payment method (please contact customer service via email for payment) 2. Added: Russian language support 3. Added: Domains - Provider List added PorkBun, NameSilo 4. Added: Domains - SSL Certificate - Added Business Certificate 5. Added: Domains - SSL Certificate - Apply for SSL added file verification 6. Added: Setting - Panel SSL added file verification 7. Added: WP Toolkit - Create site with auto DNS resolution 8. Added: FTP - Log and Log analytics support for Ubuntu and Debian 9. Added: Website/WP Toolkit option to choose whether to create default HTML file when adding sites 10. Added: Automatic Daemon tasks: Nginx, Apache, FTP, Redis, MySQL, Memcached, etc. 11. Added: Brute force protection compatible with 2 log formats 12. Optimized: Brute force protection history records now display in reverse chronological order 13. Optimized: Brute force protection settings added unblock time notification for IP blocking configuration 14. Optimized: Website/WP Toolkit SSL interface 15. Optimized: Cron automatic backup with retry mechanism for remote uploads 16. Optimized: Pay interface 17. Fixed: Temporary login Fixed blank page issue 18. Fixed: Mail Server Fixed missing MX record auto-configuration issue 19. Fixed: Node projects occasionally failing to retrieve running status 20. Fixed: Issue where Account could not be confirmed after editing in some cases 21. Fixed #225
42 lines
1.0 KiB
Python
42 lines
1.0 KiB
Python
# coding: utf-8
|
|
import json
|
|
import sys, os, time
|
|
|
|
os.chdir('/www/server/panel/')
|
|
sys.path.insert(0, "class/")
|
|
sys.path.insert(0, "/www/server/panel/")
|
|
import public
|
|
import http_requests
|
|
|
|
http_requests.DEFAULT_TYPE = 'src'
|
|
os.environ['BT_TASK'] = '1'
|
|
|
|
try:
|
|
import panelPush
|
|
import threading
|
|
|
|
push = panelPush.panelPush()
|
|
push.start()
|
|
|
|
# msg bind check
|
|
flag = False
|
|
sender = os.path.join(public.get_panel_path(), "data/mod_push_data/sender.json")
|
|
if os.path.exists(sender):
|
|
sender_info = public.readFile(sender)
|
|
try:
|
|
sender_info = json.loads(sender_info)
|
|
except:
|
|
pass
|
|
if sender_info and isinstance(sender_info, list):
|
|
for send in sender_info:
|
|
if send.get("data") != {}:
|
|
flag = True # has bind alarm
|
|
break
|
|
if flag is True:
|
|
from mod.base.push_mod import PushSystem
|
|
PushSystem().run()
|
|
|
|
except Exception as e:
|
|
pass
|
|
os.system("echo no,{},{} > /tmp/push.pl".format(time.time(), e))
|