F diff --git a/php/database.php b/php/database.php
--- a/php/database.php
+++ b/php/database.php
nodes.node_id=node_access.node_id
where nodes.node_id=:dir_id
");
+ $dir_prep->bindParam(':dir_id',$dir_id);
if($dir_prep->execute()==false)
{
error_log("could not exedude dir sql statement in create_file_node");
F diff --git a/php/register.php b/php/register.php
--- a/php/register.php
+++ b/php/register.php
}
- $_SESSION['username'] = $username;
header('Location: /');
?>
F diff --git a/php/upload.php b/php/upload.php
--- a/php/upload.php
+++ b/php/upload.php
require_once "database.php";
require_once "configuration.php";
+ session_start();
echo 1;
if (!isset( $_POST["filename"]) || !isset($_FILES["the_file"]))
{
$file=$_FILES["the_file"];
$filename=$_POST["filename"];
+ $homedir=$_SESSION['user_object'];
echo 3;
- $codename=$database->create_file_node($filename);
+ $codename=$database->create_file_node($filename,"",$_SESSION['user_object']->home_directory);
echo $codename;
if($codename=="error")
{