SHARE
TWEET

Untitled

a guest Sep 20th, 2016 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Forbidden
  2.  
  3. You don't have permission to access /register.php on this server.
  4.  
  5. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
  6.    
  7. <?php //error_reporting(E_ALL ^ E_NOTICE); ini_set('display_errors', true);
  8. include('header.php');
  9. if(isset($_POST['register'])){
  10. foreach($_POST as $key => $value) {
  11.     $sec[$key] = filter($value);
  12. }
  13.  
  14. $verificare1 = mysql_query("SELECT * FROM `users` WHERE `login`='{$sec['user']}' OR `email`='{$sec['email']}'");
  15. $verificare = mysql_num_rows($verificare1);
  16.  
  17. if ($verificare > 0) {
  18. $mesaj = "<div class="error">ERROR: Username or email already registered!</div>";
  19. }else if (!isUserID($sec['user'])) {
  20. $mesaj = "<div class="error">ERROR: Username is incorrect!</div>";
  21. }else if(!isEmail($sec['email'])) {
  22. $mesaj = "<div class="error">ERROR: Enter a valid email address!</div>";
  23. }else if (!checkPwd($sec['password'],$sec['password2'])) {
  24. $mesaj = "<div class="error">ERROR: Passwords do not match!</div>";
  25. }else{
  26. if(isset($_COOKIE['PlusREF'])){
  27. $ref = $_COOKIE['PlusREF'];
  28. $user1 = mysql_query("SELECT * FROM `users` WHERE `id`='{$ref}'");
  29. $user = mysql_fetch_object($user1);
  30. mysql_query("INSERT INTO `referals`(user,referal,date) values('{$user->login}','{$sec['user']}',NOW())");
  31. }
  32. $activare = rand(000000000, 999999909);
  33. mail($sec['email'],"Welcome to ExchangeBoost.com","
  34. Hello,
  35.  
  36. Thank you for signing up at ExchangeBoost.com.
  37.  
  38. Click on the link below in order to activate your account:
  39. {$site->site_url}/activate.php?cod={$activare}
  40.  
  41. If you would like after you activate your account you can buy coins in the UserCP at a very low rate.
  42.  
  43. Thank you!","From: ExchangeBoost.com <{$site->site_email}>");
  44. $final = VisitorIP();
  45. $passa = $sec['password'];
  46. $passc = MD5($passa);
  47. mysql_query("INSERT INTO `users`(email,login,coins,IP,pass,passdecoded,ref,signup,activate) values('{$sec['email']}','{$sec['user']}','100','$final','$passc','$passa','{$ref}',NOW(),'{$activare}')")or die(mysql_error());
  48. $mesaj = "<div class="success">Registered! You need to confirm your email address now!</div>";
  49. }}
  50. ?>  
  51. <div class="main">
  52.  
  53.  
  54.             <div class="content-ex">
  55.  
  56.  
  57. <div class="msg"><?echo $mesaj;?></div>
  58. <form action="" method="post">
  59.  
  60.                          <p>
  61.                              <label>Username</label><br/>
  62.                              <input class="text big" type="text" value="" name="user"/>
  63.                          </p>
  64.                          <p>
  65.                              <label>Email</label><br/>
  66.                              <input class="text big" type="email" value="" name="email"/>
  67.                          </p>
  68.                          <p>
  69.                              <label>Password</label> <br/>
  70.                              <input class="text big" type="password" value="" name="password"/>
  71.                          </p>
  72.                          <p>
  73.                              <label>Repeat Password</label> <br/>
  74.                              <input class="text big" type="password" value="" name="password2"/>
  75.                          </p>
  76.                           <p>
  77.  
  78.                             <input type="submit" class="bbut" value="Register" name="register" />
  79.                           </p>
  80.  
  81.                     </form>
  82.  
  83.             </div>
  84. <div class="signin">
  85.                <h2>Sign In</h2>
  86.                            <form method="post">
  87.  
  88. <input class="text big" type="text" value="Username:" name="login">
  89. <input class="text big" type="password" value="Password:" name="pass">          
  90.  
  91. <div class="buttons">
  92.  
  93.                             <input type="submit" class="gbut" name="logare" value="Login" /><a class="bbut" href="register.php" name="logare" value="Register">Register</a>
  94. <br><br>
  95. <a href="recover.php">Dude, I forgot my password!</a>
  96. </div>                                        
  97. </form>
  98.  
  99.             </div>
  100.  
  101.  
  102.  
  103.         </div>
  104.  
  105.  
  106. <?include('footer.php');?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top