X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fadmin.pl;h=eac4d083ec61b4672091eca7254e2d3edfe6210d;hb=e24551e62433de8d5541c315502c63b81048c23f;hp=2819da00ed8372d802635940d177141c7ef80414;hpb=9f8a3ead2d89585f1e19422e016e7bbc9fa1efe0;p=kivitendo-erp.git diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index 2819da00e..eac4d083e 100755 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -84,10 +84,9 @@ sub run { if ($auth->session_tables_present()) { $::auth->set_session_value('rpw', $::form->{rpw}); $::auth->create_or_refresh_session(); + _apply_dbupgrade_scripts(); } - _apply_dbupgrade_scripts(); - call_sub($locale->findsub($form->{action})); } } else { @@ -363,8 +362,12 @@ sub add_user { "dateformat" => "dd.mm.yy", "stylesheet" => "lx-office-erp.css", "menustyle" => "old", + dbport => $::auth->{DB_config}->{port} || 5432, + dbuser => $::auth->{DB_config}->{user} || 'lxoffice', + dbhost => $::auth->{DB_config}->{host} || 'localhost', }; + edit_user_form($myconfig); } @@ -650,10 +653,10 @@ sub dbselect_source { my $form = $main::form; my $locale = $main::locale; - $form->{dbport} = '5432'; - $form->{dbuser} = 'lxoffice'; + $form->{dbport} = $::auth->{DB_config}->{port} || 5432; + $form->{dbuser} = $::auth->{DB_config}->{user} || 'lxoffice'; $form->{dbdefault} = 'template1'; - $form->{dbhost} = 'localhost'; + $form->{dbhost} = $::auth->{DB_config}->{host} || 'localhost'; $form->{title} = "Lx-Office ERP / " . $locale->text('Database Administration');