diff options
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))); ?> |