X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fadmin.pl;h=3a5e810c25a9e713b24f37633cff355295f06112;hb=ee1d7e16868223bdeb2be45555b4d15545b53c7c;hp=ab34702a6310a335f7122edaa71f813aa35699c7;hpb=4be2d4d2743b062f2249c827121ae0fbeb4dc74f;p=kivitendo-erp.git diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index ab34702a6..3a5e810c2 100755 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -52,6 +52,7 @@ use SL::DBUtils; require "bin/mozilla/common.pl"; require "bin/mozilla/admin_groups.pl"; +require "bin/mozilla/admin_printer.pl"; use strict; @@ -79,7 +80,10 @@ sub run { $form->{error_message} = $locale->text('Incorrect Password!'); adminlogin(); } else { - $auth->create_or_refresh_session() if ($auth->session_tables_present()); + if ($auth->session_tables_present()) { + $::auth->set_session_value('rpw', $::form->{rpw}); + $::auth->create_or_refresh_session(); + } call_sub($locale->findsub($form->{action})); } } elsif ($auth->authenticate_root($form->{rpw}, 0) == $auth->OK()) { @@ -351,13 +355,15 @@ sub add_user { $form->{title} = "Lx-Office ERP " . $locale->text('Administration') . " / " . $locale->text('Add User'); +# Note: Menu Style 'v3' is not compatible to all browsers! +# "menustyle" => "old" sets the HTML Menu to default. my $myconfig = { "vclimit" => 200, "countrycode" => "de", "numberformat" => "1.000,00", "dateformat" => "dd.mm.yy", "stylesheet" => "lx-office-erp.css", - "menustyle" => "v3", + "menustyle" => "old", }; edit_user_form($myconfig); @@ -646,7 +652,7 @@ sub dbselect_source { my $locale = $main::locale; $form->{dbport} = '5432'; - $form->{dbuser} = 'postgres'; + $form->{dbuser} = 'lxoffice'; $form->{dbdefault} = 'template1'; $form->{dbhost} = 'localhost';