2007-10-11 16:25:56 +00:00
|
|
|
#!/usr/bin/perl
|
2007-10-11 17:06:08 +00:00
|
|
|
require "include.pl";
|
|
|
|
require "functions.pl";
|
2007-10-10 21:48:12 +00:00
|
|
|
|
|
|
|
#create or resume session
|
|
|
|
CGI::Session->name($session_name);
|
|
|
|
my $session = new CGI::Session;
|
|
|
|
|
|
|
|
my $username = get_username_from_sid($session->id);
|
|
|
|
|
2007-10-11 17:26:39 +00:00
|
|
|
if($username)
|
|
|
|
{
|
2007-10-10 21:48:12 +00:00
|
|
|
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>
|
2007-10-11 22:42:56 +00:00
|
|
|
Beschreibung: <input type="text" name="caption">
|
|
|
|
<br><br>
|
2007-10-10 21:48:12 +00:00
|
|
|
<input type="submit" name="submit" value=" upload ">
|
|
|
|
</form>';
|
2007-10-11 17:26:39 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2007-10-10 21:48:12 +00:00
|
|
|
print $session->header();
|
|
|
|
print "nope...";
|
|
|
|
}
|