diff options
author | eric <eric> | 2004-07-12 22:12:42 +0000 |
---|---|---|
committer | eric <eric> | 2004-07-12 22:12:42 +0000 |
commit | cbe2050420a65349a5fcf1f4cce6e7c76490f881 (patch) | |
tree | 167ebed2b4b7ab322a2c2492d6b2e688f4ca2fe6 /web/html/pkgsubmit.php | |
parent | 7b9956f225cd885c861db0cb145b16b3b8441ca7 (diff) | |
download | aurweb-cbe2050420a65349a5fcf1f4cce6e7c76490f881.tar.xz |
started on the package submit script
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r-- | web/html/pkgsubmit.php | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 60b6dc5..02f3c05 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -5,12 +5,33 @@ set_lang(); # this sets up the visitor's language check_sid(); # see if they're still logged in html_header(); # print out the HTML header - -# Any text you print out to the visitor, use the __() function -# for i18n support. See 'testpo.php' for more details. +# this is the directory that new packages will be uploaded to # -print __("Under construction...")."<br />\n"; +$UPLOAD_DIR = "/tmp/aur/temp"; + +if ($_REQUEST["upload"]) { + # try and process the upload + # +} else { + # give the visitor the default upload page + # + print "<center>\n"; + if (ini_get("file_uploads")) { + print "<form action='/pkgsubmit.php' method='post'"; + print " enctype='multipart/form-data'>\n"; + print "<input type='hidden' name='MAX_FILE_SIZE' value='"; + print initeger(ini_get("upload_max_filesize"))."' />\n"; + print "Upload package: "; + print "<input type='file' name='pfile' size='30' />\n"; + print " "; + print "<input class='button' type='submit' value='Upload' />\n"; + print "</form>\n"; + } else { + print "Sorry, uploads are not permitted by this server.\n<br />\n"; + } + print "</center>\n"; +} html_footer("\$Id$"); ?> |