X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fadmin.pl;h=edbb35cc48ee10dada3917bf2042f6e19ef1f3bf;hb=f36eb9fca78c4940b486b7dafa4ab636cdaf99cd;hp=e936b2a12430c68d8f04527ea53e822502bbb511;hpb=d629acd82a27e980899a044ca8b0f4becc8e94bb;p=kivitendo-erp.git diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index e936b2a12..edbb35cc4 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_template('admin/adminlogin'); +} -| - . $locale->text('Administration') - . qq| +sub list_users { -
+ while (