Skip to content

Commit 3faf653

Browse files
Needs testing
1 parent 5112598 commit 3faf653

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

web/edit/file/index.php

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
33
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
44
$user = $_SESSION['user'];
55

6-
// Check module activation
7-
if (!$_SESSION['FILEMANAGER_KEY']) {
8-
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
9-
header("Location: /login/");
10-
exit;
11-
}
12-
136
// Check login_as feature
147
if (($_SESSION['user'] == 'admin') && (!empty($_SESSION['look']))) {
158
$user=$_SESSION['look'];
@@ -21,7 +14,6 @@
2114
<title>Edit file <?= htmlspecialchars($_REQUEST['path']) ?></title>
2215
<meta charset="utf-8" />
2316

24-
<link href="/css/file_manager_editor.css" type="text/css" rel="stylesheet">
2517
<script src="/js/cheef-editor/jquery/jquery-1.8.3.min.js"></script>
2618
<script src="/js/cheef-editor/ace/ace.js"></script>
2719
<script src="/js/cheef-editor/ace/theme-twilight.js"></script>
@@ -95,27 +87,6 @@
9587
action: 'backup',
9688
path: '<?= $path ?>'
9789
};
98-
99-
$.ajax({url: "/file_manager/fm_api.php",
100-
method: "POST",
101-
data: params,
102-
dataType: 'JSON',
103-
success: function(reply) {
104-
var fadeTimeout = 3000;
105-
if (reply.result) {
106-
$('#message').text('File backed up as ' + reply.filename);
107-
clearTimeout(window.msg_tmt);
108-
$('#message').show();
109-
window.msg_tmt = setTimeout(function() {$('#message').fadeOut();}, fadeTimeout);
110-
}
111-
else {
112-
$('#error-message').text(reply.message);
113-
clearTimeout(window.errmsg_tmt);
114-
$('#error-message').show();
115-
window.errmsg_tmt = setTimeout(function() {$('#error-message').fadeOut();}, fadeTimeout);
116-
}
117-
}
118-
});
11990
}
12091

12192
$('#do-backup').on('click', function(evt) {

0 commit comments

Comments
 (0)