コード例 #1
0
ファイル: forms.inc.php プロジェクト: RowdyChildren/49sd-ctf
function form_input_captcha($position = 'private')
{
    if ($position == 'private' && CONFIG_RECAPTCHA_ENABLE_PRIVATE || $position == 'public' && CONFIG_RECAPTCHA_ENABLE_PUBLIC) {
        echo '
        <div class="form-group">
          <label class="col-sm-2 control-label" for="captcha"></label>
          <div class="col-sm-10">';
        display_captcha();
        echo '</div>
        </div>
        ';
    }
}
コード例 #2
0
ファイル: challenges.php プロジェクト: dirvuk/mellivora
 }
 // only show the hints and flag submission form if we're not already correct and if the challenge hasn't expired
 if (!$challenge['correct_submission_added'] && $time < $challenge['available_until']) {
     if ($remaining_submissions) {
         if ($challenge['num_submissions'] && !$challenge['automark'] && $challenge['marked']) {
             message_inline_blue('Your submission is awaiting manual marking.');
         }
         echo '
         <div class="challenge-submit">
             <form method="post" class="form-flag" action="actions/challenges">
                 <textarea name="flag" type="text" class="flag-input form-control" placeholder="Please enter flag for challenge: ', htmlspecialchars($challenge['title']), '"></textarea>
                 <input type="hidden" name="challenge" value="', htmlspecialchars($challenge['id']), '" />
                 <input type="hidden" name="action" value="submit_flag" />';
         form_xsrf_token();
         if (CONFIG_RECAPTCHA_ENABLE_PRIVATE) {
             display_captcha();
         }
         echo '<button class="btn btn-sm btn-primary flag-submit-button" type="submit" data-countdown="', max($challenge['latest_submission_added'] + $challenge['min_seconds_between_submissions'], 0), '" data-countdown-done="Submit flag">Submit flag</button>';
         if (should_print_metadata($challenge)) {
             echo '<div class="challenge-submit-metadata">';
             print_submit_metadata($challenge);
             echo '</div>';
         }
         echo '</form>';
         echo '
         </div>
         ';
     } else {
         message_inline_red("You have no remaining submission attempts. If you've made an erroneous submission, please contact the organizers.");
     }
 }
         <div class="col-md-6">
             <div class="form-group">
                 <label for="InputPassword">Password<sup>*</sup></label>
                 <input type="password" class="form-control" id="InputPassword" name="InputPassword">
             </div>
         </div>
         <div class="col-md-6">
             <div class="form-group">
                 <label for="InputConfirmPassword">Confirm Password<sup>*</sup></label>
                 <input type="password" class="form-control" id="InputConfirmPassword" name="InputConfirmPassword">
             </div>
         </div>
     </div>
     <?php echo $captcha_no_valid; ?>
     <div class="form-group">
         <?php display_captcha(); ?>
     </div>
     
     <div class="row">
         <div class="col-md-8">
             <label class="checkbox-inline">
                 <input type="checkbox" id="inlineCheckbox1" value="option1"> I read <a href="#">Terms and Conditions</a>.
             </label>
         </div>
         <div class="col-md-4">
             <button type="submit" class="btn btn-ar btn-primary pull-right" name="registro">Register</button>
         </div>
     </div>
     <input type="hidden" name="redirect_to" value="<?php bloginfo('home'); ?>" />
     <input type="hidden" name="testcookie" value="1" />
 </form>
コード例 #4
0
ファイル: captcha.php プロジェクト: LanceSandino/Stikked
<?php

header('Content-type: image/jpeg');
display_captcha($word);