Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //MLPONLINE ACCOUNT CREATION FUNCTIONS
- //By RainbowDash
- //
- // mlp_signup($username,$password)
- //FUNCTION:Add's the user to a
- //INPUTS:$username:Username of the user.$password:UNENCRYPTED password of the user.$email:email of the user.
- //OUTPUTS:1 if succesful,0 if an error has occured (wont usually happen unless filter's are added)
- //NOTE:The pass
- //WARNING:Moving this file out of the directory its in will cause it to fail as it depends on other files in this directory
- require_once("mlp_config.php");
- function mlp_signup($username,$password,$email) {
- mlp_connect();
- $username = mysql_real_escape_string($username);
- $password = mysql_real_escape_string($password);
- $email = mysql_real_escape_string($email);
- $salt="1A2b3CD4gJh4DFE4ZZZ!@#@AA!@CCV#$$VVD#@#$$#";
- $password = hash("sha512", $password . $salt);
- mysql_query("INSERT INTO accounts (acct, name, pass, email, lastlogin) VALUES ('', '$username', '$password', '$email', '')");
- mysql_close($con);
- return 1;
- }
- ?>
Add Comment
Please, Sign In to add comment