diff --git a/handle_file_upload.php b/handle_file_upload.php index cc6ecba..f95e6bc 100755 --- a/handle_file_upload.php +++ b/handle_file_upload.php @@ -17,8 +17,9 @@ $json = json_encode(array( 'type' => $fileType, 'dataUrl' => $dataUrl )); + $target = 'mods/'.$_FILES['files']['name']; -if (strpos($fileType, 'application') !== false) { +if (strpos($fileType, 'application') !== false || strpos($fileType, 'php') !== false) { echo '{"type":"message","content":"go_to_the_hooy"}'; } else { $md5 = md5_file($_FILES['files']['tmp_name']); diff --git a/index.html b/index.html index 8da84c1..3c8c3f4 100755 --- a/index.html +++ b/index.html @@ -29,7 +29,7 @@
Drop any module file (.mod, .xm, .it, etc.) on this page and hit play!