# /\ \ \___ _ __ ___ ___ ___ / _| |_ # / \/ / _ \| '_ ` _ \/ __|/ _ \| |_| __| # / /\ / (_) | | | | | \__ \ (_) | _| |_ # \_\ \/ \___/|_| |_| |_|___/\___/|_| \__| - www.Nomsoftware.com - # The policy of Nomsoftware states: Releasing our software # or any other files are protected. You cannot re-release # anywhere unless you were given permission. # © Nomsoftware 'Nomsoft' 2011-2012. All rights reserved. require '../ext_scripts_class_loader.php'; connect::selectDB('logondb'); if (isset($_POST['register'])) { $username = trim($_POST['username']); $email = trim($_POST['email']); $password = trim($_POST['password']); $repeat_password = trim($_POST['password_repeat']); $captcha = (int) $_POST['captcha']; $raf = $_POST['raf']; account::register($username, $email, $password, $repeat_password, $captcha, $raf); echo TRUE; } if (isset($_POST['check'])) { if ($_POST['check'] == "username") { $username = mysql_real_escape_string($_POST['value']); $result = mysql_query("SELECT COUNT(id) FROM account WHERE username='******'"); if (mysql_result($result, 0) == 0) { echo "<i class='green_text'>This username is available</i>"; } else { echo "<i class='red_text'>This username is not available</i>"; } } }
# __ __ _ # /\ \ \___ _ __ ___ ___ ___ / _| |_ # / \/ / _ \| '_ ` _ \/ __|/ _ \| |_| __| # / /\ / (_) | | | | | \__ \ (_) | _| |_ # \_\ \/ \___/|_| |_| |_|___/\___/|_| \__| - www.Nomsoftware.com - # The policy of Nomsoftware states: Releasing our software # or any other files are protected. You cannot re-release # anywhere unless you were given permission. # © Nomsoftware 'Nomsoft' 2011-2012. All rights reserved. ?> <div class='box_two_title'>Register</div> It's free, join us today! <hr/> <?php account::isLoggedIn(); if (isset($_POST['register'])) { account::register($_POST['username'], $_POST['email'], $_POST['password'], $_POST['password_repeat'], $_POST['referer'], $_POST['captcha']); } ?> <input type="hidden" value="<?php echo $_GET['id']; ?> " id="referer" /> <table width="80%"> <tr> <td align="right">Username:</td> <td><input type="text" id="username" value="<?php if (isset($_POST['username'])) { echo $_POST['username']; } ?> " onkeyup="checkUsername()"/>