From 74e345d0723f81c5f6668f7dc532dbf2cd245f23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 22 Oct 2009 13:47:20 +0200 Subject: [PATCH] menujs strict --- bin/mozilla/menujs.pl | 47 +++++++++++++++++++++++++++++-------------- 1 file changed, 32 insertions(+), 15 deletions(-) diff --git a/bin/mozilla/menujs.pl b/bin/mozilla/menujs.pl index b948ef207..f4455d606 100644 --- a/bin/mozilla/menujs.pl +++ b/bin/mozilla/menujs.pl @@ -35,15 +35,22 @@ # 2004-12-14 - Holger Lindemann ####################################################################### -$menufile = "menu.ini"; +my $menufile = "menu.ini"; use SL::Menu; use CGI::Carp qw(fatalsToBrowser); +use strict; + +my $locale; + 1; # end of main sub display { + + my $form = $main::form; + $form->{callback} = $form->unescape($form->{callback}); $form->{callback} ||= "login.pl?action=company_logo"; @@ -67,10 +74,12 @@ sub display { sub clock_line { - $fensterlink="menujs.pl?action=display"; - $fenster = "["."neues Fenster]"; + my $form = $main::form; - $login = "[Nutzer " + my $fensterlink="menujs.pl?action=display"; + my $fenster = "["."neues Fenster]"; + + my $login = "[Nutzer " . $form->{login} . " - " . $locale->text('Logout') @@ -90,14 +99,14 @@ sub clock_line { "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"); - $datum = + my $datum = $Wochentage[$Wochentag] . ", der " . $Monatstag . "." . $Monat . "." . $Jahr . " - "; #$zeit="
".$Stunden.":".$Minuten.":".$Sekunden."
"; - $zeit = "
" . $Stunden . ":" . $Minuten . "
"; + my $zeit = "
" . $Stunden . ":" . $Minuten . "
"; print qq|