diff --git a/index.php b/index.php index b00f2b5..91ec823 100644 --- a/index.php +++ b/index.php @@ -10,9 +10,12 @@ Liscense: MIT error_reporting( error_reporting() & ~E_NOTICE ); // Set to false to disable delete button and delete POST request. -$allow_delete = false; + +$allow_delete = true; +$allow_create_folder = true; $allow_upload = true; + /* Uncomment section below, if you want a trivial password protection */ /* @@ -81,7 +84,7 @@ if($_GET['do'] == 'list') { rmrf($file); } exit; -} elseif ($_POST['do'] == 'mkdir') { +} elseif ($_POST['do'] == 'mkdir' && $allow_create_folder== true) { // don't allow actions outside root. we also filter out slashes to catch args like './../outside' $dir = $_POST['name']; $dir = str_replace('/', '', $dir); @@ -399,11 +402,16 @@ $(function(){
+
+ + + +
Drag Files Here To Upload or