$::userspath = "users";
$::templates = "templates";
$::memberfile = "users/members";
+ $::menufile = "menu.ini";
$::sendmail = "| /usr/sbin/sendmail -t";
$::lxdebug = LXDebug->new;
$::auth = SL::Auth->new;
use strict;
-my $print_post;
-
1;
# end of main
$form->{print_and_save} = 1;
- $print_post = 1;
-
my $saved_form = save_form();
save();
$mainlevel = $form->{level};
$mainlevel =~ s/\Q$mainlevel\E--//g;
- my $menu = new Menu "$menufile";
+ my $menu = Menu->new($::menufile);
$form->{title} = $locale->text('Accounting Menu');
# 2007-10-14 - XMLified - Holger Will <holger@treebuilder.de>
#######################################################################
-my $menufile = "menu.ini";
use SL::Menu;
use CGI::Carp qw(fatalsToBrowser);
my $mainlevel = $form->{level};
$mainlevel =~ s/$mainlevel--//g;
- my $menu = new Menu "$menufile";
+ my $menu = Menu->new($::menufile);
$| = 1;
# 2004-12-14 - Holger Lindemann
#######################################################################
-my $menufile = "menu.ini";
use SL::Menu;
use CGI::Carp qw(fatalsToBrowser);
my $mainlevel = $form->{level};
$mainlevel =~ s/$mainlevel--//g;
- my $menu = new Menu "$menufile";
+ my $menu = Menu->new($::menufile);
$| = 1;
use strict;
-my $menufile = "menu.ini";
-
1;
# end of main
my $mainlevel = $form->{level};
$mainlevel =~ s/\Q$mainlevel\E--//g;
- my $menu = new Menu "$menufile";
+ my $menu = Menu->new($::menufile);
$| = 1;
use strict;
-my $menufile = "menu.ini";
-
1;
# end of main
my $mainlevel = $form->{level};
$mainlevel =~ s/\Q$mainlevel\E--//g;
- my $menu = new Menu "$menufile";
+ my $menu = Menu->new($::menufile);
$| = 1;
use strict;
-my $print_post;
our %TMPL_VAR;
1;
$form->{print_and_save} = 1;
- $print_post = 1;
-
my $saved_form = save_form();
save();