- print($form->parse_html_template("dbupgrade/header",
- { "dbname" => $myconfig{dbname} }));
+ print($form->parse_html_template("dbupgrade/header"));
+
+ $form->{dbupdate} = "db$myconfig{dbname}";
+ $form->{ $form->{dbupdate} } = 1;
+
+ if ($form->{"show_dbupdate_warning"}) {
+ print($form->parse_html_template("dbupgrade/warning"));
+ exit(0);
+ }
+
+ # update the tables
+ open FH, ">$userspath/nologin" or die "
+$!";