Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. <?php
  2. show_header("The Bank");
  3. function exchangeLink($points,$LoggedUser) {
  4. if ($LoggedUser['BonusPoints']<$points) {
  5. return "Not enough points!";
  6. } else {
  7. return "<a href=\"bonus.php?action=exchange&points={$points}\">Exchange!</a>";
  8. }
  9. }
  10. function donate($points,$LoggedUser) {
  11. if ($LoggedUser['BonusPoints']<$points) {
  12. return "Not enough points!";
  13. } else {
  14. return "<a href=\"bonus.php?action=exchange&points={$points}\">Exchange!</a>";
  15. }
  16. }
  17. ?>
  18. <div class="thin">
  19. <h3 id="general">About the Garage</h3>
  20. <div class="box pad" style="padding:10px 10px 10px 20px;">
  21. <center>Here is where you can spend your earned PTT Cash</center><br />
  22. <center>PTT Cash is awarded (and taken away) in a few ways.</center><br />
  23. <center><ul>
  24. <li>One point is awarded per post you make in the forums. As well as each reply you do.</li>
  25. <li>You will also loose a point if your post gets deleted, so make useful posts</li>
  26. <li>1/4 point for each 15 Minutes you are in IRC (<font color="Red">Not Implemented Yet</font>)</li>
  27. <li>Any amount of points can be given (or taken away) at staff's will. </li>
  28. </center></ul>
  29. <br />
  30. <center>You have <strong><?php echo $LoggedUser['BonusPoints']; ?></strong> PTT Cash collected.</center>
  31. </div>
  32. <br />
  33. <div class="thin">
  34. <table>
  35. <tr class="colhead">
  36. <td>Option</td>
  37. <td style="width:40%;">Description</td>
  38. <td>Points</td>
  39. <td>Trade</td>
  40. </tr>
  41. <tr><form method="POST">
  42. <input type="hidden" name="action" value="invite" />
  43. <td></td>
  44. <td><h3>Buy an Invite</h3><br />Buy an invite to invite a friend.<br />
  45. <td>How many invites: <input type="text" name="InviteAmount" /></td>
  46. <td><input type="submit" name="Submit" value="Buy" /></td>
  47. </form>
  48. </tr>
  49.  
  50. <tr><form method="POST">
  51. <input type="hidden" name="action" value="sendgift" />
  52. <td></td>
  53. <td><h3>Send gift of points</h3><br />Help out a member who might need some extra points.<br />
  54. Username: <input type="text" name="rec_username"</td>
  55. <td>Points to give: <br /><input type="text" name="points" /></td>
  56. <td><input type="submit" name="Submit" value="Send Gift" /></td>
  57. </form>
  58. </tr>
  59. <tr><form method="POST">
  60. <input type="hidden" name="action" value="donate" />
  61. <td></td>
  62. <td><h3>Donate points</h3><br />Donate your points to enable a special giveaway later.<br />
  63. <td>Points to donate: <br /><input type="text" name="points" /></td>
  64. <td><input type="submit" name="Submit" value="Donate" /></td>
  65. </form>
  66. </tr>
  67. </table>
  68. </div>
  69. <!-- END General Rules -->
  70. </div>
  71. <?php
  72. show_footer();
  73. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement