Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>Secure Password Generator</title>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
- </head>
- <body>
- <div class="container">
- <div class="row">
- <div class="col-md-4 col-md-offset-4" style="margin-top: 80px;max-width: 350px">
- <a href="generate-password.php" style="display:block; margin-left: 20px; margin-bottom: 23px;">Clear Password</a>
- <?php
- require_once('dice.php');
- if(isset($_GET['rolls']) && empty($_GET['rolls'])){
- die('You need to choose an amount of times to roll.');
- }
- if(isset($_GET['lang']) && empty($_GET['lang'])){
- die('You have to choose a language!');
- }
- if(!empty($_GET['lang']) && !empty($_GET['rolls'])){
- rollDice($_GET['rolls'], $_GET['lang']);
- }
- ?>
- <form action="" method="get">
- <div class="form-group">
- <label for="rolls">Amount of times to roll dice</label>
- <input type="text" name="rolls" placeholder="Number of rolls" class="form-control" />
- </div>
- <div class="form-group">
- <label for="lang">Dictionary language</label>
- <select name="lang" class="form-control">
- <option value="en">English</option>
- <option value="no">Norwegian</option>
- <option value="dk">Danish</option>
- <option value="se">Swedish</option>
- <option value="fi">Soumi</option>
- <option value="de">German</option>
- <option value="nl">Dutch</option>
- <option value="fr">French</option>
- <option value="es">Spanish</option>
- <option value="it">Italian</option>
- <option value="ru">Russian</option>
- <option value="tr">Turkish</option>
- </select>
- </div>
- <input type="submit" class="btn btn-default form-control" />
- </form>
- </div>
- </div>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment