Honeypot.php 855 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. public bool $hidden = true;
  10. /**
  11. * Honeypot Label Content
  12. */
  13. public string $label = 'Fill This Field';
  14. /**
  15. * Honeypot Field Name
  16. */
  17. public string $name = 'honeypot';
  18. /**
  19. * Honeypot HTML Template
  20. */
  21. public string $template = '<label>{label}</label><input type="text" name="{name}" value="">';
  22. /**
  23. * Honeypot container
  24. *
  25. * If you enabled CSP, you can remove `style="display:none"`.
  26. */
  27. public string $container = '<div style="display:none">{template}</div>';
  28. /**
  29. * The id attribute for Honeypot container tag
  30. *
  31. * Used when CSP is enabled.
  32. */
  33. public string $containerId = 'hpc';
  34. }