Skip to content

Commit 899b3d2

Browse files
committed
file manager fixes
1 parent 9ce85c8 commit 899b3d2

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

web/css/styles.min.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2250,7 +2250,7 @@ div.l-content > div.l-separator:nth-of-type(4) {
22502250
height: 16px;
22512251
overflow: hidden;
22522252
padding-top: 6px;
2253-
width: 620px;
2253+
width: 593px;
22542254
}
22552255

22562256
.vst-ok {

web/edit/file/index.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
$panel = json_decode(implode('', $output), true);
1616
}
1717
*/
18+
19+
20+
1821
/*
1922
// Check user session
2023
if ((!isset($_SESSION['user'])) && (!defined('NO_AUTH_REQUIRED'))) {
@@ -24,6 +27,14 @@
2427
}
2528
*/
2629

30+
// Check module activation
31+
if (!$_SESSION['FILEMANAGER_KEY']) {
32+
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
33+
header("Location: /login/");
34+
exit;
35+
}
36+
37+
2738
?>
2839

2940
<title>Edit file <?= htmlspecialchars($_REQUEST['path']) ?></title>

web/templates/file_manager/main.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,13 @@
267267
var src = $(item).find('.source').val();
268268
src = $.parseJSON(src);
269269
var tab = FM.getTabLetter(FM.CURRENT_TAB);
270+
270271
if (FM.itemIsArchieve(src)) {
271-
$('.menu-'+tab+' .extract-btn').show();
272-
}
273-
else {
272+
if($('.menu-'+tab+' .archive.button').first().is(':visible'))
273+
$('.menu-'+tab+' .extract-btn').first().show();
274+
else
275+
$('.menu-'+tab+' .extract-btn.small').show();
276+
} else {
274277
$('.menu-'+tab+' .extract-btn').hide();
275278
}
276279
}

0 commit comments

Comments
 (0)