Closes #164 Tweak login UI to allow for longer strings
This commit is contained in:
parent
f93620b09e
commit
9411f9f980
@ -326,12 +326,15 @@ function print_login()
|
||||
hesk_handle_messages();
|
||||
?></div>
|
||||
<div>
|
||||
<div class="panel panel-default form-signin">
|
||||
<div class="panel-heading">
|
||||
<h4><span <?php echo $iconDisplay; ?>><span class="mega-octicon octicon-sign-in"></span> </span><?php echo $hesklang['admin_login']; ?></a></h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<form class="form-signin form-horizontal" role="form" action="index.php" method="post" name="form1">
|
||||
|
||||
<h2 class="form-signin-heading"><span <?php echo $iconDisplay; ?>><span class="mega-octicon octicon-sign-in"></span> </span><?php echo $hesklang['admin_login']; ?></a></h2><br/>
|
||||
<?php if (in_array('pass',$_SESSION['a_iserror'])) { echo '<div class="form-group has-error">';} else { echo '<div class="form-group">';}?>
|
||||
<label for="user" class="col-sm-3 control-label"><?php echo $hesklang['username']; ?>:</label>
|
||||
<div class="col-sm-9">
|
||||
<label for="user" class="col-sm-4 control-label"><?php echo $hesklang['username']; ?>:</label>
|
||||
<div class="col-sm-8">
|
||||
<?php
|
||||
|
||||
if (defined('HESK_USER'))
|
||||
@ -382,8 +385,8 @@ function print_login()
|
||||
</div>
|
||||
</div>
|
||||
<?php if (in_array('pass',$_SESSION['a_iserror'])) { echo '<div class="form-group has-error">';} else { echo '<div class="form-group">';}?>
|
||||
<label for="pass" class="col-sm-3 control-label"><?php echo $hesklang['pass']; ?>:</label>
|
||||
<div class="col-sm-9">
|
||||
<label for="pass" class="col-sm-4 control-label"><?php echo $hesklang['pass']; ?>:</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="password" class="form-control" id="pass" name="pass" size="35" placeholder="<?php echo $hesklang['pass']; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
@ -420,23 +423,31 @@ function print_login()
|
||||
</script>
|
||||
<?php
|
||||
require_once(HESK_PATH . 'inc/recaptcha/recaptchalib.php');
|
||||
echo '<div class="form-group"><div class="col-md-8 col-md-offset-4">';
|
||||
echo recaptcha_get_html($hesk_settings['recaptcha_public_key'], null, true);
|
||||
echo '</div></div>';
|
||||
}
|
||||
// Use reCaptcha API v2?
|
||||
elseif ($hesk_settings['recaptcha_use'] == 2)
|
||||
{
|
||||
?>
|
||||
<div class="form-group">
|
||||
<div class="col-md-8 col-md-offset-4">
|
||||
<div class="g-recaptcha" data-sitekey="<?php echo $hesk_settings['recaptcha_public_key']; ?>"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
// At least use some basic PHP generated image (better than nothing)
|
||||
else
|
||||
{
|
||||
echo '<div class="form-group"><div class="col-md-8 col-md-offset-4">';
|
||||
$cls = in_array('mysecnum',$_SESSION['a_iserror']) ? ' class="isError" ' : '';
|
||||
|
||||
echo $hesklang['sec_enter'].'<br /> <br /><img src="'.HESK_PATH.'print_sec_img.php?'.rand(10000,99999).'" width="150" height="40" alt="'.$hesklang['sec_img'].'" title="'.$hesklang['sec_img'].'" border="1" name="secimg" style="vertical-align:text-bottom" /> '.
|
||||
'<a href="javascript:void(0)" onclick="javascript:document.form1.secimg.src=\''.HESK_PATH.'print_sec_img.php?\'+ ( Math.floor((90000)*Math.random()) + 10000);"><img src="'.HESK_PATH.'img/reload.png" height="24" width="24" alt="'.$hesklang['reload'].'" title="'.$hesklang['reload'].'" border="0" style="vertical-align:text-bottom" /></a>'.
|
||||
'<br /> <br /><input type="text" name="mysecnum" size="20" maxlength="5" '.$cls.' />';
|
||||
echo '</div></div>';
|
||||
}
|
||||
} // End if $hesk_settings['secimg_use'] == 2
|
||||
|
||||
@ -444,7 +455,7 @@ function print_login()
|
||||
{
|
||||
?>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<div class="col-md-offset-4 col-md-8">
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="remember_user" value="AUTOLOGIN" <?php echo $is_1; ?> /> <?php echo $hesklang['autologin']; ?></label>
|
||||
</div>
|
||||
@ -462,7 +473,7 @@ function print_login()
|
||||
{
|
||||
?>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<div class="col-md-offset-4 col-md-8">
|
||||
<div class="checkbox">
|
||||
<label><input type="checkbox" name="remember_user" value="JUSTUSER" <?php echo $is_2; ?> /> <?php echo $hesklang['remember_user']; ?></label>
|
||||
</div>
|
||||
@ -472,7 +483,7 @@ function print_login()
|
||||
} // End if $hesk_settings['autologin']
|
||||
?>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<div class="col-md-offset-4 col-md-8">
|
||||
<input type="submit" value="<?php echo $hesklang['click_login']; ?>" class="btn btn-default" />
|
||||
<input type="hidden" name="a" value="do_login" />
|
||||
<?php
|
||||
@ -492,6 +503,9 @@ function print_login()
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
@ -134,13 +134,12 @@
|
||||
text-decoration: underline;
|
||||
}
|
||||
.form-signin {
|
||||
max-width: 330px;
|
||||
padding: 15px;
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.loginError {
|
||||
width: 40%;
|
||||
padding: 20px;
|
||||
max-width: 800px;
|
||||
padding-top: 20px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
@ -137,13 +137,12 @@
|
||||
text-decoration: underline;
|
||||
}
|
||||
.form-signin {
|
||||
max-width: 330px;
|
||||
padding: 15px;
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.loginError {
|
||||
width: 40%;
|
||||
padding: 20px;
|
||||
max-width: 800px;
|
||||
padding-top: 20px;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user