From 67e117d18f9ed0db28d31a03da42bb7b1050d33e Mon Sep 17 00:00:00 2001 From: Horus3 Date: Tue, 11 Mar 2014 17:31:52 +0100 Subject: Upload checks if file already exist. If true, it just do the database linking. --- www/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'www/functions.php') diff --git a/www/functions.php b/www/functions.php index 3e29ffd..091a1a1 100644 --- a/www/functions.php +++ b/www/functions.php @@ -221,7 +221,7 @@ function register($db){ if($db->exec(" BEGIN TRANSACTION; UPDATE user SET name='$safe_name', salt='$salt', password='$hash_password', invites=5, status=1, register=(SELECT datetime()) WHERE id=$id; - INSERT INTO files (id, parent, owner, name, folder, mime, size, share, extra) VALUES (NULL, 0, $id, '/', 'DIRECTORY', NULL, NULL, 'PUBLIC', NULL); + INSERT INTO files (id, parent, owner, name, folder, mime, size, share, size, hash) VALUES (NULL, 0, $id, '/', 'DIRECTORY', NULL, NULL, 'PUBLIC', 0, ''); COMMIT;") ){ $_SESSION["login"] = true; -- cgit v1.2.3