F diff --git a/php/database.php b/php/database.php --- a/php/database.php +++ b/php/database.php}$nod=$prep->fetch(PDO::FETCH_ASSOC);$ret=new Node();+$ret->node_id=$nod["node_id"];$ret->is_directory=$nod["is_directory"];$ret->relative_path=$nod["relative_path"];F diff --git a/php/node.php b/php/node.php --- a/php/node.php +++ b/php/node.php}if($use_https){- return "https://".$domain_name."/share?file=".$code;+ return "https://".$domain_name."/php/share.php?file=".$code;}else{- return "http://".$domain_name."/share?file=".$code;+ return "http://".$domain_name."/php/share.php?file=".$code;}}F diff --git a/php/share.php b/php/share.php --- a/php/share.php +++ b/php/share.phpexit(0);}else if($_SERVER["REQUEST_METHOD"]== "GET"){- $code=$_GET["code"];+ $code=$_GET["file"];$file_id=$database->get_node_with_code($code);if($file_id==NULL){exit(1);}else{- header("Content-type: $node[type]");- readfile("$storage_root/$node[code]");+ header("Content-type: $node->type");+ readfile("$storage_root/$node->code");}}