From: Sven Schöling Date: Fri, 23 Oct 2009 13:42:09 +0000 (+0200) Subject: kopf strict (wird die eigentlich irgendwo benutzt?) X-Git-Tag: release-2.6.1beta1~163 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2ff4600332e95f26d4b6ecc98974c2c6e60e36ec;p=kivitendo-erp.git kopf strict (wird die eigentlich irgendwo benutzt?) --- 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 . "."