Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e848dbf1

Von Stephan Köhler vor etwa 19 Jahren hinzugefügt

  • ID e848dbf1f17a606e22afb161cb3fb7bd88895f92
  • Vorgänger 38105908
  • Nachfolger 80e15db2

Merge von 550-553,567,603 aus unstable: Neue Menu

Unterschiede anzeigen:

SL/Menu.pm
67 67
  }
68 68

  
69 69
  my $level = $form->escape($item);
70
  my $str   =
70

  
71
  my $str =
71 72
    qq|<a href=$module?path=$form->{path}&action=$action&level=$level&login=$form->{login}&password=$form->{password}|;
73

  
72 74
  my @vars = qw(module action target href);
73 75

  
74 76
  if ($self->{$item}{href}) {
......
97 99
  return $str;
98 100
}
99 101

  
102
sub menuitemNew {
103
  my ($self, $myconfig, $form, $item) = @_;
104

  
105
  my $module = $form->{script};
106
  my $action = "section_menu";
107

  
108
  #if ($self->{$item}{module}) {
109
  $module = $self->{$item}{module};
110

  
111
  #}
112
  if ($self->{$item}{action}) {
113
    $action = $self->{$item}{action};
114
  }
115

  
116
  my $level = $form->escape($item);
117
  my $str   =
118
    qq|$module?path=$form->{path}&action=$action&level=$level&login=$form->{login}&password=$form->{password}|;
119
  my @vars = qw(module action target href);
120

  
121
  if ($self->{$item}{href}) {
122
    $str  = qq|$self->{$item}{href}|;
123
    @vars = qw(module target href);
124
  }
125

  
126
  map { delete $self->{$item}{$_} } @vars;
127

  
128
  # add other params
129
  foreach my $key (keys %{ $self->{$item} }) {
130
    $str .= "&" . $form->escape($key, 1) . "=";
131
    ($value, $conf) = split /=/, $self->{$item}{$key}, 2;
132
    $value = $myconfig->{$value} . "/$conf" if ($conf);
133
    $str .= $form->escape($value, 1);
134
  }
135

  
136
  $str .= " ";
137

  
138
}
139

  
100 140
sub access_control {
101 141
  $main::lxdebug->enter_sub();
102 142

  

Auch abrufbar als: Unified diff