Skip to content

Commit

Permalink
Create login.form.php
Browse files Browse the repository at this point in the history
  • Loading branch information
micdech committed Feb 11, 2014
1 parent 2f5f256 commit 20bbef2
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions themes/default/inc/login.form.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?
if ($this->captcha)
{
?>
<h2><?php echo _('Administrative Login'); ?></h2>

<p>
<?php
echo sprintf(_('You have requested to reset your password. If you are '
.'sure you want to do this, please fill in the captcha below. '
.'Enter the text you see between the brackets (%s[]%s).'),
'<tt>', '</tt>');
?>
</p>

<p>
<strong><?php echo _('Captcha'); ?></strong> -
<tt>[ <?php echo $this->captcha; ?> ]</tt>
</p>

<form method="post" action="">
<input type="hidden" name="realdeal"
value="<?php echo $this->captcha; ?>" />

<p>
<?php echo _('Captcha Text:'); ?>
<input type="text" name="captcha" />
</p>

<input type="submit" name="resetPassword"
value="<?php echo _('Reset Password'); ?>" />
</form>
<?php
}
else
{
?>
<h3><?php echo _('Administrative Login'); ?></h3>

<form method="post" action="">
<fieldset id="login">
<legend><?php echo _('Login'); ?></legend>

<input type="hidden" name="referer"
value="<?php echo $this->referer; ?>" />

<div>
<label for="username"><?php echo _('Username'); ?></label>
<input type="text" name="username" id="username" />
</div>

<div>
<label for="password"><?php echo _('Password'); ?></label>
<input type="password" name="password" id="password" />
</div>

</fieldset>

<div class="buttons">
<input type="submit" name="submit"
value="<?php echo _('Log In'); ?>" />
<input type="submit" name="resetPassword" id="resetPassword"
class="green" value="<?php echo _('Forgot your password?'); ?>" />
</div>
</form>
<?php
}
?>

0 comments on commit 20bbef2

Please sign in to comment.