diff options
author | adam <adam@> | 2021-02-12 19:09:42 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-12 19:09:42 +0200 |
commit | b1689d03b0ac8a601f3ff4a225729d1e15b317ba (patch) | |
tree | 81476c675a5787a071a8a854aebb58293b6496b2 /php/readdir.php | |
parent | 705f95545b1f6520ce1fb9c39c6f826484c780bf (diff) | |
download | fileup-b1689d03b0ac8a601f3ff4a225729d1e15b317ba.tar.gz |
almost there
Diffstat (limited to 'php/readdir.php')
-rw-r--r-- | php/readdir.php | 8 |
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))); ?> |