Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
One last problem
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Diddy" data-source="post: 193671" data-attributes="member: 5596"><p>Register.php</p><p> </p><p>[CODE]<?php</p><p>/*=======================================================================</p><p>| UberWeb - Lightweight site system for Uber</p><p>| #######################################################################</p><p>| Copyright (c) 2009, Roy 'Meth0d'</p><p>| http://www.meth0d.org</p><p>| #######################################################################</p><p>| This program is free software: you can redistribute it and/or modify</p><p>| it under the terms of the GNU General Public License as published by</p><p>| the Free Software Foundation, either version 3 of the License, or</p><p>| (at your option) any later version.</p><p>| #######################################################################</p><p>| This program is distributed in the hope that it will be useful,</p><p>| but WITHOUT ANY WARRANTY; without even the implied warranty of</p><p>| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</p><p>| GNU General Public License for more details.</p><p>\======================================================================*/</p><p> </p><p>require_once "global.php";</p><p> </p><p> </p><p>if (LOGGED_IN)</p><p>{</p><p> header("Location: " . WWW . "/me");</p><p> exit;</p><p>}</p><p> </p><p> </p><p>$tpl->SetParam('error-messages-holder', '');</p><p>$tpl->SetParam('post-name', '');</p><p>$tpl->SetParam('post-pass', '');</p><p>$tpl->SetParam('post-tos-check', '');</p><p>$tpl->SetParam('post-mail', '');</p><p> </p><p>if (isset($_GET['doSubmit']))</p><p>{</p><p> if (isset($_POST['checkNameOnly']) && $_POST['checkNameOnly'] == 'true')</p><p> {</p><p> //$name = $_POST['bean_avatarName'];</p><p> $name = mysql_real_escape_string($_POST['bean_avatarName']);</p><p> </p><p> echo ' <div class="field field-habbo-name"></p><p> <label for="habbo-name">Username</label></p><p> <input type="text" id="habbo-name" size="32" value="' . clean($name) . '" name="bean.avatarName" class="text-field" maxlength="32"/></p><p> <a href="#" class="new-button" id="check-name-btn"><b>Check</b><i></i></a></p><p> <input type="submit" name="checkNameOnly" id="check-name" value="Check"/></p><p> <div id="name-suggestions">';</p><p> </p><p> if (!$users->IsValidName($name))</p><p> {</p><p> echo '<div class="taken"><p>Sorry, that name is invalid. Your name can contain lowercase, uppercase letters, and numbers.</p></div>';</p><p> }</p><p> else if ($users->IsNameTaken($name))</p><p> {</p><p> echo '<div class="taken"><p>Sorry, the name <strong>' . clean($name) . '</strong> is taken!</p></div>';</p><p> }</p><p> else if ($users->IsNameBlocked($name))</p><p> {</p><p> echo '<div class="taken"><p>Sorry, that name is reserved or disallowed.</p></div>';</p><p> }</p><p> else</p><p> {</p><p> echo '<div class="available"><p>The name <strong>' . clean($name) . '</strong> is available.</p></div>';</p><p> }</p><p> </p><p> echo ' </div> </p><p> <p class="help">Your name can contain lowercase and uppercase letters and numbers.</p></p><p> </div>';</p><p> </p><p> exit;</p><p> }</p><p> else if (isset($_POST['bean_avatarName']))</p><p> {</p><p> $registerErrors = Array();</p><p> </p><p> $name = mysql_real_escape_string($_POST['bean_avatarName']);</p><p> $password = $_POST['bean_password'];</p><p> $password2 = $_POST['bean_retypedPassword'];</p><p> $email = mysql_real_escape_string($_POST['bean_email']);</p><p> $dob_day = $_POST['bean_day'];</p><p> $dob_month = $_POST['bean_month'];</p><p> $dob_year = $_POST['bean_year'];</p><p> //$lang = $_POST['bean_lang'];</p><p> </p><p> $tpl->SetParam('post-name', $name);</p><p> $tpl->SetParam('post-pass', $password);</p><p> $tpl->SetParam('post-mail', $email);</p><p> </p><p> if (strlen($name) < 1 || strlen($name) > 32)</p><p> {</p><p> $registerErrors[] = "Your username must be 1 - 32 characters in length.";</p><p> }</p><p> </p><p> if ($users->IsNameTaken($name))</p><p> {</p><p> $registerErrors[] = "Sorry, that name is taken.";</p><p> } </p><p> else if ($users->IsNameBlocked($name))</p><p> {</p><p> $registerErrors[] = "Sorry, that name is reserved or disallowed.";</p><p> }</p><p> else if (!$users->IsValidName($name))</p><p> {</p><p> $registerErrors[] = "Sorry, that name is invalid. Your name can contain lowercase, uppercase letters, and numbers.";</p><p> }</p><p> </p><p> if (strlen($password) < 6)</p><p> {</p><p> $registerErrors[] = "Your password must be at least 6 characters long.";</p><p> }</p><p> </p><p> if ($password != $password2)</p><p> {</p><p> $registerErrors[] = "Your passwords do not match. Please try again.";</p><p> }</p><p> </p><p> if (!$users->IsValidEmail($email))</p><p> {</p><p> $registerErrors[] = "Invalid e-mail address.";</p><p> }</p><p> </p><p> if (!is_numeric($dob_day) || !is_numeric($dob_month) || !is_numeric($dob_year) || $dob_day <= 0 || $dob_day > 31 ||</p><p> $dob_month <= 0 || $dob_month > 12 || $dob_year < 1900 || $dob_year > 2010)</p><p> {</p><p> $registerErrors[] = "Please enter a valid date of birth.";</p><p> }</p><p> </p><p> if (!isset($_POST['bean_tos']) || $_POST['bean_tos'] != "accept")</p><p> {</p><p> $registerErrors[] = "You need to accept the Rules and Terms and Conditions to create an account.";</p><p> }</p><p> else</p><p> {</p><p> $tpl->SetParam('post-tos-check', 'checked');</p><p> }</p><p> </p><p> /*if (strtolower($lang) != "yes, i will speak english" && strtolower($lang) != "yes, i will speak english.")</p><p> {</p><p> $registerErrors[] = "You must verify you will speak English to creat an account.";</p><p> }*/</p><p> </p><p> </p><p> if (count($registerErrors) <= 0)</p><p> { </p><p> // Add user</p><p> $users->add($name, $core->uberHash($password), $email, 2, 'hd-180-1.ch-210-66.lg-270-82.sh-290-91.hr-100-', 'M');</p><p> </p><p> // Log user in</p><p> $_SESSION['SHOW_WELCOME'] = true;</p><p> $_SESSION['UBER_USER_N'] = $name;</p><p> $_SESSION['UBER_USER_H'] = $core->uberHash($password);</p><p> </p><p> // Redirect user to welcome page</p><p> header("Location: /me.php");</p><p> exit;</p><p> }</p><p> else</p><p> {</p><p> $errResult = '<div class="error-messages-holder"></p><p> <h3>Please fix the following problems and resubmit the form.</h3></p><p> <ul>';</p><p> </p><p> foreach ($registerErrors as $err)</p><p> {</p><p> $errResult .= '<li><p class="error-message">' . $err . '</p></li>';</p><p> }</p><p> </p><p> $errResult .= '</ul></div>';</p><p> </p><p> $tpl->SetParam('error-messages-holder', $errResult);</p><p> }</p><p> }</p><p>}</p><p> </p><p>$tpl->Init();</p><p> </p><p>$tpl->AddGeneric('head-init');</p><p>$tpl->AddIncludeSet('register');</p><p>$tpl->WriteIncludeFiles();</p><p>$tpl->AddGeneric('head-bottom');</p><p>$tpl->AddGeneric('page-register');</p><p>$tpl->AddGeneric('footer');</p><p> </p><p>$tpl->SetParam('page_title', 'Register your account!');</p><p> </p><p>$tpl->Output();</p><p> </p><p>?>[/CODE]</p><p> </p><p>page-register.tpl</p><p> </p><p>[CODE]<style>body { background-image: url(images/bg.png);}#phase-0-form { background: transparent url(http:///images/logo.png) no-repeat 50% 10px; padding-top: 60px }</style></p><p><style></p><p>a.new-button{margin:0 0 5px 10px;display:block;float:right;height:25px;position:relative;text-decoration:none;cursor:pointer;overflow:hidden;white-space:nowrap;}</p><p>#check-name{display:none}</p><p></style></p><p><script src="%www%/simpleregistration.js"></script></p><p><body id=""></p><p><div id="overlay"></div></p><p><div id="container" class="phase-0" style="margin-top: 10px;"></p><p> <p class="phishing-warning">Make sure the address bar begins with %www%.</p></p><p> <div class="register-container clearfix"></p><p> <div class="register-header">Register at Hotel</div></p><p> <div id="register-content"></p><p> </p><p> <div id="subheader">Fill out the form below to register here.</p><p></div></p><p> </p><p><div class="register-container-bottom-end register-content clearfix"></p><p><div id="auth-providers" class="auth-providers"></p><p> <ul></p><p> <li class="facebook"></p><p> <a href="#" onclick="" class="fbconnect_login_button"></a></p><p> </li></p><p> <li class="twitter"></p><p> <a href="#"></a></p><p><form method="post" action="" target="rpx_login"></p><p> <input type="submit" value="twitter"/></p><p></form></p><p> </li></p><p> <li class="google"></p><p> <a href="#"></a></p><p><form method="post" action="" target="rpx_login"></p><p> <input type="hidden" value="https://www.google.com/accounts/o8/id" name="openid_identifier" id="openid_identifier"/></p><p> <input type="submit" value="google"/></p><p></form></p><p> </li></p><p> <li class="hyves"></p><p> <a href="#"></a></p><p><form method="post" action="" target="rpx_login"></p><p> <input type="hidden" value="http://hyves.net/" name="openid_identifier" id="openid_identifier"/></p><p> <input type="submit" value="hyves"/></p><p></form></p><p> </li></p><p> <li class="myspace"></p><p> <a href="#"></a></p><p><form method="post" action="" target="rpx_login"></p><p> <input type="submit" value="myspace"/></p><p></form></p><p> </li></p><p> <li class="windowslive"></p><p> <a href="#"></a></p><p><form method="post" action="" target="rpx_login"></p><p> <input type="submit" value="windowslive"/></p><p></form></p><p> </li></p><p> <li class="yahoo"></p><p> <a href="#"></a></p><p><form method="post" action="" target="rpx_login"></p><p> <input type="hidden" value="http://yahoo.com" name="openid_identifier" id="openid_identifier"/></p><p> <input type="submit" value="yahoo"/></p><p></form></p><p> </li></p><p> </ul></p><p><p>You can also use these option to create an account:</p></p><p><p><b>We do not <u>yet</u> offer third-party account services. We will add this functionality during the Public BETA, for now please use regular account creation.</b></p></p><p></div></p><p><div id="register-page" style="clear: left" class="phase-0 clearfix"></p><p> <p>Welcome to </p></p><p> <div class="phase-0"></p><p> <form action="/register_submit" method="post" id="phase-0-form"></p><p> </p><p> <div id="error-messages-container"></p><p> %error-messages-holder%</p><p> </div></p><p> </p><p> <div id="name-field-container"></p><p> <div class="field field-habbo-name"></p><p> <label for="habbo-name"><b>Name</b></label></p><p> <input type="text" id="habbo-name" size="32" value="%post-name%" name="bean.avatarName" class="text-field" maxlength="32"/></p><p> <a href="#" class="new-button" id="check-name-btn"><b>Check</b><i></i></a></p><p> <input type="submit" name="checkNameOnly" id="check-name" value="Check"/></p><p> <div id="name-suggestions"></p><p> </div> </p><p> <p class="help">Choose a username (Usernames such as MOD-, ADM- & VIP- will be banned)</p></p><p> </div></p><p> </div></p><p> <div class="field field-password"></p><p> <label for="password"><b>Password</b></label></p><p> <input type="password" id="password" size="35" name="bean.password" value="%post-pass%" class="password-field" maxlength="32"/></p><p> <p class="help">Choose a password</p></p><p> </div></p><p> </p><p> <div class="field field-password2"></p><p> <label for="password2"><b>Retype Password</b></label></p><p> <input type="password" id="password2" size="35" name="bean.retypedPassword" value="" class="password-field" maxlength="32"/></p><p> <p class="help">Verify your password</p></p><p> </div></p><p> </p><p> <div class="field field-email"></p><p> <label for="email"><b>Email</b></label></p><p> <input type="text" id="email" size="35" name="bean.email" value="%post-mail%" class="text-field" maxlength="48"/></p><p> <p class="help">Enter an email address</p></p><p> </div></p><p> </p><p> <div class="field field-birthday"></p><p> <label><b>Date of Birth</b></label></p><p> <span id="bday-selects"></p><p><select name="bean.day" id="bean_day" class="dateselector"><option value="">Day</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option></select> <select name="bean.month" id="bean_month" class="dateselector"><option value="">Month</option><option value="1">January</option><option value="2">February</option><option value="3">March</option><option value="4">April</option><option value="5">May</option><option value="6">June</option><option value="7">July</option><option value="8">August</option><option value="9">September</option><option value="10">October</option><option value="11">November</option><option value="12">December</option></select> <select name="bean.year" id="bean_year" class="dateselector"><option value="">Year</option><option value="2010">2010</option><option value="2009">2009</option><option value="2008">2008</option><option value="2007">2007</option><option value="2006">2006</option><option value="2005">2005</option><option value="2004">2004</option><option value="2003">2003</option><option value="2002">2002</option><option value="2001">2001</option><option value="2000">2000</option><option value="1999">1999</option><option value="1998">1998</option><option value="1997">1997</option><option value="1996">1996</option><option value="1995">1995</option><option value="1994">1994</option><option value="1993">1993</option><option value="1992">1992</option><option value="1991">1991</option><option value="1990">1990</option><option value="1989">1989</option><option value="1988">1988</option><option value="1987">1987</option><option value="1986">1986</option><option value="1985">1985</option><option value="1984">1984</option><option value="1983">1983</option><option value="1982">1982</option><option value="1981">1981</option><option value="1980">1980</option><option value="1979">1979</option><option value="1978">1978</option><option value="1977">1977</option><option value="1976">1976</option><option value="1975">1975</option><option value="1974">1974</option><option value="1973">1973</option><option value="1972">1972</option><option value="1971">1971</option><option value="1970">1970</option><option value="1969">1969</option><option value="1968">1968</option><option value="1967">1967</option><option value="1966">1966</option><option value="1965">1965</option><option value="1964">1964</option><option value="1963">1963</option><option value="1962">1962</option><option value="1961">1961</option><option value="1960">1960</option><option value="1959">1959</option><option value="1958">1958</option><option value="1957">1957</option><option value="1956">1956</option><option value="1955">1955</option><option value="1954">1954</option><option value="1953">1953</option><option value="1952">1952</option><option value="1951">1951</option><option value="1950">1950</option><option value="1949">1949</option><option value="1948">1948</option><option value="1947">1947</option><option value="1946">1946</option><option value="1945">1945</option><option value="1944">1944</option><option value="1943">1943</option><option value="1942">1942</option><option value="1941">1941</option><option value="1940">1940</option><option value="1939">1939</option><option value="1938">1938</option><option value="1937">1937</option><option value="1936">1936</option><option value="1935">1935</option><option value="1934">1934</option><option value="1933">1933</option><option value="1932">1932</option><option value="1931">1931</option><option value="1930">1930</option><option value="1929">1929</option><option value="1928">1928</option><option value="1927">1927</option><option value="1926">1926</option><option value="1925">1925</option><option value="1924">1924</option><option value="1923">1923</option><option value="1922">1922</option><option value="1921">1921</option><option value="1920">1920</option><option value="1919">1919</option><option value="1918">1918</option><option value="1917">1917</option><option value="1916">1916</option><option value="1915">1915</option><option value="1914">1914</option><option value="1913">1913</option><option value="1912">1912</option><option value="1911">1911</option><option value="1910">1910</option><option value="1909">1909</option><option value="1908">1908</option><option value="1907">1907</option><option value="1906">1906</option><option value="1905">1905</option><option value="1904">1904</option><option value="1903">1903</option><option value="1902">1902</option><option value="1901">1901</option><option value="1900">1900</option></select> </span></p><p> <p class="help">Please enter your date of birth</p> </p><p> </div></p><p> </p><p> <div class="field field-parent-email"></p><p> <label for="parent-email">Parent or guardian's email address</label></p><p> <input type="text" id="parent-email" size="35" name="bean.parentEmail" value="" class="text-field" maxlength="128"/></p><p> <p class="help">Because you are under 16 and in accordance with industry best practice guidelines, we require your parent or guardian's email address.</p></p><p> </div></p><p> </p><p> <div class="field field-parent-permission"></p><p> </div></p><p> </p><p> <script></p><p> var RecaptchaOptions = {</p><p> theme : 'white'</p><p> };</p><p> </script></p><p> </p><p> <style type="text/css"></p><p> #recaptcha_response_field</p><p> {</p><p> font-size: 12px !important;</p><p> font-weight: normal !important;</p><p> }</p><p> </style> </p><p> </p><p> </p><p> </p><p> <div class="field field-tos"></p><p> </p><p> <input id="tos" value="accept" type="checkbox" id="password" name="bean.tos" %post-tos-check%/>I accept the Terms and Conditions</a>.</p><p> </p><p> </div></p><p> </p><p> <a href="#" class="new-button" id="next-btn"><b>Create Account</b><i></i></a></p><p> <input type="submit" id="next" value="Create account" /><a href="%www%/register/cancel">Cancel</a></p><p> </p><p> </form></p><p> </p><p> </div></p><p> </p><p></div></p><p><script type="text/javascript"></p><p> L10N.put("embedded_registration.errors.header", "Please fill in all the forms");</p><p> L10N.put("register.error.password_required", "Please enter a password");</p><p> L10N.put("register.error.retyped_password_required", "Please re enter your password");</p><p> L10N.put("register.error.retyped_password_notsame", "Passwords don't match");</p><p> L10N.put("register.error.password_length", "Your password is too long");</p><p> L10N.put("register.error.password_chars", "Your password is too short");</p><p> SimpleRegistration.initRegistrationUI("/");</p><p></script></p><p> </p><p> </div></p><p> </div></p><p> <div class="register-container-bottom"></div> [/CODE]</p></blockquote><p></p>
[QUOTE="Diddy, post: 193671, member: 5596"] Register.php [CODE]<?php /*======================================================================= | UberWeb - Lightweight site system for Uber | ####################################################################### | Copyright (c) 2009, Roy 'Meth0d' | http://www.meth0d.org | ####################################################################### | This program is free software: you can redistribute it and/or modify | it under the terms of the GNU General Public License as published by | the Free Software Foundation, either version 3 of the License, or | (at your option) any later version. | ####################################################################### | This program is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | GNU General Public License for more details. \======================================================================*/ require_once "global.php"; if (LOGGED_IN) { header("Location: " . WWW . "/me"); exit; } $tpl->SetParam('error-messages-holder', ''); $tpl->SetParam('post-name', ''); $tpl->SetParam('post-pass', ''); $tpl->SetParam('post-tos-check', ''); $tpl->SetParam('post-mail', ''); if (isset($_GET['doSubmit'])) { if (isset($_POST['checkNameOnly']) && $_POST['checkNameOnly'] == 'true') { //$name = $_POST['bean_avatarName']; $name = mysql_real_escape_string($_POST['bean_avatarName']); echo ' <div class="field field-habbo-name"> <label for="habbo-name">Username</label> <input type="text" id="habbo-name" size="32" value="' . clean($name) . '" name="bean.avatarName" class="text-field" maxlength="32"/> <a href="#" class="new-button" id="check-name-btn"><b>Check</b><i></i></a> <input type="submit" name="checkNameOnly" id="check-name" value="Check"/> <div id="name-suggestions">'; if (!$users->IsValidName($name)) { echo '<div class="taken"><p>Sorry, that name is invalid. Your name can contain lowercase, uppercase letters, and numbers.</p></div>'; } else if ($users->IsNameTaken($name)) { echo '<div class="taken"><p>Sorry, the name <strong>' . clean($name) . '</strong> is taken!</p></div>'; } else if ($users->IsNameBlocked($name)) { echo '<div class="taken"><p>Sorry, that name is reserved or disallowed.</p></div>'; } else { echo '<div class="available"><p>The name <strong>' . clean($name) . '</strong> is available.</p></div>'; } echo ' </div> <p class="help">Your name can contain lowercase and uppercase letters and numbers.</p> </div>'; exit; } else if (isset($_POST['bean_avatarName'])) { $registerErrors = Array(); $name = mysql_real_escape_string($_POST['bean_avatarName']); $password = $_POST['bean_password']; $password2 = $_POST['bean_retypedPassword']; $email = mysql_real_escape_string($_POST['bean_email']); $dob_day = $_POST['bean_day']; $dob_month = $_POST['bean_month']; $dob_year = $_POST['bean_year']; //$lang = $_POST['bean_lang']; $tpl->SetParam('post-name', $name); $tpl->SetParam('post-pass', $password); $tpl->SetParam('post-mail', $email); if (strlen($name) < 1 || strlen($name) > 32) { $registerErrors[] = "Your username must be 1 - 32 characters in length."; } if ($users->IsNameTaken($name)) { $registerErrors[] = "Sorry, that name is taken."; } else if ($users->IsNameBlocked($name)) { $registerErrors[] = "Sorry, that name is reserved or disallowed."; } else if (!$users->IsValidName($name)) { $registerErrors[] = "Sorry, that name is invalid. Your name can contain lowercase, uppercase letters, and numbers."; } if (strlen($password) < 6) { $registerErrors[] = "Your password must be at least 6 characters long."; } if ($password != $password2) { $registerErrors[] = "Your passwords do not match. Please try again."; } if (!$users->IsValidEmail($email)) { $registerErrors[] = "Invalid e-mail address."; } if (!is_numeric($dob_day) || !is_numeric($dob_month) || !is_numeric($dob_year) || $dob_day <= 0 || $dob_day > 31 || $dob_month <= 0 || $dob_month > 12 || $dob_year < 1900 || $dob_year > 2010) { $registerErrors[] = "Please enter a valid date of birth."; } if (!isset($_POST['bean_tos']) || $_POST['bean_tos'] != "accept") { $registerErrors[] = "You need to accept the Rules and Terms and Conditions to create an account."; } else { $tpl->SetParam('post-tos-check', 'checked'); } /*if (strtolower($lang) != "yes, i will speak english" && strtolower($lang) != "yes, i will speak english.") { $registerErrors[] = "You must verify you will speak English to creat an account."; }*/ if (count($registerErrors) <= 0) { // Add user $users->add($name, $core->uberHash($password), $email, 2, 'hd-180-1.ch-210-66.lg-270-82.sh-290-91.hr-100-', 'M'); // Log user in $_SESSION['SHOW_WELCOME'] = true; $_SESSION['UBER_USER_N'] = $name; $_SESSION['UBER_USER_H'] = $core->uberHash($password); // Redirect user to welcome page header("Location: /me.php"); exit; } else { $errResult = '<div class="error-messages-holder"> <h3>Please fix the following problems and resubmit the form.</h3> <ul>'; foreach ($registerErrors as $err) { $errResult .= '<li><p class="error-message">' . $err . '</p></li>'; } $errResult .= '</ul></div>'; $tpl->SetParam('error-messages-holder', $errResult); } } } $tpl->Init(); $tpl->AddGeneric('head-init'); $tpl->AddIncludeSet('register'); $tpl->WriteIncludeFiles(); $tpl->AddGeneric('head-bottom'); $tpl->AddGeneric('page-register'); $tpl->AddGeneric('footer'); $tpl->SetParam('page_title', 'Register your account!'); $tpl->Output(); ?>[/CODE] page-register.tpl [CODE]<style>body { background-image: url(images/bg.png);}#phase-0-form { background: transparent url(http:///images/logo.png) no-repeat 50% 10px; padding-top: 60px }</style> <style> a.new-button{margin:0 0 5px 10px;display:block;float:right;height:25px;position:relative;text-decoration:none;cursor:pointer;overflow:hidden;white-space:nowrap;} #check-name{display:none} </style> <script src="%www%/simpleregistration.js"></script> <body id=""> <div id="overlay"></div> <div id="container" class="phase-0" style="margin-top: 10px;"> <p class="phishing-warning">Make sure the address bar begins with %www%.</p> <div class="register-container clearfix"> <div class="register-header">Register at Hotel</div> <div id="register-content"> <div id="subheader">Fill out the form below to register here. </div> <div class="register-container-bottom-end register-content clearfix"> <div id="auth-providers" class="auth-providers"> <ul> <li class="facebook"> <a href="#" onclick="" class="fbconnect_login_button"></a> </li> <li class="twitter"> <a href="#"></a> <form method="post" action="" target="rpx_login"> <input type="submit" value="twitter"/> </form> </li> <li class="google"> <a href="#"></a> <form method="post" action="" target="rpx_login"> <input type="hidden" value="https://www.google.com/accounts/o8/id" name="openid_identifier" id="openid_identifier"/> <input type="submit" value="google"/> </form> </li> <li class="hyves"> <a href="#"></a> <form method="post" action="" target="rpx_login"> <input type="hidden" value="http://hyves.net/" name="openid_identifier" id="openid_identifier"/> <input type="submit" value="hyves"/> </form> </li> <li class="myspace"> <a href="#"></a> <form method="post" action="" target="rpx_login"> <input type="submit" value="myspace"/> </form> </li> <li class="windowslive"> <a href="#"></a> <form method="post" action="" target="rpx_login"> <input type="submit" value="windowslive"/> </form> </li> <li class="yahoo"> <a href="#"></a> <form method="post" action="" target="rpx_login"> <input type="hidden" value="http://yahoo.com" name="openid_identifier" id="openid_identifier"/> <input type="submit" value="yahoo"/> </form> </li> </ul> <p>You can also use these option to create an account:</p> <p><b>We do not <u>yet</u> offer third-party account services. We will add this functionality during the Public BETA, for now please use regular account creation.</b></p> </div> <div id="register-page" style="clear: left" class="phase-0 clearfix"> <p>Welcome to </p> <div class="phase-0"> <form action="/register_submit" method="post" id="phase-0-form"> <div id="error-messages-container"> %error-messages-holder% </div> <div id="name-field-container"> <div class="field field-habbo-name"> <label for="habbo-name"><b>Name</b></label> <input type="text" id="habbo-name" size="32" value="%post-name%" name="bean.avatarName" class="text-field" maxlength="32"/> <a href="#" class="new-button" id="check-name-btn"><b>Check</b><i></i></a> <input type="submit" name="checkNameOnly" id="check-name" value="Check"/> <div id="name-suggestions"> </div> <p class="help">Choose a username (Usernames such as MOD-, ADM- & VIP- will be banned)</p> </div> </div> <div class="field field-password"> <label for="password"><b>Password</b></label> <input type="password" id="password" size="35" name="bean.password" value="%post-pass%" class="password-field" maxlength="32"/> <p class="help">Choose a password</p> </div> <div class="field field-password2"> <label for="password2"><b>Retype Password</b></label> <input type="password" id="password2" size="35" name="bean.retypedPassword" value="" class="password-field" maxlength="32"/> <p class="help">Verify your password</p> </div> <div class="field field-email"> <label for="email"><b>Email</b></label> <input type="text" id="email" size="35" name="bean.email" value="%post-mail%" class="text-field" maxlength="48"/> <p class="help">Enter an email address</p> </div> <div class="field field-birthday"> <label><b>Date of Birth</b></label> <span id="bday-selects"> <select name="bean.day" id="bean_day" class="dateselector"><option value="">Day</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option></select> <select name="bean.month" id="bean_month" class="dateselector"><option value="">Month</option><option value="1">January</option><option value="2">February</option><option value="3">March</option><option value="4">April</option><option value="5">May</option><option value="6">June</option><option value="7">July</option><option value="8">August</option><option value="9">September</option><option value="10">October</option><option value="11">November</option><option value="12">December</option></select> <select name="bean.year" id="bean_year" class="dateselector"><option value="">Year</option><option value="2010">2010</option><option value="2009">2009</option><option value="2008">2008</option><option value="2007">2007</option><option value="2006">2006</option><option value="2005">2005</option><option value="2004">2004</option><option value="2003">2003</option><option value="2002">2002</option><option value="2001">2001</option><option value="2000">2000</option><option value="1999">1999</option><option value="1998">1998</option><option value="1997">1997</option><option value="1996">1996</option><option value="1995">1995</option><option value="1994">1994</option><option value="1993">1993</option><option value="1992">1992</option><option value="1991">1991</option><option value="1990">1990</option><option value="1989">1989</option><option value="1988">1988</option><option value="1987">1987</option><option value="1986">1986</option><option value="1985">1985</option><option value="1984">1984</option><option value="1983">1983</option><option value="1982">1982</option><option value="1981">1981</option><option value="1980">1980</option><option value="1979">1979</option><option value="1978">1978</option><option value="1977">1977</option><option value="1976">1976</option><option value="1975">1975</option><option value="1974">1974</option><option value="1973">1973</option><option value="1972">1972</option><option value="1971">1971</option><option value="1970">1970</option><option value="1969">1969</option><option value="1968">1968</option><option value="1967">1967</option><option value="1966">1966</option><option value="1965">1965</option><option value="1964">1964</option><option value="1963">1963</option><option value="1962">1962</option><option value="1961">1961</option><option value="1960">1960</option><option value="1959">1959</option><option value="1958">1958</option><option value="1957">1957</option><option value="1956">1956</option><option value="1955">1955</option><option value="1954">1954</option><option value="1953">1953</option><option value="1952">1952</option><option value="1951">1951</option><option value="1950">1950</option><option value="1949">1949</option><option value="1948">1948</option><option value="1947">1947</option><option value="1946">1946</option><option value="1945">1945</option><option value="1944">1944</option><option value="1943">1943</option><option value="1942">1942</option><option value="1941">1941</option><option value="1940">1940</option><option value="1939">1939</option><option value="1938">1938</option><option value="1937">1937</option><option value="1936">1936</option><option value="1935">1935</option><option value="1934">1934</option><option value="1933">1933</option><option value="1932">1932</option><option value="1931">1931</option><option value="1930">1930</option><option value="1929">1929</option><option value="1928">1928</option><option value="1927">1927</option><option value="1926">1926</option><option value="1925">1925</option><option value="1924">1924</option><option value="1923">1923</option><option value="1922">1922</option><option value="1921">1921</option><option value="1920">1920</option><option value="1919">1919</option><option value="1918">1918</option><option value="1917">1917</option><option value="1916">1916</option><option value="1915">1915</option><option value="1914">1914</option><option value="1913">1913</option><option value="1912">1912</option><option value="1911">1911</option><option value="1910">1910</option><option value="1909">1909</option><option value="1908">1908</option><option value="1907">1907</option><option value="1906">1906</option><option value="1905">1905</option><option value="1904">1904</option><option value="1903">1903</option><option value="1902">1902</option><option value="1901">1901</option><option value="1900">1900</option></select> </span> <p class="help">Please enter your date of birth</p> </div> <div class="field field-parent-email"> <label for="parent-email">Parent or guardian's email address</label> <input type="text" id="parent-email" size="35" name="bean.parentEmail" value="" class="text-field" maxlength="128"/> <p class="help">Because you are under 16 and in accordance with industry best practice guidelines, we require your parent or guardian's email address.</p> </div> <div class="field field-parent-permission"> </div> <script> var RecaptchaOptions = { theme : 'white' }; </script> <style type="text/css"> #recaptcha_response_field { font-size: 12px !important; font-weight: normal !important; } </style> <div class="field field-tos"> <input id="tos" value="accept" type="checkbox" id="password" name="bean.tos" %post-tos-check%/>I accept the Terms and Conditions</a>. </div> <a href="#" class="new-button" id="next-btn"><b>Create Account</b><i></i></a> <input type="submit" id="next" value="Create account" /><a href="%www%/register/cancel">Cancel</a> </form> </div> </div> <script type="text/javascript"> L10N.put("embedded_registration.errors.header", "Please fill in all the forms"); L10N.put("register.error.password_required", "Please enter a password"); L10N.put("register.error.retyped_password_required", "Please re enter your password"); L10N.put("register.error.retyped_password_notsame", "Passwords don't match"); L10N.put("register.error.password_length", "Your password is too long"); L10N.put("register.error.password_chars", "Your password is too short"); SimpleRegistration.initRegistrationUI("/"); </script> </div> </div> <div class="register-container-bottom"></div> [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
One last problem
Top