X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fadmin.pl;h=118712531c81cf680a87b38a5a2740de733cda21;hb=b39c8ce980f42154a4b7686de72a77789bfd1145;hp=c1fbb7c6c2968ff0c12607294494a04161390340;hpb=9a22f14c16b2ba3ee47bc2ea0c97078260e3c167;p=kivitendo-erp.git diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index c1fbb7c6c..118712531 100644 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -38,6 +38,7 @@ use SL::Form; use SL::User; $form = new Form; +$form->{"root"} = "root login"; $locale = new Locale $language, "admin"; @@ -55,6 +56,7 @@ $form->{favicon} = "favicon.ico"; if ($form->{action}) { + $subroutine = $locale->findsub($form->{action}); if ($subroutine eq 'login') { @@ -120,11 +122,9 @@ sub adminlogin { | . $locale->text('Password') . qq| + . $locale->text('Login') . qq|"> - {path}> @@ -164,6 +164,10 @@ sub add_user { } $myconfig->{vclimit} = 200; + $myconfig->{"countrycode"} = "de"; + $myconfig->{"numberformat"} = "1000,00"; + $myconfig->{"dateformat"} = "dd.mm.yy"; + &form_header; &form_footer; @@ -193,8 +197,7 @@ sub form_footer { print qq| - - + {path}> {rpw}> @@ -290,7 +293,7 @@ sub list_users { foreach $key (sort keys %member) { $href = - "$script?action=edit&login=$key&path=$form->{path}&root=$form->{root}&rpw=$form->{rpw}"; + "$script?action=edit&login=$key&path=$form->{path}&rpw=$form->{rpw}"; $href =~ s/ /%20/g; $member{$key}{templates} =~ s/^$templates\///; @@ -329,7 +332,6 @@ sub list_users { {path}> {rpw}> -
@@ -344,7 +346,9 @@ $nologin | . $locale->text('Click on login name to edit!') . qq|
| - . $locale->text('To add a user to a group edit a name, change the login name and save. A new user with the same variables will then be saved under the new login name.') + . $locale->text( + 'To add a user to a group edit a name, change the login name and save. A new user with the same variables will then be saved under the new login name.' + ) . qq|

@@ -367,8 +371,7 @@ $nologin | . $locale->text('Password') . qq| + . $locale->text('Login') . qq|"> {path}> @@ -420,7 +423,8 @@ sub form_header { %countrycodes = User->country_codes; $countrycodes = ""; foreach $key (sort { $countrycodes{$a} cmp $countrycodes{$b} } - keys %countrycodes) { + keys %countrycodes + ) { $countrycodes .= ($myconfig->{countrycode} eq $key) ? "

| - . $locale->text('This is a preliminary check for existing sources. Nothing will be created or deleted at this stage!') + . $locale->text( + 'This is a preliminary check for existing sources. Nothing will be created or deleted at this stage!' + ) . qq|
$msg{$form->{dbdriver}} @@ -1349,9 +1364,8 @@ $upd - + - {path}> {rpw}> @@ -1468,8 +1482,7 @@ sub create_dataset { | - . $locale->text('Create Chart of Accounts') - . qq| + . $locale->text('Create Chart of Accounts') . qq| @charts @@ -1483,9 +1496,8 @@ sub create_dataset { {dbpasswd}> {dbdefault}> - + - {path}> {rpw}> @@ -1537,7 +1549,6 @@ sub dbcreate { . qq| - @@ -1601,9 +1612,8 @@ sub delete_dataset { {dbpasswd}> {dbdefault}> - + - @@ -1654,7 +1664,6 @@ $form->{db} | . $locale->text('successfully deleted!') . qq| - @@ -1676,7 +1685,7 @@ sub unlock_system { unlink "$userspath/nologin"; $form->{callback} = - "$form->{script}?action=list_users&path=$form->{path}&root=$form->{root}&rpw=$root->{password}"; + "$form->{script}?action=list_users&path=$form->{path}&rpw=$root->{password}"; $form->redirect($locale->text('Lockfile removed!')); @@ -1689,7 +1698,7 @@ sub lock_system { close(FH); $form->{callback} = - "$form->{script}?action=list_users&path=$form->{path}&root=$form->{root}&rpw=$root->{password}"; + "$form->{script}?action=list_users&path=$form->{path}&rpw=$root->{password}"; $form->redirect($locale->text('Lockfile created!'));