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

Last change on this file since 5990 was 5990, checked in by plg, 14 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.1 KB
Line 
1<dt>{'Identification'|@translate}</dt>
2<dd>
3        {if isset($USERNAME)}
4        <p>{'Hello'|@translate}&nbsp;{$USERNAME}&nbsp;!</p>
5        {/if}
6
7        <ul>
8        {if isset($U_REGISTER)}
9        <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow">{'Register'|@translate}</a></li>
10        {/if}
11
12        {if isset($U_LOGIN)}
13        <li><a href="{$U_LOGIN}" rel="nofollow">{'Login'|@translate}</a></li>
14        {/if}
15
16        {if isset($U_LOGOUT)}
17        <li><a href="{$U_LOGOUT}">{'Logout'|@translate}</a></li>
18        {/if}
19
20        {if isset($U_PROFILE)}
21        <li><a href="{$U_PROFILE}" title="{'customize the appareance of the gallery'|@translate}">{'Customize'|@translate}</a></li>
22        {/if}
23
24        {if isset($U_ADMIN)}
25        <li><a href="{$U_ADMIN}" title="{'available for administrators only'|@translate}">{'Administration'|@translate}</a></li>
26        {/if}
27        </ul>
28
29        {if isset($U_LOGIN)}
30        <form method="post" action="{$U_LOGIN}" id="quickconnect">
31        <input type="hidden" name="redirect" value="{$smarty.server.REQUEST_URI|urlencode}">
32        <fieldset>
33        <legend>{'Quick connect'|@translate}</legend>
34        <div>
35        <label for="username">{'Username'|@translate}</label><br>
36        <input type="text" name="username" id="username" value="" style="width:99%">
37        </div>
38
39        <div><label for="password">{'Password'|@translate}</label>
40        <br>
41        <input type="password" name="password" id="password" style="width:99%">
42        </div>
43
44        {if $AUTHORIZE_REMEMBERING}
45        <div><label for="remember_me">
46        {'Auto login'|@translate}
47        <input type="checkbox" name="remember_me" id="remember_me" value="1">
48        </label></div>
49        {/if}
50
51        <div>
52        <input class="submit" type="submit" name="login" value="{'Submit'|@translate}">
53        <ul class="actions">
54                <li><a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/lost_password.png" class="button" alt="{'Forgot your password?'|@translate}"></a></li>
55                {if isset($U_REGISTER)}
56                <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/register.png" class="button" alt="{'Register'|@translate}"></a></li>
57                {/if}
58        </ul>
59        </div>
60
61        </fieldset>
62        </form>
63        {/if}
64</dd>
65
Note: See TracBrowser for help on using the repository browser.