You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
730B

  1. <?php
  2. namespace Config;
  3. use CodeIgniter\Config\BaseConfig;
  4. class Honeypot extends BaseConfig
  5. {
  6. /**
  7. * Makes Honeypot visible or not to human
  8. *
  9. * @var bool
  10. */
  11. public $hidden = true;
  12. /**
  13. * Honeypot Label Content
  14. *
  15. * @var string
  16. */
  17. public $label = 'Fill This Field';
  18. /**
  19. * Honeypot Field Name
  20. *
  21. * @var string
  22. */
  23. public $name = 'honeypot';
  24. /**
  25. * Honeypot HTML Template
  26. *
  27. * @var string
  28. */
  29. public $template = '<label>{label}</label><input type="text" name="{name}" value=""/>';
  30. /**
  31. * Honeypot container
  32. *
  33. * @var string
  34. */
  35. public $container = '<div style="display:none">{template}</div>';
  36. }