Revision 647be62f
Von Sven Schöling vor etwa 15 Jahren hinzugefügt
bin/mozilla/menunew.pl | ||
---|---|---|
38 | 38 |
|
39 | 39 |
use SL::Menu; |
40 | 40 |
|
41 |
use strict; |
|
42 |
|
|
43 |
my $locale; |
|
44 |
|
|
41 | 45 |
1; |
42 | 46 |
|
43 | 47 |
# end of main |
44 | 48 |
|
45 | 49 |
sub display { |
50 |
my $form = $main::form; |
|
51 |
|
|
46 | 52 |
$form->header(); |
47 | 53 |
|
48 | 54 |
# $form->{force_ul_width} = $ENV{HTTP_USER_AGENT} =~ m/MSIE\s+6\./; |
... | ... | |
59 | 65 |
} |
60 | 66 |
|
61 | 67 |
sub clock_line { |
68 |
my $form = $main::form; |
|
69 |
|
|
62 | 70 |
my ($Sekunden, $Minuten, $Stunden, $Monatstag, $Monat, |
63 | 71 |
$Jahr, $Wochentag, $Jahrestag, $Sommerzeit) |
64 | 72 |
= localtime(time); |
... | ... | |
81 | 89 |
} |
82 | 90 |
|
83 | 91 |
sub acc_menu { |
92 |
my $form = $main::form; |
|
93 |
my %myconfig = %main::myconfig; |
|
84 | 94 |
$locale = Locale->new($myconfig{countrycode}, "menu"); |
85 | 95 |
|
86 | 96 |
my $mainlevel = $form->{level}; |
87 | 97 |
$mainlevel =~ s/\Q$mainlevel\E--//g; |
88 | 98 |
my $menu = Menu->new('menu.ini'); |
89 | 99 |
|
90 |
$AUTOFLUSH = 1; |
|
100 |
$English::AUTOFLUSH = 1;
|
|
91 | 101 |
|
92 | 102 |
my $all_items = []; |
93 | 103 |
create_menu($menu, $all_items); |
... | ... | |
112 | 122 |
my ($menu, $all_items, $parent, $depth) = @_; |
113 | 123 |
my $html; |
114 | 124 |
|
125 |
my $form = $main::form; |
|
126 |
my %myconfig = %main::myconfig; |
|
127 |
|
|
115 | 128 |
die if ($depth * 1 > 5); |
116 | 129 |
|
117 | 130 |
my @menuorder = $menu->access_control(\%myconfig, $parent); |
Auch abrufbar als: Unified diff
menunew strict