X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d629acd82a27e980899a044ca8b0f4becc8e94bb..fc490063361896eb3b2aa0939fc0df716ae38262:/bin/mozilla/admin.pl diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index e936b2a12..4e33ef200 100644 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -35,11 +35,16 @@ $menufile = "menu.ini"; use DBI; +use CGI; + use SL::Form; use SL::User; +use SL::Common; require "bin/mozilla/common.pl"; +our $cgi = new CGI(''); + $form = new Form; $form->{"root"} = "root login"; @@ -575,10 +580,6 @@ sub form_header { | . $locale->text('Language') . qq| - - | . $locale->text('Character Set') . qq| - - | . $locale->text('Stylesheet') . qq| @@ -693,11 +694,6 @@ sub form_header { @a = ; close(FH); - if (open(FH, "custom_$menufile")) { - push @a, ; - } - close(FH); - foreach $item (@a) { next unless $item =~ /\[/; next if $item =~ /\#/; @@ -970,6 +966,9 @@ sub save { } } + $form->{templates} =~ s|.*/||; + $form->{mastertemplates} =~ s|.*/||; + # create user template directory and copy master files if (!-d "$form->{templates}") { umask(002); @@ -1471,24 +1470,24 @@ sub create_dataset { } closedir SQLDIR; - $selectencoding = qq|