71b996fece
git-svn-id: http://yolanda.mister-muffin.de/svn@156 7eef14d0-6ed0-489d-bf55-20463b2d70db
27 lines
638 B
Perl
27 lines
638 B
Perl
#!/usr/bin/perl
|
|
require "include.pl";
|
|
require "functions.pl";
|
|
|
|
#create or resume session
|
|
CGI::Session->name($session_name);
|
|
$query = new CGI;
|
|
my $session = new CGI::Session;
|
|
|
|
@userinfo = get_userinfo_from_sid($session->id);
|
|
|
|
@page = get_page_array(@userinfo);
|
|
|
|
if($userinfo->{'username'})
|
|
{
|
|
$page->{uploadform} = {'page' => '1'};
|
|
}
|
|
else
|
|
{
|
|
$page->{'message'}->{'type'} = "error";
|
|
$page->{'message'}->{'text'} = "error_202c";
|
|
}
|
|
|
|
#print xml http header along with session cookie
|
|
print $session->header(-type=>'text/xml', -charset=>'UTF-8');
|
|
|
|
print XMLout($page, KeyAttr => {}, XMLDecl => $XMLDecl, RootName => 'page', AttrIndent => '1');
|