Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- the code that checks if the user went through a shortlinks is the following:
- <?php if ((isset($_SESSION['shortlink']['solved']))&&($_SESSION['shortlink']['solved']==true)) { echo' YOUR_CODE_HERE '; } ?>
- this is the same code that checks if the user went through the shortlink before adding the bonus to the claim ammount.
- this is the code that displays the claimbutton in the base template and i will use it for the example:
- <div>
- <input type="submit" class="btn btn-primary btn-lg claim-button" value="Get reward!">
- </div>
- so if we put the php code arround this code snippet above we get this:
- <?php if ((isset($_SESSION['shortlink']['solved']))&&($_SESSION['shortlink']['solved']==true)) { echo'
- <div>
- <input type="submit" class="btn btn-primary btn-lg claim-button" value="Get reward!">
- </div>
- '; } ?>
- this means that the claim button will only appear if the user has gone through the shortlink.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement