diff options
| author | moehm | 2014-04-28 11:12:38 +0200 |
|---|---|---|
| committer | moehm | 2014-04-28 11:12:38 +0200 |
| commit | 7c1299521f31d6eb733e29455ccad8c92cbc0a7b (patch) | |
| tree | 572c80ad16cea71b79aad7d3291e06a03265c7c0 /www/browse.php | |
| parent | 11ed3a4c720d9379beaf7f5770f297677da5d9a7 (diff) | |
| download | files.iamfabulous.de-7c1299521f31d6eb733e29455ccad8c92cbc0a7b.tar.gz | |
Unimportant changes #2
Diffstat (limited to 'www/browse.php')
| -rw-r--r-- | www/browse.php | 7 |
1 files changed, 6 insertions, 1 deletions
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"]); } |
