projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Wechselkurs beim Einlesen parsen
[kivitendo-erp.git]
/
bin
/
mozilla
/
admin.pl
diff --git
a/bin/mozilla/admin.pl
b/bin/mozilla/admin.pl
index
0e61c3c
..
eac4d08
100755
(executable)
--- a/
bin/mozilla/admin.pl
+++ b/
bin/mozilla/admin.pl
@@
-43,6
+43,7
@@
use Sys::Hostname;
use SL::Auth;
use SL::Form;
use SL::Auth;
use SL::Form;
+use SL::Iconv;
use SL::Mailer;
use SL::User;
use SL::Common;
use SL::Mailer;
use SL::User;
use SL::Common;
@@
-83,7
+84,9
@@
sub run {
if ($auth->session_tables_present()) {
$::auth->set_session_value('rpw', $::form->{rpw});
$::auth->create_or_refresh_session();
if ($auth->session_tables_present()) {
$::auth->set_session_value('rpw', $::form->{rpw});
$::auth->create_or_refresh_session();
+ _apply_dbupgrade_scripts();
}
}
+
call_sub($locale->findsub($form->{action}));
}
} else {
call_sub($locale->findsub($form->{action}));
}
} else {
@@
-359,8
+362,12
@@
sub add_user {
"dateformat" => "dd.mm.yy",
"stylesheet" => "lx-office-erp.css",
"menustyle" => "old",
"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);
}
edit_user_form($myconfig);
}
@@
-646,10
+653,10
@@
sub dbselect_source {
my $form = $main::form;
my $locale = $main::locale;
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->{dbdefault} = 'template1';
- $form->{dbhost} = 'localhost';
+ $form->{dbhost} =
$::auth->{DB_config}->{host} ||
'localhost';
$form->{title} = "Lx-Office ERP / " . $locale->text('Database Administration');
$form->{title} = "Lx-Office ERP / " . $locale->text('Database Administration');
@@
-1162,4
+1169,8
@@
sub dispatcher {
$form->error($locale->text('No action defined.'));
}
$form->error($locale->text('No action defined.'));
}
+sub _apply_dbupgrade_scripts {
+ ::end_of_request() if SL::DBUpgrade2->new(form => $::form, dbdriver => 'Pg', auth => 1)->apply_admin_dbupgrade_scripts(1);
+}
+
1;
1;