]> git.ozlabs.org Git - ccan/blobdiff - web/uploader.php
Upload now works, with a bit of hackery.
[ccan] / web / uploader.php
diff --git a/web/uploader.php b/web/uploader.php
deleted file mode 100644 (file)
index 40e2944..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-session_start();
-include('logo.html');
-include('menulist.html');
-include('static-configuration');
-
-// We just email notification for now.  Auto-analysis RSN.
-if ($_FILES["uploadedfile"]["error"] > 0) {
-  echo "Error: " . $_FILES["uploadedfile"]["error"] . "<br />";
-  exit();
-}
-
-$dest = tempnam($tempfolder, "upload-");
-move_uploaded_file($_FILES["uploadedfile"]["tmp_name"], $dest);
-
-$subject = "CCAN: code upload by '" . $_POST['email'] . "' with name " . $_FILES["uploadedfile"]["name"];
-$message = "File type: ".$_FILES["uploadedfile"]["type"]."\n".
-       "Size: ".$_FILES["uploadedfile"]["size"]."\n".
-       "Claimed email: ".$_POST['email']."\n".
-       "File destination: ".$dest."\n";
-
-mail($ccanadmin, $subject, $message, "From: $frommail");
-echo "<div align=\"center\"> Thanks!<br>Stored to temporary location. 
-       Mail will be send to admin to get verification of the code.<//div>";
-?>