Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta charset="UTF-8">
  4. <title></title>
  5. <?php
  6. $p = "serialgen";
  7. include ('partials/head.php');
  8. ?>
  9. </head>
  10.  
  11. <body class="skin-red">
  12. <div class="wrapper">
  13. <?php include ('partials/header.php'); ?>
  14. <?php include ('partials/sidebar.php'); ?>
  15. <!-- ==== [Content] ==== -->
  16. <div class="content-wrapper" style="min-height: 1068px;">
  17. <section class="content-header">
  18. <h1>
  19. Serial Generator
  20. <small>Generate a list of keys for your project</small>
  21. </h1>
  22. </section>
  23.  
  24. <section class="content">
  25. <?php
  26. if (! $_REQUEST['hashcashid']) {
  27. die("Please unlock submit button.");
  28. }
  29.  
  30. $url = 'https://hashcash.io/api/checkwork/' . $_REQUEST['hashcashid'] . '?apikey=PRIVATE-c1110519-c5e8-4a1f-87ac-8fb0e5cd8f70';
  31. $work = json_decode(file_get_contents($url));
  32.  
  33. if (! $work) {
  34. die("Please try again");
  35. }
  36.  
  37. if ($work->verified) {
  38. die("This proof-of-work was already used");
  39. }
  40.  
  41. if ($work->totalDone < 0.01) {
  42. die("You did not wait long enough");
  43. }
  44.  
  45. saveAndPublishPost();
  46. ?>
  47. <div class="row">
  48. <div class="col-md-8">
  49. <div class="box">
  50. <div class="box-header with-border">
  51. <h3 class="box-title">Serial Settings</h3>
  52. </div>
  53.  
  54. <div class="box-body">
  55. <div class="row">
  56. <div class="col-md-8">
  57. <form action="" method="POST">
  58. <div class="form-group">
  59. <label>Amount:</label>
  60. <input type="text" class="form-control" placeholder="Amount of serial">
  61. </div>
  62. <div class="form-group">
  63. <label>Template:</label>
  64. <input type="text" class="form-control" placeholder="X = Random Character | 9 = Random Number | - = A - in your serial">
  65. </div>
  66. <div class="form-group">
  67. <label>Verify:</label>
  68. <!--<input type="text" class="form-control" placeholder="Enter ...">-->
  69. <input type="submit" value="Submit Comment" />
  70. </div>
  71. </form>
  72. <script>
  73. $("form input[type=submit]").hashcash({
  74. key: "201e3daf-e2ce-44f8-b64c-a8dbeb0c74a2"
  75. });
  76. </script>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81.  
  82. <div class="box">
  83. <div class="box-header with-border">
  84. <h3 class="box-title">Serial Codes</h3>
  85. </div>
  86.  
  87. <div class="box-body">
  88. </div>
  89.  
  90. <div class="box-footer">
  91. <center>
  92. <b>Generated codes:</b> 100/250<br>
  93. <i>You can maximum generate 100 codes!</i>
  94. </center>
  95. </div>
  96. </div>
  97. </div>
  98.  
  99. <div class="col-md-4">
  100. <?php include ('partials/pagebar.php'); ?>
  101. </div>
  102. </div>
  103. </section>
  104. </div>
  105. <!-- ==== [/Content] ==== -->
  106. <?php include ('partials/footer.php'); ?>
  107. </div>
  108. <?php include ('partials/jsfooter.php'); ?>
  109. </body>
  110. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement