X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/e98e20941b580769e3f4e6e2bcac60a679b7e06b..be4e11d36f40d90622fdf35eb07ab207422b5455:/bin/mozilla/admin.pl diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index 2eb53876c..1e362973d 100644 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -34,17 +34,17 @@ $menufile = "menu.ini"; +use DBI; use SL::Form; use SL::User; +require "bin/mozilla/common.pl"; + $form = new Form; $form->{"root"} = "root login"; $locale = new Locale $language, "admin"; -eval { require DBI; }; -$form->error($locale->text('DBI not installed!')) if ($@); - # customization if (-f "$form->{path}/custom_$form->{script}") { eval { require "$form->{path}/custom_$form->{script}"; }; @@ -67,7 +67,7 @@ if ($form->{action}) { &check_password; - &$subroutine; + call_sub($subroutine); } else { @@ -473,9 +473,13 @@ sub form_header { } } - opendir CSS, "css/."; - @all = sort(grep({ /\.css$/ && ($_ ne "tabcontent.css") } readdir(CSS))); - closedir CSS; +# opendir CSS, "css/."; +# @all = grep /.*\.css$/, readdir CSS; +# closedir CSS; + +# css dir has styles that are not intended as general layouts. +# reverting to hardcoded list + @all = qw(lx-office-erp.css Win2000.css); foreach $item (@all) { if ($item eq $myconfig->{stylesheet}) { @@ -508,16 +512,16 @@ sub form_header {
| | . $locale->text('Login') . qq| | -+ | |||||
|---|---|---|---|---|---|---|
| | . $locale->text('Password') . qq| | -{password}> | - {password}> ++ | ||||
| | . $locale->text('Name') . qq| | -+ | |||||
| | . $locale->text('E-mail') . qq| | @@ -635,24 +639,25 @@ sub form_header { print qq|| . $locale->text('Driver') . qq| | -$item | +$item | | . $locale->text('Host') . qq| | -{"${item}_dbhost"}> | +|
| | . $locale->text('Dataset') . qq| | -{Pg_dbname}> | +| . $locale->text('Port') . qq| | -{Pg_dbport}> | +|||
| | . $locale->text('User') . qq| | -{"${item}_dbuser"}> | +| . $locale->text('Password') . qq| | -{"${item}_dbpasswd"}> | +| . $locale->text('Dataset') . qq| | {"${item}_dbuser"}> | | . $locale->text('Password') . qq| | -{"${item}_dbpasswd"}> | +|; } print qq| - {dbpasswd}> + |