From 2ff4600332e95f26d4b6ecc98974c2c6e60e36ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 23 Oct 2009 15:42:09 +0200 Subject: [PATCH] kopf strict (wird die eigentlich irgendwo benutzt?) --- bin/mozilla/kopf.pl | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/bin/mozilla/kopf.pl b/bin/mozilla/kopf.pl index ea7e5d329..b5a895a44 100644 --- a/bin/mozilla/kopf.pl +++ b/bin/mozilla/kopf.pl @@ -5,15 +5,21 @@ $| = 1; use CGI::Carp qw(fatalsToBrowser); +use strict; + +my $form = $main::form; +my $locale = $main::locale; + $form->header; -$paramstring = $ENV{"QUERY_STRING"}; -@felder = split "&", $paramstring; +my $paramstring = $ENV{"QUERY_STRING"}; +my @felder = split "&", $paramstring; +my ($name, $wert); foreach (@felder) { ($name, $wert) = split "=", $_; $wert =~ tr/+/ /; - $$name = $wert; + $name = $wert; } -$login = +my $login = "[" . $form->{login} . " - " . $locale->text('Logout') @@ -33,7 +39,7 @@ my @Monatsnamen = ("", "Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"); -$datum = +my $datum = $Wochentage[$Wochentag] . ", der " . $Monatstag . "." . $Monat . "." -- 2.20.1