Multiupload.com isn't working could you Upload the requires DLL's + PHP.ini & SQLSRV Registration Script in another website , please.
Thank you for your Hard Work
// Validate user name.
$checkquery = ("SELECT UserID FROM PS_UserData.dbo.Users_Master WHERE UserID = '${username}'");
$result = sqlsrv_query( $conn, $checkquery);
$num = sqlsrv_num_rows($result);
if ($num > 0) {
$errors[] = '<font color="red">The username you have chosen has already been taken, please try again.</font>';
};
if(empty($username)){
$errors[] = 'Please provide a user name.';
}else if(strlen($username) < 3 || strlen($username) > 16){
$errors[] = 'User name must be between 3 and 16 characters in length.';
}else if(ctype_alnum($username) === false){
$errors[] = 'User name must consist of numbers and letters only.';
}else if(sqlsrv_num_rows($result)){
$errors[] = 'User name already exists, please choose a different user name.';
}
// Validate user password.
if(empty($password)){
$errors[] = 'Please provide a password.';
}else if(strlen($password) < 3 || strlen($password) > 16){
$errors[] = 'Password must be between 3 and 16 characters in length.';
}else if($password != $password2){
$errors[] = 'Passwords do not match.';
}
// Validate reCAPTCHA. This is to prevent someone botting account creation.
$response = recaptcha_check_answer($recaptcha_private_key,$_SERVER['REMOTE_ADDR'],$_POST['recaptcha_challenge_field'],$_POST['recaptcha_response_field']);
if(!$response->is_valid){
if($response->error == 'incorrect-captcha-sol'){
$errors['recaptcha'] = 'Incorrect answer to reCAPTCHA';
}else{
$errors['recaptcha'] = $response->error;
}
}
// Persist the new account to the database if no previous errors occured.
if(count($errors) == 0){
$checkuseruid = "SELECT Max(UserUID) AS max FROM PS_UserData.dbo.Users_Master";
$resultado = sqlsrv_query( $conn, $checkuseruid);
$captura = sqlsrv_fetch_array($resultado);
$UserUID = $captura["max"]+1;
$sql = "INSERT INTO PS_UserData.dbo.Users_Master
(UserUID,UserID,Pw,JoinDate,Admin,AdminLevel,UseQueue,Status,Leave,LeaveDate,UserType,Point,EnPassword,UserIp)
VALUES ('${UserUID}','{$username}','{$password}',GETDATE( ),0,0,0,0,0,GETDATE(),'N',0,'','{$user_ip}')";
// Remove the @ symbol here to see what the SQL error message is when running the above query in $sql.
if($result = @sqlsrv_query($conn , $sql)){
$success = "Account {$username} successfully created!";
}else{
// This means the insert statement is probably not valid for your database. Fix the query or fix your database, your choice
$errors[] = 'Failed to create a new account, please try again later';
}
}
}
// Determine which view to show.
if($success === false){
require_once('register.view.php');
}else{
require_once('success.view.php');
}
?>
When I run this 'Register.php' everything works except it doesn't check whether the username exists or not. It adds it into the database regardless. What am I missing in the coding?
can you reupload this script? it would be very usefull with these options in it
your link is broken.
Username Check
Password Confirm
Password MD5 Encryption
Age Field (For Server using; Adult Server)
Email Field (Useful for Verifying Accounts / Blocking Dual Accounts)
Email Check (Cuts down on Dual Accounters)
IP Post (Posts the users IP to the IP field in the Accounts Database upon Account Creation) [Invisible to User]
IP Check (Cuts down on Dual Accounters)
Help Web Registration Script 12/18/2011 - Shaiya Private Server - 1 Replies hi ,
To understand this topic I would like to help my English a little bit worse .
I installed the files to my site : Registration Page
This error occurs when I try to be a member.
You must have the php_mssql library for Apache installed and enabled to connect to an MSSQL database. Uncomment the line that says extension=php_mssql.dll in your php.ini (XAMPP/WAMP only). This requires a restart of the Apache service to take effect.
Registration script 07/08/2011 - Rappelz - 5 Replies Hi all
i want to ask any guide help to make Registration page ?
please help from professional In this topic
thanks all :)
[release] Advanced register script 05/10/2011 - EO PServer Hosting - 9 Replies hi all
time for the second advanced release
this is a register script but with email verification
the script itself can work with 2 databases or with a single database ( i wrote it for 2 databases)
what does it do ??
let the user register as normal
[AC Tool] Advanced Cooking Script 08/14/2009 - General Gaming Discussion - 0 Replies // Script created by Mouldy Tacos
// This script will cook all of the items in your back pack, close the cooking window, then right click
// This script is currently set up to cook bass, cod, trout, salmon, scroll down twice, then cook swordfish and herring
// It then closes the cooking window and right clicks
// Feel free to adjust the script to your needs
// HOW IT WORKS //
// You must have the cooking window open and the item you wish to cook highlighted
// The first item you cook...
Advanced WALKER Script question. 02/15/2009 - Lineage 2 - 2 Replies Been reading these threads for a month now, best place I have been to that has info on scripting.
I have 2 questions.
The Walker command;
CharStatus(CHP|CMP|HP|MP|WEIGHT|LV|STAND,>=|&g t;|==|!=|<|<= ,Number)
Can we get more information? Like P. Atk, M. Atk? This would be handy to combine with the CP script.. The Kameal disarm, auto reload your weapon. How about buffs? I found some scripts for superman that can tell if you have BlessBody, if we could get this info then we can scrip a titan...