summaryrefslogtreecommitdiff
path: root/bin/mozilla/pw.pl
blob: 1b219c8e6e593a99634d5c44cb1bbaa3df650b98 (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. $form->header;
  17. $sessionexpired = qq|<b><font color=red><blink>|.$locale->text('Session expired!').qq|</blink></font></b><p>| if $s;
  18. print qq|
  19. <script language="JavaScript" type="text/javascript">
  20. <!--
  21. function sf(){
  22. document.pw.password.focus();
  23. }
  24. // End -->
  25. </script>
  26. <body onload="sf()">
  27. $sessionexpired
  28. <form method=post action=$form->{script} name=pw>
  29. <table>
  30. <tr>
  31. <th align=right>|.$locale->text('Password').qq|</th>
  32. <td><input type=password name=password size=30></td>
  33. <td><input type=submit value="|.$locale->text('Continue').qq|"></td>
  34. </tr>
  35. </table>
  36. |;
  37. for (qw(script endsession password)) { delete $form->{$_} }
  38. $form->hide_form;
  39. print qq|
  40. </form>
  41. </body>
  42. </html>
  43. |;
  44. }