1. libgd
  2. Untitled project
  3. gd-websites

Source

gd-websites / issuetracker / templates / loginbox.tpl


<form action="{$baseurl}index.php?do=authenticate" method="post">
<div>
  <label for="lbl_user_name">{L('username')}</label>
  <input class="text" type="text" id="lbl_user_name" name="user_name" size="17" maxlength="30" />

  <label for="lbl_password">{L('password')}</label>
  <input class="password" type="password" id="lbl_password" name="password" size="17" maxlength="30" />

  <label for="lbl_remember">{L('rememberme')}</label>
  <input type="checkbox" id="lbl_remember" name="remember_login" />
  
  <input type="hidden" name="return_to" value="{$_SERVER['REQUEST_URI']}" />

  <button accesskey="l" type="submit">{L('login')}</button>

  <div id="links">
    <?php if ($user->isAnon() && $fs->prefs['anon_reg']): ?>
    <a href="{CreateURL('register','')}">{L('register')}</a>
    <?php endif; ?>
    <?php if ($user->isAnon() && $fs->prefs['user_notify']): ?>
    <?php if($fs->prefs['anon_reg']){ echo '&nbsp;&nbsp;&nbsp;'; } ?>
    <a href="{CreateURL('lostpw','')}">{L('lostpassword')}</a>
    <?php else: ?>
    <a id="forgotlink" href="mailto:<?php foreach($admin_emails as $mail): ?>{str_replace('@', '#', $mail[0])},<?php endforeach;
    ?>?subject={rawurlencode(L('lostpwforfs'))}&amp;body={rawurlencode(L('lostpwmsg1'))}{$baseurl}{rawurlencode(L('lostpwmsg2'))}<?php
             if(isset($_SESSION['failed_login'])):
             ?>{rawurlencode($_SESSION['failed_login'])}<?php
             else:
             ?>&lt;{rawurlencode(L('yourusername'))}&gt;<?php
             endif;
             ?>{rawurlencode(L('regards'))}">{L('lostpassword')}</a>
    <script type="text/javascript">var link = document.getElementById('forgotlink');link.href=link.href.replace(/#/g,"@");</script>
    <?php endif; ?>
  </div>
</div>
</form>