Don't escape foldername too much
[squasher.git] / templates / login.tpl
1 {extends file='layout.tpl'}
2
3
4 {block extra_head}
5 <script src="js/md5.js"></script>
6 <script>
7         function hasher(){ldelim}
8                 var salt = '{$salt|escape:'quotes'}';
9                 document.loginform.pass.value=hex_md5(hex_md5(document.loginform.pass.value)+salt);
10         {rdelim}
11 </script>
12 {/block}
13
14
15 {block extra_wrappercontainer_class}loginwrappercontainer{/block}
16 {block extra_content_class}login{/block}
17
18
19 {* We hide the top-right control menu *}
20 {block banner}&nbsp;{/block}
21
22
23 {block content}
24 <form name="loginform" onSubmit="hasher();" method="post">
25         <table align=center>
26         <tr>
27                 <td>Username :
28                 <td><input name="user" type=text value="">
29         <tr>
30                 <td>Password :
31                 <td><input name="pass" type=password value="">
32         </table>
33         <button class="submit" type=submit>Sign in</button>
34 </form>
35 {/block}
36
37
38 {* vim: set syntax=smarty ts=4 sw=4 sts=4 sr noet: *}