mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
FileManager latest changes
This commit is contained in:
parent
5dbb80aaf3
commit
e02e470d34
5 changed files with 16 additions and 19 deletions
|
@ -2,7 +2,11 @@
|
|||
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Check login_as feature
|
||||
if ((!isset($_SESSION['FILEMANAGER_KEY'])) || (empty($_SESSION['FILEMANAGER_KEY']))) {
|
||||
header("Location: /login/");
|
||||
exit;
|
||||
}
|
||||
|
||||
$user = $_SESSION['user'];
|
||||
if (($_SESSION['user'] == 'admin') && (!empty($_SESSION['look']))) {
|
||||
$user=$_SESSION['look'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue