F diff --git a/php/configuration.php b/php/configuration.php --- a/php/configuration.php +++ b/php/configuration.php$database_username="outsider";$database_password="parola123";$database_location="localhost";-- $storage_root = "/srv/apache/testing/project/files/";+ /*storage root must be in the webroot*/+ $storage_root = "/srv/apache/testing/project/files/";}F diff --git a/php/node.php b/php/node.php --- a/php/node.php +++ b/php/node.php$this->node_id=$node_id;}}- class Current_Directory++ class Current_Directory extends Node{/*an array of the dir_ids taken to reach here*/public $path;F diff --git a/php/readdir.php b/php/readdir.php new file mode 100644 --- /dev/null +++ b/php/readdir.phpF diff --git a/php/upload.php b/php/upload.php --- a/php/upload.php +++ b/php/upload.phpexit(1);}+ echo "adsf";+$file = $_FILES["the_file"];$filename= $_POST["filename"];F diff --git a/sql/fileshare.sql b/sql/fileshare.sql --- a/sql/fileshare.sql +++ b/sql/fileshare.sql/*BEWARE!*/- drop table if exists node_access;drop table if exists users;- drop table if exists node_links;drop table if exists nodes;+ drop table if exists node_access;+ drop table if exists node_links;is_directory boolean default false,relative_path varchar(500) not null,type varchar(20) not null default 'data',- name varchar(100) not null default 'no name',note varchar(200) not null default "",code varchar(100) not null default "error",primary key (node_id)foreign key (node_id) references nodes(node_id),foreign key (user_id) references users(user_id));-+ /*we can name a node in many different ways */create table node_links (directory_id int not null,node_id int not null,+ name varchar(100) not null default 'no name',check (directory_id != node_id),foreign key (directory_id) references nodes(node_id),foreign key (node_id) references nodes(node_id)