mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 13:24:25 -07:00
file manager fixes
This commit is contained in:
parent
9ce85c8bc6
commit
899b3d282b
3 changed files with 18 additions and 4 deletions
2
web/css/styles.min.css
vendored
2
web/css/styles.min.css
vendored
|
@ -2250,7 +2250,7 @@ div.l-content > div.l-separator:nth-of-type(4) {
|
||||||
height: 16px;
|
height: 16px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding-top: 6px;
|
padding-top: 6px;
|
||||||
width: 620px;
|
width: 593px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vst-ok {
|
.vst-ok {
|
||||||
|
|
|
@ -15,6 +15,9 @@ if (empty($panel)) {
|
||||||
$panel = json_decode(implode('', $output), true);
|
$panel = json_decode(implode('', $output), true);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// Check user session
|
// Check user session
|
||||||
if ((!isset($_SESSION['user'])) && (!defined('NO_AUTH_REQUIRED'))) {
|
if ((!isset($_SESSION['user'])) && (!defined('NO_AUTH_REQUIRED'))) {
|
||||||
|
@ -24,6 +27,14 @@ if ((!isset($_SESSION['user'])) && (!defined('NO_AUTH_REQUIRED'))) {
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Check module activation
|
||||||
|
if (!$_SESSION['FILEMANAGER_KEY']) {
|
||||||
|
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
|
||||||
|
header("Location: /login/");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<title>Edit file <?= htmlspecialchars($_REQUEST['path']) ?></title>
|
<title>Edit file <?= htmlspecialchars($_REQUEST['path']) ?></title>
|
||||||
|
|
|
@ -267,10 +267,13 @@
|
||||||
var src = $(item).find('.source').val();
|
var src = $(item).find('.source').val();
|
||||||
src = $.parseJSON(src);
|
src = $.parseJSON(src);
|
||||||
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||||
|
|
||||||
if (FM.itemIsArchieve(src)) {
|
if (FM.itemIsArchieve(src)) {
|
||||||
$('.menu-'+tab+' .extract-btn').show();
|
if($('.menu-'+tab+' .archive.button').first().is(':visible'))
|
||||||
}
|
$('.menu-'+tab+' .extract-btn').first().show();
|
||||||
else {
|
else
|
||||||
|
$('.menu-'+tab+' .extract-btn.small').show();
|
||||||
|
} else {
|
||||||
$('.menu-'+tab+' .extract-btn').hide();
|
$('.menu-'+tab+' .extract-btn').hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue