9a1de07513
git-svn-id: http://yolanda.mister-muffin.de/svn@155 7eef14d0-6ed0-489d-bf55-20463b2d70db
36 lines
808 B
Perl
36 lines
808 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);
|
|
|
|
$page->{frontpage} = [''];
|
|
|
|
if($query->param('information'))
|
|
{
|
|
|
|
$page->{'message'}->{'type'} = "information";
|
|
$page->{'message'}->{'text'} = $query->param('information');
|
|
}
|
|
elsif($query->param('error'))
|
|
{
|
|
|
|
$page->{'message'}->{'type'} = "error";
|
|
$page->{'message'}->{'text'} = $query->param('error');
|
|
}
|
|
|
|
fill_tagcloud;
|
|
|
|
#print xml http header along with session cookie
|
|
print $session->header(-type=>'text/xml', -charset=>'UTF-8');
|
|
|
|
#print xml
|
|
print XMLout($page, KeyAttr => {}, XMLDecl => $XMLDecl, RootName => 'page', AttrIndent => '1');
|
|
|