yolanda/trunk/upload.pl
josch 14b3f68a73 syntax cleaenup
git-svn-id: http://yolanda.mister-muffin.de/svn@29 7eef14d0-6ed0-489d-bf55-20463b2d70db
2007-10-11 17:26:39 +00:00

26 lines
550 B
Perl

#!/usr/bin/perl
require "include.pl";
require "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...";
}