From: Joseph Adams <joeyadams3.14159@gmail.com>
[ccan] / web / staticupload.php
1 <?php 
2 session_start();
3
4 include('logo.html');
5 include('menulist.html');
6 include('static-configuration');
7 ?>
8 <html>
9 <h3 align="center"> Upload Code</h3>
10
11 <table width="70%" align="center">
12 <tr>
13 <td>
14 <p>
15 Got C code sitting around which might help someone?  Put it to work
16 by uploading here; .tar.gz, .zip or even single C files.
17 </p>
18
19 <p>If it has a valid _info.c file and a testsuite (see <a href="http://ccan.ozlabs.org/Wiki/ModuleGuide">the module creation guide</a>), it'll go into the
20 main repository.  Otherwise, it'll go into our "junkcode" area where
21 people can browse and download it.
22 </p>
23 </td>
24 </tr>
25 </table>
26
27 <table width="70%" align="center">
28 <tr>
29 <p>
30 <form enctype="multipart/form-data" action="<?=$uploadscript?>" method="POST">
31 <td align="right">
32         Email address:
33 </td>
34 <td>
35 <input type="text" name="email" size="25"
36              maxlength="255" value="" />
37 </td>
38 </tr>
39 <tr>
40 <td align="right">
41         <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
42         Choose a file to upload:
43 </td>
44 <td>
45 <input name="uploadedfile" type="file" /><br />
46 </td>
47 </tr>
48 <td></td>
49 <td><input type="submit" value="Upload File" /></td>
50 </tr>
51 </table>
52 </form>
53 <hr>
54 </html>