diff options
Diffstat (limited to 'files/ajax/delete.php')
-rw-r--r-- | files/ajax/delete.php | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/files/ajax/delete.php b/files/ajax/delete.php deleted file mode 100644 index d8a01d7acf1..00000000000 --- a/files/ajax/delete.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php - -// Init owncloud - - -OC_JSON::checkLoggedIn(); - -// Get data -$dir = stripslashes($_GET["dir"]); -$files = isset($_GET["file"]) ? stripslashes($_GET["file"]) : stripslashes($_GET["files"]); - -$files = explode(';', $files); -$filesWithError = ''; -$success = true; -//Now delete -foreach($files as $file) { - if( !OC_Files::delete( $dir, $file )){ - $filesWithError .= $file . "\n"; - $success = false; - } -} - -if($success) { - OC_JSON::success(array("data" => array( "dir" => $dir, "files" => $files ))); -} else { - OC_JSON::error(array("data" => array( "message" => "Could not delete:\n" . $filesWithError ))); -} - -?> |