From 6603e80a78ef7b8aa90bd3dce6e24e259f3f622a Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 17 Mar 2014 21:38:36 +0100 Subject: Fixed first bug in print_browser() in matters pertaining to func creat_folder. TODO: Get the links right after creating_folder(). --- www/functions/func_folder.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'www/functions') diff --git a/www/functions/func_folder.php b/www/functions/func_folder.php index 376cdd6..7a2233b 100644 --- a/www/functions/func_folder.php +++ b/www/functions/func_folder.php @@ -17,6 +17,8 @@ function create_folder($path, $new_folder_name, $share){ return MKDIR_OWNER; } +// echo "path: ".$path." file_id: ".$file_id." userid: ".$_SESSION['userid']." new_folder_name: ".$new_folder_name." share: ".$share."
"; exit; + if($db->exec(" BEGIN TRANSACTION; INSERT INTO files (id, parent, owner, name, folder, size, share, hash) VALUES (Null, " . $file_id . ", " . $_SESSION['userid'] . ", '" . SQLite3::escapeString($new_folder_name) . "', 'DIRECTORY', 0, '" . SQLite3::escapeString($share) . "', ''); -- cgit v1.2.3