mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
36 lines
661 B
PHP
36 lines
661 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Config;
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
class Honeypot extends BaseConfig
|
|
{
|
|
/**
|
|
* Makes Honeypot visible or not to human
|
|
*/
|
|
public bool $hidden = true;
|
|
|
|
/**
|
|
* Honeypot Label Content
|
|
*/
|
|
public string $label = 'Fill This Field';
|
|
|
|
/**
|
|
* Honeypot Field Name
|
|
*/
|
|
public string $name = 'honeypot';
|
|
|
|
/**
|
|
* Honeypot HTML Template
|
|
*/
|
|
public string $template = '<label>{label}</label><input type="text" name="{name}" value=""/>';
|
|
|
|
/**
|
|
* Honeypot container
|
|
*/
|
|
public string $container = '<div style="display:none">{template}</div>';
|
|
}
|