From 15a3d9486ec3c7761e6bd6d12f6f0d46b8b4277c Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Wed, 9 Sep 2015 16:50:23 +0300 Subject: [PATCH] list dir --- bin/v-list-fs-directory | 3 ++- web/list/directory/index.php | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 web/list/directory/index.php diff --git a/bin/v-list-fs-directory b/bin/v-list-fs-directory index 05b7e5210..65102888d 100755 --- a/bin/v-list-fs-directory +++ b/bin/v-list-fs-directory @@ -39,7 +39,8 @@ fi # Listing directory sudo -u $user find "$path" -maxdepth 1 \ - -printf "%y|%m|%TY-%Tm-%Td|%TH:%TM:%TS|%u|%g|%s|%P\n" 2>/dev/null + -printf "%y|%m|%TY-%Tm-%Td|%TH:%TM|%u|%g|%s|%P\n" 2>/dev/null +# -printf "%y|%m|%TY-%Tm-%Td|%TH:%TM:%TS|%u|%g|%s|%P\n" 2>/dev/null # Exiting exit $? diff --git a/web/list/directory/index.php b/web/list/directory/index.php new file mode 100644 index 000000000..4c8a0795b --- /dev/null +++ b/web/list/directory/index.php @@ -0,0 +1,24 @@ + 0 ) { + header("Location: /error/"); + exit; + } + $panel = json_decode(implode('', $output), true); +} + +$path_a = !empty($_REQUEST['dir_a']) ? $_REQUEST['dir_a'] : ''; +$path_b = !empty($_REQUEST['dir_b']) ? $_REQUEST['dir_b'] : ''; +$GLOBAL_JS = ''; +$GLOBAL_JS .= ''; +$GLOBAL_JS .= ''; + +// Footer +include($_SERVER['DOCUMENT_ROOT'].'/templates/file_manager/main.php');