summaryrefslogtreecommitdiff
path: root/bin/lynx/pw.pl
blob: e2824d8bbaa4e566770275c042008a2b2507f52f (plain)
  1. #=====================================================================
  2. # LedgerSMB Small Medium Business Accounting
  3. # Copyright (C) 2006
  4. # This work contains copyrighted information from a number of sources all used
  5. # with permission.
  6. #
  7. # This file contains source code included with or based on SQL-Ledger which
  8. # is Copyright Dieter Simader and DWS Systems Inc. 2000-2005 and licensed
  9. # under the GNU General Public License version 2 or, at your option, any later
  10. # version. For a full list including contact information of contributors,
  11. # maintainers, and copyright holders, see the CONTRIBUTORS file.
  12. #
  13. # Original Copyright Notice from SQL-Ledger 2.6.17 (before the fork):
  14. # Copyright (c) 2004
  15. #
  16. # Author: DWS Systems Inc.
  17. # Web: http://www.sql-ledger.org
  18. #
  19. #
  20. #
  21. # Author: DWS Systems Inc.
  22. # Web: http://sourceforge.net/projects/ledger-smb/
  23. #
  24. #
  25. # This program is free software; you can redistribute it and/or modify
  26. # it under the terms of the GNU General Public License as published by
  27. # the Free Software Foundation; either version 2 of the License, or
  28. # (at your option) any later version.
  29. #
  30. # This program is distributed in the hope that it will be useful,
  31. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  32. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  33. # GNU General Public License for more details.
  34. # You should have received a copy of the GNU General Public License
  35. # along with this program; if not, write to the Free Software
  36. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  37. #======================================================================
  38. 1;
  39. # end of main
  40. sub getpassword {
  41. my ($s) = @_;
  42. $form->{endsession} = 1;
  43. $form->header;
  44. $sessionexpired = qq|<b><font color=red><blink>|.$locale->text('Session expired!').qq|</blink></font></b><p>| if $s;
  45. print qq|
  46. <script language="JavaScript" type="text/javascript">
  47. <!--
  48. function sf(){
  49. document.pw.password.focus();
  50. }
  51. // End -->
  52. </script>
  53. <body onload="sf()">
  54. $sessionexpired
  55. <form method=post action=$form->{script} name=pw>
  56. <table>
  57. <tr>
  58. <th align=right>|.$locale->text('Password').qq|</th>
  59. <td><input type=password name=password size=30></td>
  60. <td><input type=submit value="|.$locale->text('Continue').qq|"></td>
  61. </tr>
  62. </table>
  63. |;
  64. for (qw(script endsession password)) { delete $form->{$_} }
  65. $form->hide_form;
  66. print qq|
  67. </form>
  68. </body>
  69. </html>
  70. |;
  71. }