Advertisement
Guest User

Untitled

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