Просмотр файла WhiteBlack/views/admin/settings/_protect.blade.php

Размер файла: 3.84Kb
  1. <h3>Защита / Безопасность</h3>
  2.  
  3. <form action="/admin/settings?act=protect" method="post">
  4. <input type="hidden" name="token" value="{{ $_SESSION['token'] }}">
  5.  
  6. <div class="form-group{{ hasError('sets[captcha_symbols]') }}">
  7. <label for="captcha_symbols">Допустимые символы captcha [a-z0-9]:</label>
  8. <input pattern="[a-z0-9]+" type="text" class="form-control" id="captcha_symbols" name="sets[captcha_symbols]" maxlength="36" value="{{ getInput('sets.captcha_symbols', $settings['captcha_symbols']) }}" required>
  9. {!! textError('sets[captcha_symbols]') !!}
  10. </div>
  11.  
  12. <div class="form-group{{ hasError('sets[captcha_maxlength]') }}">
  13. <label for="captcha_maxlength">Максимальное количество символов [4-6]:</label>
  14. <input type="number" min="4" max="6" class="form-control" id="captcha_maxlength" name="sets[captcha_maxlength]" maxlength="1" value="{{ getInput('sets.captcha_maxlength', $settings['captcha_maxlength']) }}" required>
  15. {!! textError('sets[captcha_maxlength]') !!}
  16. </div>
  17.  
  18. <div class="form-group{{ hasError('sets[captcha_angle]') }}">
  19. <label for="captcha_angle">Поворот букв [0-30]:</label>
  20. <input type="number" min="0" max="30" class="form-control" id="captcha_angle" name="sets[captcha_angle]" maxlength="2" value="{{ getInput('sets.captcha_angle', $settings['captcha_angle']) }}" required>
  21. {!! textError('sets[captcha_angle]') !!}
  22. </div>
  23.  
  24. <div class="form-group{{ hasError('sets[captcha_offset]') }}">
  25. <label for="captcha_offset">Амплитуда колебаний символов [0-10]:</label>
  26. <input type="number" min="0" max="10" class="form-control" id="captcha_offset" name="sets[captcha_offset]" maxlength="2" value="{{ getInput('sets.captcha_offset', $settings['captcha_offset']) }}" required>
  27. {!! textError('sets[captcha_offset]') !!}
  28. </div>
  29.  
  30. <div class="custom-control custom-checkbox">
  31. <input type="hidden" value="0" name="sets[captcha_distortion]">
  32. <input type="checkbox" class="custom-control-input" value="1" name="sets[captcha_distortion]" id="captcha_distortion"{{ getInput('sets.captcha_distortion', $settings['captcha_distortion']) ? ' checked' : '' }}>
  33. <label class="custom-control-label" for="captcha_distortion">Искажение</label>
  34. </div>
  35.  
  36. <div class="custom-control custom-checkbox">
  37. <input type="hidden" value="0" name="sets[captcha_interpolation]">
  38. <input type="checkbox" class="custom-control-input" value="1" name="sets[captcha_interpolation]" id="captcha_interpolation"{{ getInput('sets.captcha_interpolation', $settings['captcha_interpolation']) ? ' checked' : '' }}>
  39. <label class="custom-control-label" for="captcha_interpolation">Размытие</label>
  40. </div>
  41.  
  42. <h3 class="mt-3">reCaptcha</h3>
  43.  
  44. <div class="form-group{{ hasError('sets[recaptcha_public]') }}">
  45. <label for="recaptcha_public">Публичный ключ reCaptcha:</label>
  46. <input type="hidden" name="opt[recaptcha_public]" value="1">
  47. <input type="text" class="form-control" id="recaptcha_public" name="sets[recaptcha_public]" value="{{ getInput('sets.recaptcha_public', $settings['recaptcha_public']) }}">
  48. {!! textError('sets[recaptcha_public]') !!}
  49. </div>
  50.  
  51. <div class="form-group{{ hasError('sets[recaptcha_private]') }}">
  52. <label for="recaptcha_private">Секретный ключ reCaptcha:</label>
  53. <input type="hidden" name="opt[recaptcha_private]" value="1">
  54. <input type="text" class="form-control" id="recaptcha_private" name="sets[recaptcha_private]" value="{{ getInput('sets.recaptcha_private', $settings['recaptcha_private']) }}">
  55. {!! textError('sets[recaptcha_private]') !!}
  56. </div>
  57.  
  58. <button class="btn btn-primary">Сохранить</button>
  59. </form>