]> git.ozlabs.org Git - ccan/blobdiff - web/staticupload.php
Static generation of web pages. Based on GSoC work, and still needs
[ccan] / web / staticupload.php
diff --git a/web/staticupload.php b/web/staticupload.php
new file mode 100644 (file)
index 0000000..d1252e1
--- /dev/null
@@ -0,0 +1,55 @@
+<?php 
+session_start();
+
+include('logo.html');
+include('menulist.html');
+include('static-configuration');
+?>
+<html>
+<h3 align="center"> Upload Code</h3>
+
+<table width="70%" align="center">
+<tr>
+<td>
+<p>
+Got C code sitting around which might help someone?  Put it to work
+by uploading here; .tar.gz, .zip or even single C files.
+</p>
+
+<p>
+If it has a valid _info.c file and a testsuite, it'll go into the
+main repository.  Otherwise, it'll go into our "junkcode" area where
+people can browse and download it.
+</p>
+</td>
+</tr>
+</table>
+
+<table width="70%" align="center">
+<tr>
+<p>
+<form enctype="multipart/form-data" action="<?=$uploadscript?>" method="POST">
+<td align="right">
+       Email address:
+</td>
+<td>
+<input type="text" name="email" size="25"
+            maxlength="255" value="" />
+</td>
+</tr>
+<tr>
+<td align="right">
+       <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
+       Choose a file to upload:
+</td>
+<td>
+<input name="uploadedfile" type="file" /><br />
+</td>
+</tr>
+<td></td>
+<td><input type="submit" value="Upload File" /></td>
+</tr>
+</table>
+</form>
+<hr>
+</html>