mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-07 08:16:09 +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:
@@ -1285,28 +1285,36 @@ app.controller('modSecRulesPack', function ($scope, $http, $timeout, $window) {
|
||||
if (response.data.owaspInstalled === 1) {
|
||||
$('#owaspInstalled').bootstrapToggle('on');
|
||||
$scope.owaspDisable = false;
|
||||
owaspInstalled = true;
|
||||
} else {
|
||||
$('#owaspInstalled').bootstrapToggle('off');
|
||||
$scope.owaspDisable = true;
|
||||
owaspInstalled = false;
|
||||
}
|
||||
if (response.data.comodoInstalled === 1) {
|
||||
$('#comodoInstalled').bootstrapToggle('on');
|
||||
$scope.comodoDisable = false;
|
||||
comodoInstalled = true;
|
||||
} else {
|
||||
$('#comodoInstalled').bootstrapToggle('off');
|
||||
$scope.comodoDisable = true;
|
||||
comodoInstalled = false;
|
||||
}
|
||||
} else {
|
||||
|
||||
if (response.data.owaspInstalled === 1) {
|
||||
$scope.owaspDisable = false;
|
||||
owaspInstalled = true;
|
||||
} else {
|
||||
$scope.owaspDisable = true;
|
||||
owaspInstalled = false;
|
||||
}
|
||||
if (response.data.comodoInstalled === 1) {
|
||||
$scope.comodoDisable = false;
|
||||
comodoInstalled = true;
|
||||
} else {
|
||||
$scope.comodoDisable = true;
|
||||
comodoInstalled = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user