summaryrefslogtreecommitdiff
path: root/bin/lynx/pw.pl
blob: a634e74bc878f6dd1a52726ef95a706a46faddce (plain)
  1. #=====================================================================
  2. # LedgerSMB Small Medium Business Accounting
  3. # Copyright (c) 2004
  4. #
  5. # Author: DWS Systems Inc.
  6. # Web: http://sourceforge.net/projects/ledger-smb/
  7. #
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; either version 2 of the License, or
  12. # (at your option) any later version.
  13. #
  14. # This program is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. # GNU General Public License for more details.
  18. # You should have received a copy of the GNU General Public License
  19. # along with this program; if not, write to the Free Software
  20. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. #======================================================================
  22. 1;
  23. # end of main
  24. sub getpassword {
  25. my ($s) = @_;
  26. $form->{endsession} = 1;
  27. $form->header;
  28. $sessionexpired = qq|<b><font color=red><blink>|.$locale->text('Session expired!').qq|</blink></font></b><p>| if $s;
  29. print qq|
  30. <script language="JavaScript" type="text/javascript">
  31. <!--
  32. function sf(){
  33. document.pw.password.focus();
  34. }
  35. // End -->
  36. </script>
  37. <body onload="sf()">
  38. $sessionexpired
  39. <form method=post action=$form->{script} name=pw>
  40. <table>
  41. <tr>
  42. <th align=right>|.$locale->text('Password').qq|</th>
  43. <td><input type=password name=password size=30></td>
  44. <td><input type=submit value="|.$locale->text('Continue').qq|"></td>
  45. </tr>
  46. </table>
  47. |;
  48. for (qw(script endsession password)) { delete $form->{$_} }
  49. $form->hide_form;
  50. print qq|
  51. </form>
  52. </body>
  53. </html>
  54. |;
  55. }