aboutsummaryrefslogtreecommitdiffstats
path: root/php/readdir.php
diff options
context:
space:
mode:
authoradam <adam@>2021-02-12 19:09:42 +0200
committeradam <adam@>2021-02-12 19:09:42 +0200
commitb1689d03b0ac8a601f3ff4a225729d1e15b317ba (patch)
tree81476c675a5787a071a8a854aebb58293b6496b2 /php/readdir.php
parent705f95545b1f6520ce1fb9c39c6f826484c780bf (diff)
downloadfileup-b1689d03b0ac8a601f3ff4a225729d1e15b317ba.tar.gz
almost there
Diffstat (limited to 'php/readdir.php')
-rw-r--r--php/readdir.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/php/readdir.php b/php/readdir.php
index b6a1916..b913cb1 100644
--- a/php/readdir.php
+++ b/php/readdir.php
@@ -1,3 +1,9 @@
<?php
-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 } ] ';
+ require_once "node.php";
+ session_start();
+ $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 } ] ';
+ echo get_directory("/",$user);
+ error_log(print_r(get_directory("/",$user)).gettype(get_directory("/",$user)));
?>