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/browse.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'www/browse.php') diff --git a/www/browse.php b/www/browse.php index 468401a..7594cd4 100644 --- a/www/browse.php +++ b/www/browse.php @@ -3,12 +3,13 @@ function print_browser($content){ - require_once("include.php"); +// require_once("include.php"); if($_SERVER['REQUEST_METHOD'] == 'POST'){ //echo "created_folder : ". $_POST["foldername"] . " in ". $_GET["folder"]; - create_folder("/".$_GET["folder"], $_POST["foldername"], /*$_POST["public"]?*/"PUBLIC"/*:"PRIVATE"*/); - browse(collect_content($GLOBALS["db"], $_GET["name"] , $_GET["folder"])); + + create_folder($_POST["path"], $_POST["foldername"], /*$_POST["public"]?*/"PUBLIC"/*:"PRIVATE"*/); + browse(collect_content($GLOBALS["db"], $_SESSION["username"] , $_POST["path"])); }else{ browse(collect_content($GLOBALS["db"], $_GET["name"] , $_GET["folder"])); } @@ -47,6 +48,7 @@ function browse($content){

New Folder

+
-- cgit v1.2.3