diff --git a/deleteOldMaps.sh b/deleteOldMaps.sh
new file mode 100644
index 0000000..e1a0619
--- /dev/null
+++ b/deleteOldMaps.sh
@@ -0,0 +1,3 @@
+# Get all the maps in /home/beatsaber-wip-uploader/maps/ and delete the ones that are older than 30 minutes
+
+find /home/beatsaber-wip-uploader/maps/ -type f -mmin +30 -delete
\ No newline at end of file
diff --git a/index.html b/index.html
deleted file mode 100644
index 5d7367a..0000000
--- a/index.html
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
+ ';
+ }
+
+ // if the map parameter is not set, display the upload form
+ else {
+ echo '
+ ';
+ }
+ ?>
+
+
+
+
+
\ No newline at end of file
diff --git a/upload.php b/upload.php
index 561029e..48f7ee0 100644
--- a/upload.php
+++ b/upload.php
@@ -40,4 +40,6 @@ if (!move_uploaded_file($file, $target_file)) {
echo "There was an error uploading the file";
die();
}
-echo "The file https://wip.fascinated.cc/maps/" . $mapId . ".zip has been uploaded.";
+
+// redirect to /?map=https://wip.fascinated.cc/maps/" . $mapId . ".zip
+header("Location: /?map=https://wip.fascinated.cc/maps/" . $mapId . ".zip");