From 7c1299521f31d6eb733e29455ccad8c92cbc0a7b Mon Sep 17 00:00:00 2001 From: moehm Date: Mon, 28 Apr 2014 11:12:38 +0200 Subject: Unimportant changes #2 --- www/browse.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'www/browse.php') diff --git a/www/browse.php b/www/browse.php index b72bac5..929600f 100644 --- a/www/browse.php +++ b/www/browse.php @@ -8,7 +8,12 @@ function print_browser($content){ if($_SERVER['REQUEST_METHOD'] == 'POST'){ //echo "created_folder : ". $_POST["foldername"] . " in ". $_GET["folder"]; if($_POST["task"]=="new-folder"){ - create_folder($_POST["path"], $_POST["foldername"], /*$_POST["public"]?*/"PUBLIC"/*:"PRIVATE"*/); + if(isset($_POST["share"])){ + $share = "PUBLIC"; + } else { + $share= "PRIVATE"; + } + create_folder($_POST["path"], $_POST["foldername"], $share); }elseif($_POST["task"]=="upload"){ upload($_POST["path"]); } -- cgit v1.2.3