Spoiler anzeigen
PHP
<script type="text/javascript">
$(document).ready(function(){
$("#id_name").click(function() {
if($(this).val() == 'Enter your desired username') {
$(this).val('');
}
$(this).removeClass('input-error');
});
$('#id_name').blur(function() {
if($(this).val() == ''){
$(this).val('Enter your desired username');
}
});
$("#id_realname").click(function() {
if($(this).val() == 'Enter your real name (optional)') {
$(this).val('');
}
$(this).removeClass('input-error');
});
$('#id_realname').blur(function() {
if($(this).val() == ''){
$(this).val('Enter your real name (optional)');
}
});
$('#submit_signup').click(function(event){
event.preventDefault();
finManager.register('default');
});
});
</script>
<script type="text/javascript" >
ASSET_URL = 'static/assets';
staticUrl = 'static/';
defaultError = 'Something got wrong, try again.';
$(document).ready(function() {
$('.error-container').live("hover", function(){
$(this).fadeOut();
});
});
</script>
</head>
<body>
<div id="container">
<header>
<a class="logo"></a>
<div class="percent"><span style="width:70%;">75%</span></div>
</header>
<div id="left">
<div class="thanks"></div>
<div class="caption">You're almost done! Pick a unique username to use on the hotel.<BR><BR>If you were referred by a user, enter their username.</div>
</div>
<div id="right">
<div class="step">
<div class="avatar">
<img src="http://habbo.co.uk/habbo-imaging/avatarimage?figure=<?php echo $_SESSION["register"]["IMG"];?>&direction=2&head_direction=2&action=wav" alt="Retro Avatar" />
</div>
<div class="text">
<form id="finish_form">
<h1><?php if($_SESSION["register"]["AG"] == 'M'){
echo 'Give him a name!';
}
else { echo 'Give her a name!'; } ?></h1>
<div class="input-area">
<input id="id_name" type="text" class="text" name="username" value="Enter your desired username" maxlength="32" />
<div id="error_name" class="errors error-bottom"></div>
</div>
<div class="input-area">
<input id="id_realname" type="text" class="text" name="realname" value="Enter your real name (optional)" maxlength="50" />
<div id="error_realname" class="errors error-bottom"></div>
</div>
<div class="tip">
TIP: Try and pick something unique that will standout in the hotel. You may also change your username later.
<BR>Your username must also be between 3 - 32 characters.
</div>
<hr />
<h1>Referrals</h1>
<h2>If you were referred by a user, enter their username</h2>
<div class="input-area">
<input id="id_referrals" type="text" class="text" name="referrals" value="<?php if(isset($_SESSION["register"]["refernew"])){ echo clean($_SESSION["register"]["refernew"]); } else {echo '';} ?>" maxlength="32" />
<div id="error_referrals" class="errors error-bottom"></div>
</div>
<hr />
<h1>Captcha</h1>
<div class="input-area">
<div id="captcha-container">
<script type="text/javascript"
src="http://www.google.com/recaptcha/api/challenge?k=6Le-aQoAAAAAABnHRzXH_W-9-vx4B8oSP3_L5tb0">
</script>
<noscript>
<iframe src="http://www.google.com/recaptcha/api/noscript?k=6Le-aQoAAAAAABnHRzXH_W-9-vx4B8oSP3_L5tb0" height="300" width="500" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge">
</noscript>
</div>
<div id="error_captcha" class="errors error-bottom"></div>
</div><BR>
<a id="submit_signup" class="complete submit-button button-link" href="">
<div class="button-content">Complete!</div>
</a>
<a id="submit_signup" class="submit-button button-link cancel" href="<?php echo WWW ; ?>/register/cancel">
<div class="button-content">Cancel</div>
</a>
</form>
</div>
</div>
</div>
</div>
</body>
</html>
Alles anzeigen
Der Code vom Register Step mit dem Captcha Code.. Die CMS ist eine Uber soweit ich weiss.. welche Datei wäre noch relevant?