X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d629acd82a27e980899a044ca8b0f4becc8e94bb..eb22bdb44c4e27c1936bdc2ad620823a0248dd55:/bin/mozilla/admin.pl diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index e936b2a12..a24272b8b 100644 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -35,11 +35,25 @@ $menufile = "menu.ini"; use DBI; +use CGI; +use POSIX qw(strftime); +use IO::File; +use Fcntl; +use English qw(-no_match_vars); +use Sys::Hostname; + use SL::Form; +use SL::Mailer; use SL::User; +use SL::Common; +use SL::Inifile; +use SL::DBUpgrade2; +use SL::DBUtils; require "bin/mozilla/common.pl"; +our $cgi = new CGI(''); + $form = new Form; $form->{"root"} = "root login"; @@ -65,7 +79,7 @@ if ($form->{action}) { } } - &check_password; + check_password(); call_sub($subroutine); @@ -77,7 +91,7 @@ if ($form->{action}) { # create memberfile if (!-f $memberfile) { - open(FH, ">$memberfile") or $form->error("$memberfile : $!"); + open(FH, ">$memberfile") or $form->error("$memberfile : $ERRNO"); print FH qq|# SQL-Ledger Accounting members [root login] @@ -87,7 +101,7 @@ password= close FH; } - &adminlogin; + adminlogin(); } @@ -100,51 +114,48 @@ sub adminlogin { $form->{title} = qq|Lx-Office ERP $form->{version} | . $locale->text('Administration'); - $form->header; - - print qq| -
- + $form->header(); + print $form->parse_html_template2('admin/adminlogin'); +} -
-| - . $locale->text('Administration') - . qq| +sub list_users { -
+ while (