Advertisement
Guest User

Untitled

a guest
Feb 12th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <?php
  2.  
  3. include "config.php";
  4. include('ptcofferwall_config.php');
  5.  
  6. $password = $pw;
  7. $pwd = $_POST['pwd'];
  8. $amount = $_POST['a'];
  9. $user = $_POST['u'];
  10.  
  11. if($pwd == $password) {
  12.  
  13. $sql=$Db1->query("UPDATE user SET balance=balance+'$amount', tickets=tickets+1, earned_today=earned_today+'$amount' WHERE username='$user'");
  14.  
  15. exit();
  16.  
  17. } else {
  18.  
  19. echo "Invalid password.";
  20.  
  21. }
  22.  
  23.  
  24.  
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement