yolanda/trunk/upload.pl
josch a1bf6a20c2 new upload functionalities
git-svn-id: http://yolanda.mister-muffin.de/svn@19 7eef14d0-6ed0-489d-bf55-20463b2d70db
2007-10-10 21:48:12 +00:00

22 lines
562 B
Perl

require "/var/www/perl/include.pl";
require "/var/www/perl/functions.pl";
#create or resume session
CGI::Session->name($session_name);
my $session = new CGI::Session;
my $username = get_username_from_sid($session->id);
if($username) {
print $session->header();
print '<form action="uploader.pl" method="post" enctype="multipart/form-data">
Upload: <input type="file" name="file">
<br><br>
Title: <input type="text" name="title">
<br><br>
<input type="submit" name="submit" value=" upload ">
</form>';
} else {
print $session->header();
print "nope...";
}