mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
file manager stuff
This commit is contained in:
parent
99a403a2ef
commit
9d2ebe561a
12 changed files with 419 additions and 95 deletions
|
@ -1,9 +1,17 @@
|
|||
<?php
|
||||
|
||||
session_start();
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT'] . "/inc/main.php");
|
||||
|
||||
|
||||
|
||||
|
||||
if ((!isset($_SESSION['FILEMANAGER_KEY'])) || (empty($_SESSION['FILEMANAGER_KEY']))) {
|
||||
header("Location: /filemanager-not-purchased/");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (empty($panel)) {
|
||||
$command = VESTA_CMD."v-list-user '".$user."' 'json'";
|
||||
exec ($command, $output, $return_var);
|
||||
|
@ -20,5 +28,6 @@ $GLOBAL_JS = '<script type="text/javascript">GLOBAL.START_DIR_A = "' . $path_a
|
|||
$GLOBAL_JS .= '<script type="text/javascript">GLOBAL.START_DIR_B = "' . $path_b . '";</script>';
|
||||
$GLOBAL_JS .= '<script type="text/javascript">GLOBAL.ROOT_DIR = "' . $panel[$user]['HOME'] . '";</script>';
|
||||
|
||||
|
||||
// Footer
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/file_manager/main.php');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/file_manager/main.php');
|
Loading…
Add table
Add a link
Reference in a new issue