Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. <?php
  2. show_header("Buy Invites");
  3. $DB->query("SELECT Points FROM users_main WHERE ID = ".$LoggedUser['ID'].");
  4. list($Points) = $DB->next_record();
  5. $InvitePrive = 1500;
  6. if (!empty($_POST['InviteAmount']) and is_numeric($_POST['InviteAmount'])) {
  7. if (($InvitePrice*$_POST['InviteAmount']) <= $Points) {
  8. $DB->query("UPDATE users_main SET Points=Points-".($InvitePrice*$_POST['InviteAmount']).",Invites=Invites+".$_POST['InviteAmount']." WHERE ID = ".$LoggedUser['ID']);
  9. $message = array();
  10. $message['type'] = 'Success';
  11. $message['display'] = 'zomgwtfhax! You just bought '.$_POST['InviteAmount'].' INVITES!?!!?';
  12. } else {
  13. $message['type'] = 'error';
  14. $message['display'] = 'You cant afford that bitch? What the fsck are you thinking?!!?';
  15. }
  16. } else {
  17. $message = array();
  18. $message['type'] = 'error';
  19. $message['display'] = 'Oh no you dont, you're trying to break me, and im watching you!';
  20. }
  21. show_footer();
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement