From: Sven Schöling Date: Thu, 22 Oct 2009 11:47:20 +0000 (+0200) Subject: menujs strict X-Git-Tag: release-2.6.1beta1~189 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=74e345d0723f81c5f6668f7dc532dbf2cd245f23;p=kivitendo-erp.git menujs strict --- 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|