3016c3a294
git-svn-id: http://yolanda.mister-muffin.de/svn@18 7eef14d0-6ed0-489d-bf55-20463b2d70db
20 lines
667 B
Text
20 lines
667 B
Text
require "/var/www/perl/include";
|
|
require "/var/www/perl/functions";
|
|
|
|
#create or resume session
|
|
CGI::Session->name($session_name);
|
|
my $session = new CGI::Session;
|
|
|
|
#read xml
|
|
$page = XMLin('/var/www/perl/index.xml', ForceArray => 1, KeyAttr => {} );
|
|
|
|
#if a username is associated with session id, username is nonempty
|
|
$page->{username} = get_username_from_sid($session->id);
|
|
|
|
fill_tagcloud;
|
|
|
|
#print xml http header along with session cookie
|
|
print $session->header(-type=>'text/xml');
|
|
|
|
#print xml
|
|
print XMLout($page, KeyAttr => {}, XMLDecl => '<?xml version="1.0" encoding="ISO-8859-1" ?><?xml-stylesheet type="text/xsl" href="./xsl/xhtml.xsl" ?>', RootName => 'page');
|