diff options
author | adam <adam@> | 2021-02-12 12:14:00 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-12 12:14:00 +0200 |
commit | 9102b9017d978be8c119a3ac8e79c661f2dad6b1 (patch) | |
tree | 0c822b20ac56ad5ac4b5eccf294f874fe6b91bf8 /php/node.php | |
parent | f2bf4d23d5be9b4d24a830ddaecabe2e87a0e93c (diff) | |
download | fileup-9102b9017d978be8c119a3ac8e79c661f2dad6b1.tar.gz |
galin
Diffstat (limited to 'php/node.php')
-rw-r--r-- | php/node.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/php/node.php b/php/node.php new file mode 100644 index 0000000..b6c3428 --- /dev/null +++ b/php/node.php @@ -0,0 +1,26 @@ +<?php +require_once "database.php"; + + class Current_Directory + { + public $node_id; + /*an array of the dir_ids taken to reach here*/ + public $path; + + function __construct($user_id) + { + $this->dir_id=get_home_id($user_id); + $this->path=[$dir_id]; + } + function change_directory($directory_id):bool + { + global $database; + if(!$database->is_directory($directory_id)) + { + return false; + } + + } + } + +?> |