sub template { if ($ENV{'HTTP_ACCEPT_ENCODING'}=~/\bgzip\b/) { $gzaccept = 1; } else { $gzaccept = 0; } if (($gzcomp != 0) && ($gzaccept == 1)) { if($yySetCookies1 || $yySetCookies2) { print header(-cookie=>[$yySetCookies1, $yySetCookies2] , 'Content-Encoding' => 'gzip' ); } else { print header(-status=>'200 OK' , 'Content-Encoding' => 'gzip' ); } } else { if($yySetCookies1 || $yySetCookies2) { print header(-cookie=>[$yySetCookies1, $yySetCookies2], -charset=>'ISO-8859-15'); } else { print header(-status=>'200 OK', -charset=>'ISO-8859-15'); } } if ($defaultml == 0) { $mldefault = "mlall"; } elsif ($defaultml == 1) { $mldefault = "mlpost"; } elsif ($defaultml == 2) { $mldefault = "mlalfa"; } elsif ($defaultml == 3) { $mldefault = "mlgrp"; } if ($account eq "") { $yymenu .= qq~
~; } $yymenu .= qq~$img{'home'}$menusep$img{'help'}$menusep$img{'search'}~; if($settings[7] eq 'Administrator') { $yymenu .= qq~$menusep$img{'admin'}~; } if ($aktivmap) { $yymenu .= qq~$menusep$img{'membermap'}~; } if($settings[7] eq 'Global Moderator' && $allow_mod == 1) { $yymenu .= qq~$menusep$img{'glmod'}~; } if($ispartner eq "1") { if ($accounta > 1) { $yymenu .= qq~$menusep$img{'coop'}~; } } if($username eq 'Guest') { if ($guest_allow == 1) { $yymenu .= qq~$menusep$img{'mlist'}~; } $yymenu .= qq~$menusep$img{'login'}$menusep$img{'register'}~; } else { $yymenu .= qq~$menusep$img{'profile'}$menusep$img{'kurzmitteilungen'}$menusep$img{'mlist'}~; if ($aktivquiz == 1) { $yymenu .= qq~$menusep$img{'quiz'}~; } if($enable_notification) { $yymenu .= qq~$menusep$img{'notification'}~; } $yymenu .= qq~$menusep$img{'logout'}~; } if ($account eq "") { $yymenu .= qq~

~; } if($enable_news) { fopen(FILE, "$vardir/news.txt"); @newsmessages = ; fclose(FILE); srand; $yynews = qq~$txt{'102'}: $newsmessages[int rand(@newsmessages)]~; } $yyformsearch2sid = qq~
~; $yycopyin = 0; $yymbname = $mbname; $yytime = &timeformat($date, 1); $yyuname = $username eq 'Guest' ? qq~$txt{'248'} $txt{'28'}. $txt{'249'} $txt{'34'} $txt{'377'} $txt{'97'}.~ : qq~$txt{'247'} $realname, ~ ; my $output=''; if ($sidemenu == 1) { $ia = 0; $yymom .= qq~ ~; } if ($action eq "games") { $yytitle =~ s~Board~Online Games~gi; $yytitle =~ s~Forum~Online Games~gi; $mbname =~ s~Board~Online Games~gi; $mbname =~ s~Forum~Online Games~gi; } elsif ($action eq "chat") { $yytitle =~ s~Board~Chat~gi; $yytitle =~ s~Forum~Chat~gi; $mbname =~ s~Board~Chat~gi; $mbname =~ s~Forum~Chat~gi; } elsif ($action =~ "link") { $yytitle =~ s~Board~Links~gi; $yytitle =~ s~Forum~Links~gi; $mbname =~ s~Board~Links~gi; $mbname =~ s~Forum~Links~gi; } if (($action eq "games") || ($action eq "zusatz")|| ($action eq "kooperation") || ($action =~ m~quiz~) || ($action eq "fmailer") || ($action eq "error") || ($action =~ m~link~) || ($action eq "chat")) { $yymom = ""; if ($account ne "") { $yymenu = "$yytitle"; } else { $yymenu = ""; } } fopen(TEMPLATE, "$boarddir/template$boardnummer.html"); @yytemplate =