aboutsummaryrefslogtreecommitdiffstats
path: root/php/readdir.php
diff options
context:
space:
mode:
authoradam <adam@>2021-02-12 22:56:26 +0200
committeradam <adam@>2021-02-12 22:56:26 +0200
commit80cd845b8177730a6dae27e847dc8951af3383de (patch)
tree6b730d90c03b4583fd12e4cb744379ddaf76760e /php/readdir.php
parent61ce3ca3170e337edb2d276e20ff77671bab01a9 (diff)
downloadfileup-80cd845b8177730a6dae27e847dc8951af3383de.tar.gz
directory duplication error dealt with
Diffstat (limited to 'php/readdir.php')
-rw-r--r--php/readdir.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/php/readdir.php b/php/readdir.php
index 04587ee..8194580 100644
--- a/php/readdir.php
+++ b/php/readdir.php
@@ -2,9 +2,10 @@
require_once "node.php";
session_start();
$user=$_SESSION['user_object'];
+ $path=$_POST['path'];
//echo '[ { "name": "file1.txt", "mimetype": "text/plain", "is_directory": false }, { "name": "file2.pdf", "mimetype": "application/pdf", "is_directory": false }, { "name": "dir", "mimetype": "", "is_directory": true } ] ';
- $ret=get_directory_contents("/",$user);
+ $ret=get_directory_contents($path,$user);
$json=json_encode($ret);
echo $json;
?>