Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta charset="UTF-8">
- <title></title>
- <?php
- $p = "serialgen";
- include ('partials/head.php');
- ?>
- </head>
- <body class="skin-red">
- <div class="wrapper">
- <?php include ('partials/header.php'); ?>
- <?php include ('partials/sidebar.php'); ?>
- <!-- ==== [Content] ==== -->
- <div class="content-wrapper" style="min-height: 1068px;">
- <section class="content-header">
- <h1>
- Serial Generator
- <small>Generate a list of keys for your project</small>
- </h1>
- </section>
- <section class="content">
- <?php
- if (! $_REQUEST['hashcashid']) {
- die("Please unlock submit button.");
- }
- $url = 'https://hashcash.io/api/checkwork/' . $_REQUEST['hashcashid'] . '?apikey=PRIVATE-c1110519-c5e8-4a1f-87ac-8fb0e5cd8f70';
- $work = json_decode(file_get_contents($url));
- if (! $work) {
- die("Please try again");
- }
- if ($work->verified) {
- die("This proof-of-work was already used");
- }
- if ($work->totalDone < 0.01) {
- die("You did not wait long enough");
- }
- saveAndPublishPost();
- ?>
- <div class="row">
- <div class="col-md-8">
- <div class="box">
- <div class="box-header with-border">
- <h3 class="box-title">Serial Settings</h3>
- </div>
- <div class="box-body">
- <div class="row">
- <div class="col-md-8">
- <form action="" method="POST">
- <div class="form-group">
- <label>Amount:</label>
- <input type="text" class="form-control" placeholder="Amount of serial">
- </div>
- <div class="form-group">
- <label>Template:</label>
- <input type="text" class="form-control" placeholder="X = Random Character | 9 = Random Number | - = A - in your serial">
- </div>
- <div class="form-group">
- <label>Verify:</label>
- <!--<input type="text" class="form-control" placeholder="Enter ...">-->
- <input type="submit" value="Submit Comment" />
- </div>
- </form>
- <script>
- $("form input[type=submit]").hashcash({
- key: "201e3daf-e2ce-44f8-b64c-a8dbeb0c74a2"
- });
- </script>
- </div>
- </div>
- </div>
- </div>
- <div class="box">
- <div class="box-header with-border">
- <h3 class="box-title">Serial Codes</h3>
- </div>
- <div class="box-body">
- </div>
- <div class="box-footer">
- <center>
- <b>Generated codes:</b> 100/250<br>
- <i>You can maximum generate 100 codes!</i>
- </center>
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <?php include ('partials/pagebar.php'); ?>
- </div>
- </div>
- </section>
- </div>
- <!-- ==== [/Content] ==== -->
- <?php include ('partials/footer.php'); ?>
- </div>
- <?php include ('partials/jsfooter.php'); ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement