[Release][Website Avalon No Bugged]

01/30/2014 19:22 .Arrogunz™#16
Quote:
Originally Posted by glossypvp View Post
And by the way OPTool is made by me.
Brah.. We all know it xD
01/30/2014 19:31 glossypvp#17
That's the sad fact that not everyone know it. For example when levin bought the optool from u, he didn't even know who is glossy, and who made the optool.

And the other sad factj now everyone know it, and still trading with it, and 0 money goes to me. Gaining money with someone else's work, YEP, It's all I ever wanted :D
01/30/2014 20:59 stotterer09#18
Quote:
Originally Posted by glossypvp View Post
That's the sad fact that not everyone know it. For example when levin bought the optool from u, he didn't even know who is glossy, and who made the optool.

And the other sad factj now everyone know it, and still trading with it, and 0 money goes to me. Gaining money with someone else's work, YEP, It's all I ever wanted :D
I know that feelin bro^^
01/30/2014 21:13 glossypvp#19
Quote:
Originally Posted by stotterer09 View Post
I know that feelin bro^^
[Only registered and activated users can see links. Click Here To Register...]

Should I finally release the optool? So kids like levin can't sell it anymore.
01/30/2014 21:24 .Arrogunz™#20
Quote:
Originally Posted by glossypvp View Post
[Only registered and activated users can see links. Click Here To Register...]

Should I finally release the optool? So kids like levin can't sell it anymore.
Do it, with tut :D I still dont know how to use it xDD Just errors *-*
01/31/2014 08:03 TinLevin#21
Quote:
Originally Posted by glossypvp View Post
That's the sad fact that not everyone know it. For example when levin bought the optool from u, he didn't even know who is glossy, and who made the optool.

And the other sad factj now everyone know it, and still trading with it, and 0 money goes to me. Gaining money with someone else's work, YEP, It's all I ever wanted :D
I'm know that tool is created by you. and I did not give him any money!

Quote:
Originally Posted by .Arrogunz™ View Post
Do it, with tut :D I still dont know how to use it xDD Just errors *-*
I fixed the errors and I think now you should sell shiny. Because he created the tool!
only he can sell the tool
01/31/2014 16:16 Weom#22
[Only registered and activated users can see links. Click Here To Register...] - Register script:
PHP Code:
// Process the POST data.
if(isset($_POST) && !empty($_POST)){
    
// Validate user name.
    
if(empty($username)){
        
$errors[] = 'Please provide a user name.';
    }else if(
strlen($username) < || 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{
        
        
// Check if username already exists in the database.
        
$sql "SELECT szUserID FROM TGLOBAL_GSP.dbo.TACCOUNT WHERE szUserID = ?";
        
$stmt odbc_prepare($GLOBALS['dbConn'],$sql);
        
$args = array($username);
        if(!
odbc_execute($stmt,$args)){
            
$errors[] = 'Failed to determine if this username already exists in the database.';
        }elseif(
$row odbc_fetch_array($stmt)){
            
$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) < || 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){        
        
$Salt md5($password);        
        
$sql "INSERT INTO TGLOBAL_GSP.dbo.TACCOUNT
                (szUserID,szPasswd,bCheck)
                VALUES (?,'
$Salt',1)";
        
$stmt odbc_prepare($GLOBALS['dbConn'],$sql);
        
$args = array($username,$password,$user_ip);
        if(
odbc_execute($stmt,$args)){
            
$success htmlentities("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';
        }
    }

Your script:

PHP Code:
// Process the POST data.
if(isset($_POST) && !empty($_POST)){
    
// Validate user name.
    
if(empty($username)){
        
$errors[] = 'Please provide a user name.';
    }else if(
strlen($username) < || strlen($username) > 16){
        
$errors[] = 'User name must be between 6 and 16 characters in length.';
    }else if(
ctype_alnum($username) === false){
        
$errors[] = 'User name must consist of numbers and letters only.';
    }else{
        
        
// Check if username already exists in the database.
        
$sql "SELECT szUserID FROM TGLOBAL_GSP.dbo.TACCOUNT WHERE szUserID = ?";
        
$stmt odbc_prepare($GLOBALS['dbConn'],$sql);
        
$args = array($username);
        if(!
odbc_execute($stmt,$args)){
            
$errors[] = 'Failed to determine if this username already exists in the database.';
        }elseif(
$row odbc_fetch_array($stmt)){
            
$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) < || strlen($password) > 16){
        
$errors[] = 'Password must be between 6 and 16 characters in length.';
    }else if(
$password != $password2){
        
$errors[] = 'Passwords do not match.';
    }
        
    
// Persist the new account to the database if no previous errors occured.
    
if(count($errors) == 0){        
        
$Salt = ($password);        
        
$sql "INSERT INTO TGLOBAL_GSP.dbo.TACCOUNT
                ( szUserID,szPasswd,bCheck)
                VALUES (?,'
$Salt',1)";
        
$stmt odbc_prepare($GLOBALS['dbConn'],$sql);
        
$args = array($username,$password,$user_ip);
        if(
odbc_execute($stmt,$args)){
            
$success htmlentities("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';
        }
    }

:facepalm:
01/31/2014 21:33 julianjl#23
And the db ???
02/01/2014 08:03 TinLevin#24
Quote:
Originally Posted by julianjl View Post
And the db ???
Website not created by me.
I just I published to help people
02/01/2014 11:54 .Arrogunz™#25
Quote:
Originally Posted by TinLevin View Post
Don't is my work O.o
I just published to help people
:facepalm:
02/01/2014 16:42 Ib3s#26
Quote:
Originally Posted by TinLevin View Post
Don't is my work O.o
I just published to help people
:pimp: wow, such english
02/03/2014 11:03 TinLevin#27
Quote:
Originally Posted by Ib3s View Post
:pimp: wow, such english
what ?