RF - Borneo
|
Welcome To Forum RF - Borneo 2.2.3 Golden Update Invite You'r Friend , To Come nd Join Us |
November 2024 | Mon | Tue | Wed | Thu | Fri | Sat | Sun |
---|
| | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | | Calendar |
|
| php/*======================================================================*\|| #################################################################### |||| # Registration for RF Offline private server || || # ---------------------------------------------------------------- # |||| # Copyright ©2007 moncos. All Rights Reserved. |||| #################################################################### ||\*======================================================================*/include 'rf_config.php';$tabelka = '';if($reg_open AND isset($_POST['login'])){$conn=mssql_connect($host,$sql_user,$sql_pwd) or die("Critical Error Impossible to connect to the database
");@mssql_select_db($base, $conn) or die("Critical Error Database don't exists OR I can't Access to it !
");$login = $_POST['login'];$pw = $_POST['pass'];$cpw = $_POST['cpass'];$email = $_POST['mail'];$login = trim($login);$pw = trim($pw);$cpw = trim($cpw);if(ereg("[^0-9a-zA-Z_-]", $login, $str)){echo 'Login not in good format.';echo '
';}elseif(ereg("[^0-9a-zA-Z_-]", $pw, $str)){echo 'Password not in good format.';echo '
';}elseif (empty($login) || empty($email) || empty($pw) || empty($cpw)) {echo 'Fill in the empty fields.
';}elseif (strpos('\'',$email)) {echo 'This '.$email.' is not a good mail adress.
';}else{$login_test = strtolower($login);$resultx = mssql_query("SELECT (UserId) FROM x2o_user WHERE (UserId) = ('$login_test')") or die;if (mssql_num_rows($resultx)) {echo 'The account '.$login.' already exists.
';}elseif (strlen($login) < 4) {echo 'Login must have more than 4 characters.
';}elseif (strlen($pw) < 4) {echo 'Password must have more than 4 characters.
';}elseif (strlen($pw) > 10) {echo 'Password must have less than 10 characters.
';} elseif (strlen($login) > 10) {echo 'Login must have less than 10 characters.
';} elseif ($pw != $cpw) {echo 'Passwords mismatch.
';}else {mssql_query("INSERT INTO exgame.dbo.x2o_user (UserId,Password,UserName,email) VALUES ('$login','$pw','$login','$email')");mssql_query("INSERT INTO rfweb.dbo.account_sound_team VALUES ('$login')");mssql_query("INSERT INTO exgame.dbo.account_sound_team (id) VALUES ('".$login."')")or die('error, account exists
');echo 'Account has been created.
';}}}elseif($reg_open){echo $tabelka;}else {echo 'Registration closed. Try later.
';} | |
|