Die Variablen login und password müssen/dürfen seit der Umstellung auf Session basier...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 14 Jan 2008 13:33:32 +0000 (13:33 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 14 Jan 2008 13:33:32 +0000 (13:33 +0000)
15 files changed:
bin/mozilla/common.pl
bin/mozilla/drafts.pl
bin/mozilla/io.pl
bin/mozilla/menuXML.pl
bin/mozilla/pe.pl
js/calculate_qty.js
js/common.js
js/customer_or_vendor_selection.js
js/delivery_customer_selection.js
js/dunning.js
js/parts_language_selection.js
js/show_am_history.js
js/show_history.js
js/show_vc_details.js
js/vendor_selection.js

index c27a35a..6ed951c 100644 (file)
@@ -415,7 +415,7 @@ sub cov_selection_internal {
 
   my $callback = "$form->{script}?action=cov_selection_internal&";
   map({ $callback .= "$_=" . $form->escape($form->{$_}) . "&" }
-      (qw(login path password name input_name input_id is_vendor allow_both), grep({ /^[fl]_/ } keys %$form)));
+      (qw(name input_name input_id is_vendor allow_both), grep({ /^[fl]_/ } keys %$form)));
 
   my @header_sort = qw(name address contact);
   my %header_title = ( "name" => $locale->text("Name"),
index 36eb608..a6a70cd 100644 (file)
@@ -20,7 +20,7 @@ sub save_draft {
     restore_form($form->{SAVED_FORM}, 1) if ($form->{SAVED_FORM});
     delete $form->{SAVED_FORM};
 
-    $form->{SAVED_FORM}   = save_form(qw(login password stylesheet));
+    $form->{SAVED_FORM}   = save_form(qw(stylesheet));
     $form->{remove_draft} = 1;
 
     $form->header();
@@ -67,7 +67,7 @@ sub load_draft_maybe {
   $draft_nextsub = "add" unless ($draft_nextsub);
 
   delete $form->{action};
-  my $saved_form = save_form(qw(login password stylesheet));
+  my $saved_form = save_form(qw(stylesheet));
 
   $form->header();
   print($form->parse_html_template("drafts/load",
index e331ff7..c5fc661 100644 (file)
@@ -607,10 +607,9 @@ sub new_item {
   my $previousform = join '&', map { $form->{$_} =~ s/&/%26/; "$_=$form->{$_}" } grep { !/action/ } keys %$form;
 
   push @HIDDENS,      { 'name' => 'previousform', 'value' => $form->escape($previousform, 1) };
-  push @HIDDENS, map +{ 'name' => $_,             'value' => $form->{$_} },                       qw(rowcount vc login password);
+  push @HIDDENS, map +{ 'name' => $_,             'value' => $form->{$_} },                       qw(rowcount vc);
   push @HIDDENS, map +{ 'name' => $_,             'value' => $form->{"${_}_$form->{rowcount}"} }, qw(partnumber description unit sellprice);
   push @HIDDENS,      { 'name' => 'taxaccount2',  'value' => $form->{taxaccounts} };
-    next if (($key eq 'login') || ($key eq 'password') || ('' ne ref $form->{$key}));
 
   $form->header();
   print $form->parse_html_template("generic/new_item", { HIDDENS => [ sort { $a->{name} cmp $b->{name} } @HIDDENS ] } );
index 84fabbb..06746ae 100644 (file)
@@ -53,12 +53,6 @@ sub display {
 <!ENTITY szlig "ß">
 ]>|;
   print qq|<doc>|;
-  print qq|<login>|;
-  print $form->{login};
-  print qq|</login>|;
-  print qq|<password>|;
-  print $form->{password};
-  print qq|</password>|;
   print qq|<name>|;
   print %myconfig->{name};
   print qq|</name>|;
index eb62b06..5a617ba 100644 (file)
@@ -49,7 +49,7 @@ sub add {
 
   # construct callback
   $form->{callback} =
-    "$form->{script}?action=add&type=$form->{type}&login=$form->{login}&password=$form->{password}"
+    "$form->{script}?action=add&type=$form->{type}"
     unless $form->{callback};
 
   call_sub("form_$form->{type}_header");
@@ -180,9 +180,6 @@ sub search {
 
 <input type=hidden name=nextsub value=$report>
 
-<input type=hidden name=login value=$form->{login}>
-<input type=hidden name=password value=$form->{password}>
-
 <br>
 <input class=submit type=submit name=action value="|
     . $locale->text('Continue') . qq|">
@@ -205,7 +202,7 @@ sub project_report {
   PE->projects(\%myconfig, \%$form);
 
   $callback =
-    "$form->{script}?action=project_report&type=$form->{type}&login=$form->{login}&password=$form->{password}&status=$form->{status}&active=" .
+    "$form->{script}?action=project_report&type=$form->{type}&status=$form->{status}&active=" .
     E($form->{active});
   $href = $callback;
 
@@ -286,7 +283,7 @@ sub project_report {
 |;
 
     $column_data{projectnumber} =
-      qq|<td><a href=$form->{script}?action=edit&type=$form->{type}&status=$form->{status}&id=$ref->{id}&login=$form->{login}&password=$form->{password}&callback=$callback>$ref->{projectnumber}</td>|;
+      qq|<td><a href=$form->{script}?action=edit&type=$form->{type}&status=$form->{status}&id=$ref->{id}&callback=$callback>$ref->{projectnumber}</td>|;
     $column_data{description} = qq|<td>$ref->{description}&nbsp;</td>|;
     $column_data{active} =
       qq|<td>| .
@@ -316,9 +313,6 @@ sub project_report {
 
 <input type=hidden name=type value=$form->{type}>
 
-<input type=hidden name=login value=$form->{login}>
-<input type=hidden name=password value=$form->{password}>
-
 <input class=submit type=submit name=action value="|
     . $locale->text('Add') . qq|">
 
@@ -424,9 +418,6 @@ sub form_project_footer {
 
 <input name=callback type=hidden value="$form->{callback}">
 
-<input type=hidden name=login value=$form->{login}>
-<input type=hidden name=password value=$form->{password}>
-
 <br><input type=submit class=submit name=action value="|
     . $locale->text('Save') . qq|">
 |;
@@ -528,7 +519,7 @@ sub partsgroup_report {
   PE->partsgroups(\%myconfig, \%$form);
 
   $callback =
-    "$form->{script}?action=partsgroup_report&type=$form->{type}&login=$form->{login}&password=$form->{password}&status=$form->{status}";
+    "$form->{script}?action=partsgroup_report&type=$form->{type}&status=$form->{status}";
 
   if ($form->{status} eq 'all') {
     $option = $locale->text('All');
@@ -589,7 +580,7 @@ sub partsgroup_report {
 |;
 
     $column_data{partsgroup} =
-      qq|<td><a href=$form->{script}?action=edit&type=$form->{type}&status=$form->{status}&id=$ref->{id}&login=$form->{login}&password=$form->{password}&callback=$callback>$ref->{partsgroup}</td>|;
+      qq|<td><a href=$form->{script}?action=edit&type=$form->{type}&status=$form->{status}&id=$ref->{id}&callback=$callback>$ref->{partsgroup}</td>|;
     map { print "$column_data{$_}\n" } @column_index;
 
     print "
@@ -613,9 +604,6 @@ sub partsgroup_report {
 
 <input type=hidden name=type value=$form->{type}>
 
-<input type=hidden name=login value=$form->{login}>
-<input type=hidden name=password value=$form->{password}>
-
 <input class=submit type=submit name=action value="|
     . $locale->text('Add') . qq|">
 
@@ -684,9 +672,6 @@ sub form_partsgroup_footer {
 
 <input name=callback type=hidden value="$form->{callback}">
 
-<input type=hidden name=login value=$form->{login}>
-<input type=hidden name=password value=$form->{password}>
-
 <br><input type=submit class=submit name=action value="|
     . $locale->text('Save') . qq|">
 |;
@@ -727,7 +712,7 @@ sub pricegroup_report {
   PE->pricegroups(\%myconfig, \%$form);
 
   $callback =
-    "$form->{script}?action=pricegroup_report&type=$form->{type}&login=$form->{login}&password=$form->{password}&status=$form->{status}";
+    "$form->{script}?action=pricegroup_report&type=$form->{type}&status=$form->{status}";
 
   if ($form->{status} eq 'all') {
     $option = $locale->text('All');
@@ -790,7 +775,7 @@ sub pricegroup_report {
         <tr valign=top class=listrow$i>
 |;
     $column_data{pricegroup} =
-      qq|<td><a href=$form->{script}?action=edit&type=$form->{type}&status=$form->{status}&id=$ref->{id}&login=$form->{login}&password=$form->{password}&callback=$callback>$ref->{pricegroup}</td>|;
+      qq|<td><a href=$form->{script}?action=edit&type=$form->{type}&status=$form->{status}&id=$ref->{id}&callback=$callback>$ref->{pricegroup}</td>|;
 
     map { print "$column_data{$_}\n" } @column_index;
 
@@ -815,9 +800,6 @@ sub pricegroup_report {
 
 <input type=hidden name=type value=$form->{type}>
 
-<input type=hidden name=login value=$form->{login}>
-<input type=hidden name=password value=$form->{password}>
-
 <input class=submit type=submit name=action value="|
     . $locale->text('Add') . qq|">
 
@@ -890,9 +872,6 @@ sub form_pricegroup_footer {
 
 <input name=callback type=hidden value="$form->{callback}">
 
-<input type=hidden name=login value=$form->{login}>
-<input type=hidden name=password value=$form->{password}>
-
 <br><input type=submit class=submit name=action value="|
     . $locale->text('Save') . qq|">
 |;
index 048346c..fb04cd7 100644 (file)
@@ -8,8 +8,6 @@ function calculate_qty_selection_window(input_name, alu, formel, row) {
   }  else var action = "calculate_qty";
   url = "common.pl?" +
     "action=" + action + "&" +
-    "login=" + encodeURIComponent(document.getElementsByName("login")[0].value) + "&" +
-    "password=" + encodeURIComponent(document.getElementsByName("password")[0].value) + "&" +
     "name=" + escape(name) + "&" +
     "input_name=" + escape(input_name) + "&" +
     "description=" + escape(description) + "&" +
index b354d3c..a89fa02 100644 (file)
@@ -44,8 +44,6 @@ function set_longdescription_window(input_name) {
   var name = document.getElementsByName(input_name)[0].value;
   url = "common.pl?" +
     "action=set_longdescription&" +
-    "login=" +  encodeURIComponent(document.getElementsByName("login")[0].value)+ "&"+
-    "password=" + encodeURIComponent(document.getElementsByName("password")[0].value) + "&" +
     "longdescription=" + escape_more(document.getElementsByName(input_name)[0].value) + "&" +
     "input_name=" + escape_more(input_name) + "&"
   window.open(url, "_new_generic", parm);
index 4d1bf8d..1be1c71 100644 (file)
@@ -3,8 +3,6 @@ function customer_or_vendor_selection_window(input_name, input_id, is_vendor, al
   var name = document.getElementsByName(input_name)[0].value;
   url = "common.pl?" +
     "action=cov_selection_internal&" +
-    "login=" + escape(document.forms[0].login.value) + "&" +
-    "password=" + escape(document.forms[0].password.value) + "&" +
     "name=" + escape_more(name) + "&" +
     "input_name=" + escape(input_name) + "&" +
     "input_id=" + escape(input_id) + "&" +
index a94f3c0..89a9a89 100644 (file)
@@ -3,8 +3,6 @@ function delivery_customer_selection_window(input_name, input_id) {
   var name = document.getElementsByName(input_name)[0].value;
   url = "common.pl?" +
     "action=delivery_customer_selection&" +
-    "login=" + escape(document.getElementsByName("login")[0].value) + "&" +
-    "password=" + escape(document.getElementsByName("password")[0].value) + "&" +
     "name=" + escape(name) + "&" +
     "input_name=" + escape(input_name) + "&" +
     "input_id=" + escape(input_id)
index 060dbbd..a98722e 100644 (file)
@@ -2,8 +2,6 @@ function set_email_window(input_subject, input_body, input_attachment) {
   var parm = centerParms(800,600) + ",width=800,height=600,status=yes,scrollbars=yes";
   var url = "dn.pl?" +
     "action=set_email&" +
-    "login=" +  encodeURIComponent(document.getElementsByName("login")[0].value)+ "&"+
-    "password=" + encodeURIComponent(document.getElementsByName("password")[0].value) + "&" +
     "email_subject=" + escape_more(document.getElementsByName(input_subject)[0].value) + "&" +
     "email_body=" + escape_more(document.getElementsByName(input_body)[0].value) + "&" +
     "email_attachment=" + escape_more(document.getElementsByName(input_attachment)[0].value) + "&" +
index 220acd6..87f8f10 100644 (file)
@@ -3,8 +3,6 @@ function parts_language_selection_window(input_name) {
   var name = document.getElementsByName(input_name)[0].value;
   url = "ic.pl?" +
     "action=parts_language_selection&" +
-    "login="           + escape_more(document.ic.login.value)           + "&" +
-    "password="        + escape_more(document.ic.password.value)        + "&" +
     "id="              + escape_more(document.ic.id.value)              + "&" +
     "language_values=" + escape_more(document.ic.language_values.value) + "&" +
     "name="            + escape_more(name)                              + "&" +
index 8dd1e69..8888ab6 100644 (file)
@@ -1,8 +1,6 @@
 function set_history_uri() {
   document.location.href = "am.pl?" +
     "action=show_am_history&" +
-    "login=" +  encodeURIComponent(document.getElementsByName("login")[0].value)+ "&"+
-    "password=" + encodeURIComponent(document.getElementsByName("password")[0].value) + "&" +
     "longdescription=" + "&" +
     "einschraenkungen=" + document.getElementById("einschraenkungen").value + "&" +
     "transdate=" + document.getElementById("transdate_hidden").value + "&" +
index 137e219..2aeb7d4 100644 (file)
@@ -15,8 +15,6 @@ function set_history_window(id) {
   var name = "History";
   url = "common.pl?" +
     "action=show_history&" +
-    "login=" +  encodeURIComponent(document.getElementsByName("login")[0].value)+ "&"+
-    "password=" + encodeURIComponent(document.getElementsByName("password")[0].value) + "&" +
     "longdescription=" + "&" +
     "input_name=" + escape(id) + "&"
   window.open(url, "_new_generic", parm);
index b85614b..5595e72 100644 (file)
@@ -7,8 +7,6 @@ function show_vc_details(vc) {
     vc_id = vc_id[0].value;
   url = "common.pl?" +
     "action=show_vc_details&" +
-    "login=" + escape(document.getElementsByName("login")[0].value) + "&" +
-    "password=" + escape(document.getElementsByName("password")[0].value) + "&" +
     "vc=" + escape(vc) + "&" +
     "vc_id=" + escape(vc_id)
   //alert(url);
index 19e232d..41f6e17 100644 (file)
@@ -3,8 +3,6 @@ function vendor_selection_window(input_name, input_id) {
   var name = document.getElementsByName(input_name)[0].value;
   url = "common.pl?" +
     "action=vendor_selection&" +
-    "login=" + escape(document.getElementsByName("login")[0].value) + "&" +
-    "password=" + escape(document.getElementsByName("password")[0].value) + "&" +
     "name=" + escape(name) + "&" +
     "input_name=" + escape(input_name) + "&" +
     "input_id=" + escape(input_id)