Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbservername = "93.119.26.250";
- $dbusername = "zp_hid7022";
- $dbpassword = "WzHztcNQKtNBcPap";
- $dbname = "zp_hid7022";
- $username = "Sebastian_Barrington";
- $password = "parola";
- strtoupper(hash('whirlpool', $password));
- if (mysql_connect($dbservername, $dbusername, $dbpassword))
- {
- $connection = mysql_connect($dbservername, $dbusername, $dbpassword);
- mysql_select_db($dbname, $connection);
- $nameexist = mysql_query("SELECT `Username` FROM `Accounts` WHERE `Username` = '$username'");
- if(mysql_num_rows($nameexist) == 0)
- {
- Contul a fost creat cu succes.
- mysql_query("INSERT INTO `Accounts` (`Username`, `Password`, `Accepted`) VALUES ('$username', '$password', '1')");
- }
- else
- {
- Deja exista un cont cu numele.
- }
- }
- else
- {
- echo "<script>location.href = 'http://pro-roleplay.ro/erorpage'</script>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement