register.php (2162B)
1 <!-- echo out the system feedback (error and success messages) --> 2 <?php $this->renderFeedbackMessages(); ?> 3 4 <!-- login box on left side --> 5 <div class="login-box" style="width: 50%; display: block;"> 6 <h2>Register a new account</h2> 7 8 <!-- register form --> 9 <form method="post" action="<?php echo Config::get('URL'); ?>/login/register_action"> 10 <!-- the user name input field uses a HTML5 pattern check --> 11 <input type="text" pattern="[a-zA-Z0-9]{2,64}" name="user_name" placeholder="Username (letters/numbers, 2-64 chars)" required /> 12 <input type="text" name="user_email" placeholder="email address (a real address)" required /> 13 <input type="password" name="user_password_new" pattern=".{6,}" placeholder="Password (6+ characters)" required autocomplete="off" /> 14 <input type="password" name="user_password_repeat" pattern=".{6,}" required placeholder="Repeat your password" autocomplete="off" /> 15 16 <!-- show the captcha by calling the login/showCaptcha-method in the src attribute of the img tag --> 17 <img id="captcha" src="<?php echo Config::get('URL'); ?>/login/showCaptcha" /> 18 <input type="text" name="captcha" placeholder="Please enter above characters" required /> 19 20 <!-- quick & dirty captcha reloader --> 21 <a href="#" style="display: block; font-size: 11px; margin: 5px 0 15px 0; text-align: center" 22 onclick="document.getElementById('captcha').src = '<?php echo Config::get('URL'); ?>/login/showCaptcha?' + Math.random(); return false">Reload Captcha</a> 23 24 <input type="submit" value="Register" /> 25 </form> 26 </div> 27 <p style="display: block; font-size: 11px; color: #999;"> 28 Please note: This captcha will be generated when the img tag requests the captcha-generation 29 (= a real image) from YOURURL/login/showcaptcha. As this is a client-side triggered request, a 30 $_SESSION["captcha"] dump will not show the captcha characters. The captcha generation 31 happens AFTER the request that generates THIS page has been finished. 32 </p>