Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- show_header("Buy Invites");
- $DB->query("SELECT Points FROM users_main WHERE ID = ".$LoggedUser['ID'].");
- list($Points) = $DB->next_record();
- $InvitePrive = 1500;
- if (!empty($_POST['InviteAmount']) and is_numeric($_POST['InviteAmount'])) {
- if (($InvitePrice*$_POST['InviteAmount']) <= $Points) {
- $DB->query("UPDATE users_main SET Points=Points-".($InvitePrice*$_POST['InviteAmount']).",Invites=Invites+".$_POST['InviteAmount']." WHERE ID = ".$LoggedUser['ID']);
- $message = array();
- $message['type'] = 'Success';
- $message['display'] = 'zomgwtfhax! You just bought '.$_POST['InviteAmount'].' INVITES!?!!?';
- } else {
- $message['type'] = 'error';
- $message['display'] = 'You cant afford that bitch? What the fsck are you thinking?!!?';
- }
- } else {
- $message = array();
- $message['type'] = 'error';
- $message['display'] = 'Oh no you dont, you're trying to break me, and im watching you!';
- }
- show_footer();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement