forked from panique/huge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
297 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,49 @@ | ||
<div class="container"> | ||
|
||
<!-- echo out the system feedback (error and success messages) --> | ||
<?php $this->renderFeedbackMessages(); ?> | ||
<div class="row"> | ||
<div class="col-md-12" | ||
|
||
<!-- echo out the system feedback (error and success messages) --> | ||
<?php $this->renderFeedbackMessages(); ?> | ||
|
||
</div> | ||
<!-- login box on left side --> | ||
<div class="login-box" style="width: 50%; display: block;"> | ||
<div class="col-md-6 col-md-offset-3 well text-center"> | ||
<h2>Register a new account</h2> | ||
|
||
<!-- register form --> | ||
<form method="post" action="<?php echo Config::get('URL'); ?>login/register_action"> | ||
<!-- the user name input field uses a HTML5 pattern check --> | ||
<input type="text" pattern="[a-zA-Z0-9]{2,64}" name="user_name" placeholder="Username (letters/numbers, 2-64 chars)" required /> | ||
<input type="text" name="user_email" placeholder="email address (a real address)" required /> | ||
<input type="password" name="user_password_new" pattern=".{6,}" placeholder="Password (6+ characters)" required autocomplete="off" /> | ||
<input type="password" name="user_password_repeat" pattern=".{6,}" required placeholder="Repeat your password" autocomplete="off" /> | ||
|
||
<div class="form-group"> | ||
<input class="form-control" type="text" pattern="[a-zA-Z0-9]{2,64}" name="user_name" placeholder="Username (letters/numbers, 2-64 chars)" required /> | ||
</div> | ||
<div class="form-group"> | ||
<input class="form-control" type="text" name="user_email" placeholder="email address (a real address)" required /> | ||
</div> | ||
<div class="form-group"> | ||
<input class="form-control" type="password" name="user_password_new" pattern=".{6,}" placeholder="Password (6+ characters)" required autocomplete="off" /> | ||
</div> | ||
<div class="form-group"> | ||
<input class="form-control" type="password" name="user_password_repeat" pattern=".{6,}" required placeholder="Repeat your password" autocomplete="off" /> | ||
</div> | ||
<!-- show the captcha by calling the login/showCaptcha-method in the src attribute of the img tag --> | ||
<img id="captcha" src="<?php echo Config::get('URL'); ?>login/showCaptcha" /> | ||
<input type="text" name="captcha" placeholder="Please enter above characters" required /> | ||
|
||
<!-- quick & dirty captcha reloader --> | ||
<a href="#" style="display: block; font-size: 11px; margin: 5px 0 15px 0; text-align: center" | ||
onclick="document.getElementById('captcha').src = '<?php echo Config::get('URL'); ?>login/showCaptcha?' + Math.random(); return false">Reload Captcha</a> | ||
<div class="col-md-6 col-md-offset-3"> | ||
<img class="img-responsive" id="captcha" src="<?php echo Config::get('URL'); ?>login/showCaptcha" /> | ||
<!-- quick & dirty captcha reloader --> | ||
<a href="#" onclick="document.getElementById('captcha').src = '<?php echo Config::get('URL'); ?>login/showCaptcha?' + Math.random(); return false">Reload Captcha</a> | ||
</div> | ||
<div class="form-group"> | ||
<input class="form-control" type="text" name="captcha" placeholder="Please enter above characters" required /> | ||
</div> | ||
|
||
<input type="submit" value="Register" /> | ||
<input class="btn btn-success" type="submit" value="Register" /> | ||
</form> | ||
</div> | ||
<div class="col-md-12"> | ||
<p> | ||
Please note: This captcha will be generated when the img tag requests the captcha-generation | ||
(= a real image) from YOURURL/login/showcaptcha. As this is a client-side triggered request, a | ||
$_SESSION["captcha"] dump will not show the captcha characters. The captcha generation | ||
happens AFTER the request that generates THIS page has been finished. | ||
</p> | ||
</div> | ||
</div> | ||
<div class="container"> | ||
<p style="display: block; font-size: 11px; color: #999;"> | ||
Please note: This captcha will be generated when the img tag requests the captcha-generation | ||
(= a real image) from YOURURL/login/showcaptcha. As this is a client-side triggered request, a | ||
$_SESSION["captcha"] dump will not show the captcha characters. The captcha generation | ||
happens AFTER the request that generates THIS page has been finished. | ||
</p> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.