Untitled


SUBMITTED BY: Guest

DATE: Nov. 13, 2013, 8:10 p.m.

FORMAT: Text only

SIZE: 4.9 kB

HITS: 772

  1. <?php
  2. include("includes/startup.php");
  3. include("includes/functions.php");
  4. ?>
  5. <!doctype html>
  6. <html>
  7. <head>
  8. <title>MMOCLUB - Reaper</title>
  9. <meta charset="utf-8">
  10. <meta name="description" content="MMOCLUB's Reaper">
  11. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  12. <script type="text/javascript" src="js/jquery.custom.js"></script>
  13. <script type="text/javascript" src="js/jquery.cookie.js"></script>
  14. <link href="css/style.css" rel="stylesheet" type="text/css">
  15. </head>
  16. <body>
  17. <div id="header">
  18. <?php
  19. if($_GET['admin'] === ADMINPAGEPASSWORD){
  20. echo '<span><a href="'.$_SERVER["PHP_SELF"].'">Admin panel</a></span>';
  21. }else{
  22. ?>
  23. <div id="next"><a alt="Next faucet" class="dirright">Next Faucet</a></div>
  24. <input type="text" id='addressinput' size='35' value='<?php echo $_COOKIE["btcaddress"]; ?>' disabled />
  25. <div style="height:100%;"><iframe scrolling="no" frameborder="0" src="http://bitcoin-ads.net/gimg.php?id=1222" style="overflow:hidden;width:468px;height:60px;"></iframe></div>
  26. <?php
  27. }
  28. ?>
  29. </div>
  30. <?php
  31. if($_GET['admin'] === ADMINPAGEPASSWORD){
  32. ?>
  33. <div id="contentWrapper">
  34. <p id="title">Admin page</p>
  35. <div id="codeBox">
  36. <p><strong>Add another website:</strong></p>
  37. <form>
  38. <div class="center"><table><tr><td class="first"><label>URL: </label></td><td><input type="text" id="newpageurl" maxlength="100"></input></td></tr>
  39. <tr><td class="first"><label>Cooldown (in minutes): </label></td><td><input type="text" id="cooldownpage" maxlength="100"></input></td></tr></table>
  40. <br/><button type="button" id="addwebsite" value="Add!">Add!</button></div>
  41. </form>
  42. <div class="center" id="results"></div>
  43. <div class="center"><strong>Current websites:</strong></div>
  44. <?php
  45. $mysqli = mysqli_connect(MYSQLHOST,MYSQLUSERNAME, MYSQLPASSWORD, MYSQLDATABASE);
  46. $counter = mysqli_query($mysqli,"SELECT * FROM ".MYSQLREAPERTABLE);
  47. if(mysqli_num_rows($counter) > 0){
  48. echo '<table><tr><th class="first">URL</th><th>Cooldown</cooldown><th>Remove</th></tr>';
  49. while ($row = mysqli_fetch_assoc($counter)) {
  50. echo "<tr id='".$row['id']."'><td class='first'>".$row['url']."</td><td>".$row['cooldown']."</td><td><button type='button' class='removethisurl' value='".$row['id']."'>Remove</button></td></tr>";
  51. }
  52. echo '</table>';
  53. echo '<div class="center" id="removeresults"></div>';
  54. }
  55. ?>
  56. </div>
  57. <div class="clear"></div>
  58. <div id="authorinfo-sticky-wrapper" class="sticky-wrapper" style="height: 19px;"><p id="authorinfo" style="">
  59. Made with love by <a href="http://bitcoininformation.info">BitCoin Information</a>
  60. <br/>Theme made by <a href="http://anthonygarand.com">Anthony Garand</a> and changed by <a href="http://bitcoininformation.info">BitCoin Information</a>
  61. </p></div>
  62. </div>
  63. <?php
  64. }else if($_COOKIE['btcaddress'] == null OR $_COOKIE['btcaddress'] === ""){
  65. ?>
  66. <div id="contentWrapper">
  67. <p id="title">Welcome!</p>
  68. <div id="codeBox">
  69. <form>
  70. <p>Please enter your Bitcoin Address to start.</p>
  71. <div class="center"><label>Address: </label><input type="text" id="btcaddress" maxlength="100"></input>
  72. <br/><button type="button" id="saveaddress" value="Let's go!">Start earning!</button></div>
  73. </form><div class="center" id="addressresults"></div>
  74. </div>
  75. </div>
  76. <?php
  77. }else{
  78. if($_COOKIE['totalpages'] == 0){
  79. ?>
  80. <div id="contentWrapper">
  81. <p id="title">We are sorry</p>
  82. <div id="codeBox">
  83. <p><strong>There are no pages avaible at this moment</strong></p>
  84. </div>
  85. </div>
  86. <?php
  87. }else{
  88. $end = $_COOKIE[str_replace(".", "_", get_domain(getPage($_COOKIE["currentpage"])))];
  89. if($end-time() >= 0){
  90. ?><div id="contentWrapper">
  91. <p id="title"><?php echo get_domain(getPage($_COOKIE["currentpage"])); ?> is not available yet.</p>
  92. <div id="codeBox">
  93. <?php echo '<p><font size="4px">'. date("i:s", $end-time()) .' minutes left till next payout.</font></p>'; ?>
  94. </div>
  95. </div>
  96. <?php
  97. }else{
  98. echo "<iframe id=\"iframereaper\" src='".getPage($_COOKIE["currentpage"])."' seamless>";
  99. }
  100. }
  101. }
  102. ?>
  103. </body>
  104. </html>

comments powered by Disqus