summaryrefslogtreecommitdiff
path: root/bin/mozilla/pw.pl
blob: 5ec4516ddf9aa8fb45cbec8b666e6e68dcd1db69 (plain)
  1. #=====================================================================
  2. # LedgerSMB
  3. # Small Medium Business Accounting software
  4. #
  5. # See COPYRIGHT file for copyright information
  6. #======================================================================
  7. #
  8. # This file has NOT undergone whitespace cleanup.
  9. #
  10. #======================================================================
  11. 1;
  12. # end of main
  13. sub getpassword {
  14. my ($s) = @_;
  15. $form->{endsession} = 1;
  16. $sessionexpired = qq|<b><font color=red><blink>|.$locale->text('Session expired!').qq|</blink></font></b><p>| if $s;
  17. my $headeradd = qq|
  18. <script language="JavaScript" type="text/javascript">
  19. <!--
  20. function sf(){
  21. document.pw.password.focus();
  22. }
  23. // End -->
  24. </script>|;
  25. $form->header(undef, $headeradd);
  26. print qq|
  27. <body onload="sf()">
  28. $sessionexpired
  29. <form method=post action=$form->{script} name=pw>
  30. <table>
  31. <tr>
  32. <th align=right>|.$locale->text('Password').qq|</th>
  33. <td><input type=password name=password size=30></td>
  34. <td><input type=submit value="|.$locale->text('Continue').qq|"></td>
  35. </tr>
  36. </table>
  37. |;
  38. for (qw(script endsession password)) { delete $form->{$_} }
  39. $form->hide_form;
  40. print qq|
  41. </form>
  42. </body>
  43. </html>
  44. |;
  45. }