source: trunk/themes/default/template/identification.tpl @ 5990

Last change on this file since 5990 was 5990, checked in by plg, 11 years ago

bug 1484: prevent XSS vulnerability, encode url.

improvement: no need to transmit the REQUEST_URI from PHP, Smarty already
knows it.

  • Property svn:eol-style set to LF
File size: 2.2 KB
Line 
1<div id="content" class="content">
2
3  <div class="titrePage">
4    <ul class="categoryActions">
5      <li><a href="{$U_HOME}" title="{'Go through the gallery as a visitor'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/home.png" class="button" alt="{'Home'|@translate}"></a></li>
6    </ul>
7    <h2>{'Identification'|@translate}</h2>
8  </div>
9
10  {if isset($errors) }
11  <div class="errors">
12    <ul>
13      {foreach from=$errors item=error}
14      <li>{$error}</li>
15      {/foreach}
16    </ul>
17  </div>
18  {/if}
19
20<form action="{$F_LOGIN_ACTION}" method="post" name="login_form" class="properties">
21  <fieldset>
22    <legend>{'Connection settings'|@translate}</legend>
23
24    <input type="hidden" name="redirect" value="{$U_REDIRECT|urlencode}">
25
26    <ul>
27      <li>
28        <span class="property">
29          <label for="username">{'Username'|@translate}</label>
30        </span>
31        <input tabindex="1" class="login" type="text" name="username" id="username" size="25" maxlength="40">
32      </li>
33
34      <li>
35        <span class="property">
36          <label for="password">{'Password'|@translate}</label>
37        </span>
38        <input tabindex="2" class="login" type="password" name="password" id="password" size="25" maxlength="25">
39      </li>
40
41      {if $authorize_remembering }
42      <li>
43        <span class="property">
44          <label for="Auto login">{'Auto login'|@translate}</label>
45        </span>
46        <input tabindex="3" type="checkbox" name="remember_me" id="remember_me" value="1">
47      </li>
48      {/if}
49    </ul>
50  </fieldset>
51
52  <p><input class="submit" tabindex="4" type="submit" name="login" value="{'Submit'|@translate}"></p>
53
54  <p>
55    {if isset($U_REGISTER) }
56    <a href="{$U_REGISTER}" title="{'Register'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/register.png" class="button" alt="{'Register'|@translate}"> {'Register'|@translate}</a>
57    {/if}
58    <a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/lost_password.png" class="button" alt="{'Forgot your password?'|@translate}"> {'Forgot your password?'|@translate}</a>
59  </p>
60
61</form>
62
63<script type="text/javascript"><!--
64document.login_form.username.focus();
65//--></script>
66
67</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.