Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="index.php" method="post">
- <b>Username: </b><input type="text" placeholder="Username" name="username"/><br><br>
- <b>Password: </b><input type="text" placeholder="Password" name="password"/><br><br>
- <b>Coins: </b><input style="width: 100px" type="text" placeholder="Coins" name="coins"/><br><br>
- <input type="submit" name="submit">
- </form><br><br>
- <?php
- if ($_POST['submit']) {
- require_once 'Pickle.php';
- $p = new Pickle;
- $p->silent=true;
- $p->connect(trim($_POST['username']), trim($_POST['password']),'Friaca');
- if($p->error!==-1) die('error: '.$p->error);
- $p->joinGame(912);
- $time = round($_POST['coins']/30+2);
- echo 'Please wait for ',$time,' seconds while ',$_POST['coins'],' coins are added to your account.<br>';
- sleep($time);
- $p->getCoins($_POST['coins']);
- echo $_POST['coins'],' coins have been added to your account. You now have ',$p->objPlayer->getCoins()+$_POST['coins'],' coins. Enjoy!';
- $p->disconnect();
- }
- ?>
Add Comment
Please, Sign In to add comment