aboutsummaryrefslogtreecommitdiffstats
path: root/php/readdir.php
diff options
context:
space:
mode:
authoradam <adam@>2021-02-12 22:35:02 +0200
committeradam <adam@>2021-02-12 22:35:02 +0200
commitb79da4bf1b39d6b203a083c7bcbef106dff06eaa (patch)
tree29db21995263495b9614f00ee1dccca4be76adaa /php/readdir.php
parent022e478554fdb7110f3029fab49f706ba1d893ad (diff)
downloadfileup-b79da4bf1b39d6b203a083c7bcbef106dff06eaa.tar.gz
mkdir
Diffstat (limited to 'php/readdir.php')
-rw-r--r--php/readdir.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/php/readdir.php b/php/readdir.php
index e46d4ad..04587ee 100644
--- a/php/readdir.php
+++ b/php/readdir.php
@@ -1,10 +1,10 @@
<?php
require_once "node.php";
session_start();
- $user=$_SESSION["user_object"];
+ $user=$_SESSION['user_object'];
//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("/",$user);
+ $ret=get_directory_contents("/",$user);
$json=json_encode($ret);
echo $json;
?>