From a1b353ecfa73af25d82af151077d9bc25253d253 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 4 Dec 2006 17:08:38 +0000 Subject: [PATCH] =?utf8?q?Adminfrontend:=20Vor=20den=20Datenbankupdates=20?= =?utf8?q?wie=20in=20User.pm=20auch=20den=20HTML-Header=20ausgeben,=20dami?= =?utf8?q?t=20die=20Perlscripte=20ihre=20Ausgaben=20anst=C3=A4ndig=20durch?= =?utf8?q?f=C3=BChren=20k=C3=B6nnen.=20Danach=20zur=C3=BCck=20zur=20Admini?= =?utf8?q?stration.=20Bugfix=20f=C3=BCr=20435.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/admin.pl | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index 71828e2bd..8cd79a4c5 100644 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -239,7 +239,7 @@ sub list_users { if (/^(name=|company=|templates=|dbuser=|dbdriver=|dbname=|dbhost=)/) { chop($var = $&); - ($null, $member{$login}{$var}) = split /=/, $_, 2; + ($null, $member{$login}{$var}) = split(/=/, $_, 2); } } @@ -728,7 +728,7 @@ sub form_header { |; - foreach $item (split /;/, $myconfig->{acs}) { + foreach $item (split(/;/, $myconfig->{acs})) { ($key, $value) = split /--/, $item, 2; $excl{$key}{$value} = 1; } @@ -1423,10 +1423,29 @@ $upd } sub dbupdate { + $form->{"stylesheet"} = "lx-office-erp.css"; + $form->{"title"} = $main::locale->text("Dataset upgrade"); + $form->header(); + my $dbname = + join(" ", + map({ s/\s//g; s/^db//; $_; } + grep({ $form->{$_} } + split(/\s+/, $form->{"dbupdate"})))); + print($form->parse_html_template("dbupgrade/header", + { "dbname" => $dbname })); User->dbupdate(\%$form); - $form->redirect($locale->text('Dataset updated!')); + print qq| +
+ +| . $locale->text('Dataset updated!') . qq| + +
+ +| . $locale->text("Continue") . qq||; } -- 2.20.1