file manager fixes

This commit is contained in:
Serghey Rodin 2015-11-03 01:07:12 +02:00
commit 899b3d282b
3 changed files with 18 additions and 4 deletions

View file

@ -15,6 +15,9 @@ if (empty($panel)) {
$panel = json_decode(implode('', $output), true);
}
*/
/*
// Check user session
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>