output uploadform
git-svn-id: http://yolanda.mister-muffin.de/svn@63 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
32a57b9f79
commit
8c0e59d753
1 changed files with 12 additions and 10 deletions
|
@ -10,16 +10,18 @@ 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>
|
||||
Beschreibung: <input type="text" name="caption">
|
||||
<br><br>
|
||||
<input type="submit" name="submit" value=" upload ">
|
||||
</form>';
|
||||
%page = ();
|
||||
|
||||
#if a username is associated with session id, username is nonempty
|
||||
$page->{username} = get_username_from_sid($session->id);
|
||||
$page->{locale} = $locale;
|
||||
$page->{stylesheet} = $stylesheet;
|
||||
$page->{uploadform} = [''];
|
||||
|
||||
#print xml http header along with session cookie
|
||||
print $session->header(-type=>'text/xml');
|
||||
|
||||
print XMLout($page, KeyAttr => {}, XMLDecl => $XMLDecl, RootName => 'page');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue