yolanda/trunk/index.pl
josch 9e26059341 all xml are created on the fly
git-svn-id: http://yolanda.mister-muffin.de/svn@52 7eef14d0-6ed0-489d-bf55-20463b2d70db
2007-10-12 11:04:34 +00:00

24 lines
582 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;
%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->{frontpage} = [''];
fill_tagcloud;
#print xml http header along with session cookie
print $session->header(-type=>'text/xml');
#print xml
print XMLout($page, KeyAttr => {}, XMLDecl => $XMLDecl, RootName => 'page');