mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-09 16:15:30 +02:00
Implement .htaccess feature banner and extraction support in file manager
- Added a new fixed position banner in the index.html to announce .htaccess support, including styling and functionality for showing and dismissing the notification. - Enhanced file manager to support extraction of 7z and rar file formats, with appropriate command handling in filemanager.py. - Updated JavaScript files to determine extraction types based on file extensions, ensuring compatibility with new formats. - Modified HTML templates to include options for 7z and rar compression types in the user interface. https://github.com/usmannasir/cyberpanel/issues/1617#issue-3727006951 These changes improve user experience by providing clear notifications and expanding file management capabilities within CyberPanel.
This commit is contained in:
@@ -2563,11 +2563,12 @@ Require valid-user
|
||||
childDomains = []
|
||||
|
||||
for web in websites:
|
||||
for child in web.childdomains_set.filter(alais=0):
|
||||
if child.domain == f'mail.{web.domain}':
|
||||
pass
|
||||
else:
|
||||
childDomains.append(child)
|
||||
for child in web.childdomains_set.all():
|
||||
if child.alais == 0:
|
||||
if child.domain == f'mail.{web.domain}':
|
||||
pass
|
||||
else:
|
||||
childDomains.append(child)
|
||||
|
||||
pagination = self.getPagination(len(childDomains), recordsToShow)
|
||||
json_data = self.findChildsListJson(childDomains[finalPageNumber:endPageNumber])
|
||||
@@ -2577,6 +2578,8 @@ Require valid-user
|
||||
final_json = json.dumps(final_dic)
|
||||
return HttpResponse(final_json)
|
||||
except BaseException as msg:
|
||||
import traceback
|
||||
logging.CyberCPLogFileWriter.writeToFile(f"fetchChildDomainsMain error for userID {userID}: {str(msg)}\n{traceback.format_exc()}")
|
||||
dic = {'status': 1, 'listWebSiteStatus': 0, 'error_message': str(msg)}
|
||||
json_data = json.dumps(dic)
|
||||
return HttpResponse(json_data)
|
||||
|
||||
Reference in New Issue
Block a user