|
1 | 1 | <?php |
2 | 2 |
|
3 | 3 | /** |
4 | | - * The Kinsmen File Manager v2.2.1 |
| 4 | + * The Kinsmen File Manager v2.2.2 |
5 | 5 | * |
6 | 6 | * A comprehensive, modern file manager with cPanel styling and all essential features: |
7 | 7 | * - File Tree Navigation |
|
11 | 11 | * - Copy/Move operations |
12 | 12 | * - Compression (zip, tar, gzip) |
13 | 13 | * - Extraction (zip, tar, gzip) |
14 | | - * - Deletion confirmation |
| 14 | + * - Deletion confirmations |
15 | 15 | * - Rename operations |
16 | 16 | * - Permission management |
17 | 17 | * - Drag and drop support |
18 | 18 | * - Multi-select operations |
19 | 19 | * - Sorting and filtering |
20 | 20 | */ |
21 | 21 |
|
22 | | -$username = ""; // username for dir listing |
23 | | -$root_path = ""; // root dir |
24 | | - |
| 22 | +$username = "joe"; // username |
| 23 | +$root_path = "/home/joe"; // root path |
25 | 24 |
|
26 | 25 | // Configuration |
27 | 26 | $config = [ |
@@ -2870,7 +2869,7 @@ function showAlert(title, message) { |
2870 | 2869 | position: "right", |
2871 | 2870 | stopOnFocus: true, |
2872 | 2871 | style: { |
2873 | | - background: title === 'Success' ? "#28a745" : "#dc3545", |
| 2872 | + background: title === 'Error' ? "#dc3545" : "#28a745", |
2874 | 2873 | width: "300px", |
2875 | 2874 | marginRight: "20px", |
2876 | 2875 | }, |
@@ -3316,7 +3315,7 @@ function uploadFiles(files) { |
3316 | 3315 | const response = JSON.parse(xhr.responseText); |
3317 | 3316 | if (response.status === 'success' || response.status === 'partial') { |
3318 | 3317 | loadFileList(); |
3319 | | - showAlert('Upload Complete', response.message); |
| 3318 | + showAlert('Success', response.message); |
3320 | 3319 | } else { |
3321 | 3320 | showAlert('Error', response.message || 'Unknown error occurred during upload'); |
3322 | 3321 | } |
|
0 commit comments