X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/2da6fbfbbb3c708bd7a33057026e369b1be61bc3..42ea98b4:/bin/mozilla/admin.pl 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');