forked from 4ducky/4ducky
Move the original PHP site into legacy/
The PHP sources, templates and old jQuery-based scripts move unchanged into legacy/ for reference. Shared assets (media/, images/, favicon.ico, the default avatar) stay at the repository root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
<?php include( $templates.'header.tpl.php' ); ?>
|
||||
<div align="center">
|
||||
<form action="<?php echo Config::$absolutePath; ?>register" method="post">
|
||||
<fieldset>
|
||||
<legend>Create Account</legend>
|
||||
|
||||
<?php if(isset($messages['validInvite'])) { ?>
|
||||
<div class="warn">Not a valid invitecode!<br />Code: <?php echo $messages['validInvite'] ?></div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['nameInUse']) ) { ?>
|
||||
<div class="warn">This Username is already registered!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['nameInvalid']) ) { ?>
|
||||
<div class="warn">Your name must be at least 2 characters long an may not have any special characters!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['passToShort']) ) { ?>
|
||||
<div class="warn">Your password must be at least 6 characters long!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['passNotEqual']) ) { ?>
|
||||
<div class="warn">Your both passwords are not equal!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['emailInUse']) ) { ?>
|
||||
<div class="warn">There is already a registered user with this E-Mail address!</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( isset($messages['wrongEmail']) ) { ?>
|
||||
<div class="warn">Your E-Mail address seems to be invalid!</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['registerClose']) ) { ?>
|
||||
<div class="warn">Register Closed!</div>
|
||||
<?php } ?>
|
||||
<?php if( isset($messages['captchaInc']) ) { ?>
|
||||
<div class="warn">Incorrect Captcha!</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<dl class="form">
|
||||
<dt>Username:</dt>
|
||||
<dd>
|
||||
<input type="text" name="name" value="<?php echo htmlspecialchars($_POST['name']); ?>"/>
|
||||
Only letters and numbers; at least 2 characters long; no spaces
|
||||
</dd>
|
||||
|
||||
<dt>E-Mail:</dt>
|
||||
<dd>
|
||||
<input type="text" name="email" value="<?php echo htmlspecialchars($_POST['email']); ?>"/>
|
||||
Must be valid!
|
||||
</dd>
|
||||
|
||||
<dt>Password:</dt>
|
||||
<dd>
|
||||
<input type="password" name="pass" class="pass"/>
|
||||
</dd>
|
||||
|
||||
<dt>(Repeat)</dt>
|
||||
<dd>
|
||||
<input type="password" name="pass2" class="pass"/>
|
||||
</dd>
|
||||
|
||||
<dt>Captcha:</dt>
|
||||
<dd>
|
||||
<?php
|
||||
require_once('recaptchalib.php');
|
||||
$publickey = "6LfIwOYSAAAAALllrivDb1JTAfKDIIzcjv_hwZ60"; // you got this from the signup page
|
||||
echo recaptcha_get_html($publickey);
|
||||
?>
|
||||
|
||||
</dd>
|
||||
|
||||
<dt> </dt>
|
||||
<dd>
|
||||
<input type="submit" name="register" class="button register" value="Register" />
|
||||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<?php include( $templates.'footer.tpl.php' ); ?>
|
||||
Reference in New Issue
Block a user