diff --git a/skinup/Makefile b/skinup/Makefile new file mode 100644 index 0000000..0acdacf --- /dev/null +++ b/skinup/Makefile @@ -0,0 +1,4 @@ +all: + +run: + php -c . -S localhost:8080 \ No newline at end of file diff --git a/skinup/form.html b/skinup/form.html new file mode 100644 index 0000000..464eba2 --- /dev/null +++ b/skinup/form.html @@ -0,0 +1,14 @@ +
+ + + Your YL name, with correct capitalization: if your YL name is John, do not write JOHN or john. +

+ + + If you plan to submit multiple skins, give each a unique name. +

+ + +

+ +

\ No newline at end of file diff --git a/skinup/php.ini b/skinup/php.ini new file mode 100644 index 0000000..c23ed7e --- /dev/null +++ b/skinup/php.ini @@ -0,0 +1 @@ +file_uploads = On diff --git a/skinup/target.php b/skinup/target.php new file mode 100644 index 0000000..393e773 --- /dev/null +++ b/skinup/target.php @@ -0,0 +1,101 @@ +
+ $_POST["player-name"],
+        "skin-name" => $_POST["skin-name"],
+        "file-name" => $dest,
+        "save-as" => $save_as,
+    ]));
+    echo "Upload OK";
+} else {
+    // I just resign on handling all the errors.
+    echo "Upload failed";
+}
+
+
+?>
+
\ No newline at end of file