X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fadmin.pl;h=e936b2a12430c68d8f04527ea53e822502bbb511;hb=564d8509117493b1b4b28c08d95ba4d1df8d599b;hp=1e362973d1650556c03da5972ad58e0921b1411e;hpb=40782548cf82ac1e4c0fe417113a4cb3072e9390;p=kivitendo-erp.git
diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl
index 1e362973d..e936b2a12 100644
--- a/bin/mozilla/admin.pl
+++ b/bin/mozilla/admin.pl
@@ -46,8 +46,8 @@ $form->{"root"} = "root login";
$locale = new Locale $language, "admin";
# customization
-if (-f "$form->{path}/custom_$form->{script}") {
- eval { require "$form->{path}/custom_$form->{script}"; };
+if (-f "bin/mozilla/custom_$form->{script}") {
+ eval { require "bin/mozilla/custom_$form->{script}"; };
$form->error($@) if ($@);
}
@@ -125,7 +125,6 @@ sub adminlogin {
. $locale->text('Login') . qq|">
-{path}>
@@ -197,8 +196,7 @@ sub form_footer {
print qq|
-
-{path}>
+
{rpw}>
{path}&rpw=$form->{rpw}";
+ "$script?action=edit&login=$key&rpw=$form->{rpw}";
$href =~ s/ /%20/g;
$member{$key}{templates} =~ s/^$templates\///;
@@ -330,7 +328,6 @@ sub list_users {
-{path}>
{rpw}>
text('Login') . qq|">
-{path}>
@@ -1147,7 +1143,6 @@ sub change_admin_password {
-{path}>
{rpw}>
@@ -1188,7 +1183,7 @@ sub change_password {
$root->save_member($memberfile);
$form->{callback} =
- "$form->{script}?action=list_users&path=$form->{path}&rpw=$root->{password}";
+ "$form->{script}?action=list_users&rpw=$root->{password}";
$form->redirect($locale->text('Password changed!'));
@@ -1309,8 +1304,7 @@ sub dbselect_source {
-
-{path}>
+
{rpw}>
@@ -1404,9 +1398,8 @@ $upd
-
+
-{path}>
{rpw}>
@@ -1458,7 +1451,7 @@ sub dbupdate {
escape($form->{$_}); } qw(path rpw))) .
+join("&", map({ "$_=" . $form->escape($form->{$_}); } qw(rpw))) .
qq|">| . $locale->text("Continue") . qq||;
}
@@ -1556,9 +1549,8 @@ sub create_dataset {
-
+
-{path}>
{rpw}>
@@ -1609,7 +1601,6 @@ sub dbcreate {
. qq|
-
@@ -1672,9 +1663,8 @@ sub delete_dataset {
-
+
-
@@ -1724,7 +1714,6 @@ $form->{db} | . $locale->text('successfully deleted!')
. qq|
-
@@ -1745,7 +1734,7 @@ sub unlock_system {
unlink "$userspath/nologin";
$form->{callback} =
- "$form->{script}?action=list_users&path=$form->{path}&rpw=$root->{password}";
+ "$form->{script}?action=list_users&rpw=$root->{password}";
$form->redirect($locale->text('Lockfile removed!'));
@@ -1758,7 +1747,7 @@ sub lock_system {
close(FH);
$form->{callback} =
- "$form->{script}?action=list_users&path=$form->{path}&rpw=$root->{password}";
+ "$form->{script}?action=list_users&rpw=$root->{password}";
$form->redirect($locale->text('Lockfile created!'));