yolanda/trunk/upload.pl
josch 8c0e59d753 output uploadform
git-svn-id: http://yolanda.mister-muffin.de/svn@63 7eef14d0-6ed0-489d-bf55-20463b2d70db
2007-10-12 15:48:30 +00:00

30 lines
689 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)
{
%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
{
print $session->header();
print "nope...";
}