Made delete happen immediately without leaving the current page.
[recordtv.git] / playonwii / delete.php
blob161b29b4bc085339777ea0921cc3a1a029d32df9
1 <?php
2 ob_start();
3 include_once "functions.php";
5 $deleted_file_path = "$deleted_dir/" . prepare_filename( $_GET['filename'] );
7 $success = touch( $deleted_file_path );
9 if( !$success )
11 header("HTTP/1.1 500 Internal Server Error");
12 print "Unable to delete file.";
14 else
16 print "File deleted.";