2024-03-22 22:42:22 +01:00
|
|
|
enabled: true
|
|
|
|
|
built_in_css: true
|
|
|
|
|
inline_css: true
|
|
|
|
|
refresh_prevention: false
|
|
|
|
|
client_side_validation: true
|
|
|
|
|
debug: false
|
|
|
|
|
inline_errors: false
|
2024-04-30 21:27:37 +02:00
|
|
|
modular_form_fix: true
|
2024-03-22 22:42:22 +01:00
|
|
|
files:
|
|
|
|
|
multiple: false # To allow multiple files, default is single
|
|
|
|
|
limit: 10 # Number of allowed files per field (multiple required)
|
|
|
|
|
destination: 'self@' # Where to upload the files (path and self@, page@, theme@)
|
|
|
|
|
avoid_overwriting: false # Prevent files with the same name to be overridden. Date prefix will be added
|
|
|
|
|
random_name: false # Generate a random 15 long string name for the uploaded files
|
|
|
|
|
filesize: 0 # Maximum file size allowed (in MB)
|
|
|
|
|
accept: # List of mime/types or file extensions allowed (ie, image/*,.zip,.mp4)
|
|
|
|
|
- image/*
|
|
|
|
|
recaptcha:
|
|
|
|
|
version: 2-checkbox
|
|
|
|
|
theme: light
|
|
|
|
|
site_key:
|
|
|
|
|
secret_key:
|
|
|
|
|
turnstile:
|
|
|
|
|
theme: light # options: [light | dark]
|
|
|
|
|
site_key:
|
|
|
|
|
secret_key:
|
|
|
|
|
|
|
|
|
|
basic_captcha:
|
2025-11-11 19:27:29 +01:00
|
|
|
type: math # Options: dotcount, position, math, characters
|
|
|
|
|
debug: false # Enable debug logging for troubleshooting
|
|
|
|
|
|
|
|
|
|
# Image settings
|
|
|
|
|
image:
|
|
|
|
|
width: 135 # Image width (default: 135 for classic size)
|
|
|
|
|
height: 40 # Image height (default: 40 for classic size)
|
|
|
|
|
bg: '#ffffff' # Background color
|
|
|
|
|
|
|
|
|
|
# Character captcha settings (used for the 'characters' type)
|
2024-03-22 22:42:22 +01:00
|
|
|
chars:
|
2025-11-11 19:27:29 +01:00
|
|
|
length: 6 # Number of characters to display
|
|
|
|
|
font: zxx-xed.ttf # Font file in the plugin's fonts directory
|
|
|
|
|
size: 24 # Font size
|
|
|
|
|
box_width: 200 # Image width
|
|
|
|
|
box_height: 70 # Image height
|
|
|
|
|
start_x: 10 # Starting X position for text
|
|
|
|
|
start_y: 40 # Starting Y position for text
|
|
|
|
|
bg: '#ffffff' # Background color
|
|
|
|
|
text: '#000000' # Text color
|
|
|
|
|
|
|
|
|
|
# Math puzzle settings (used for the 'math' type)
|
2024-03-22 22:42:22 +01:00
|
|
|
math:
|
2025-11-11 19:27:29 +01:00
|
|
|
min: 1 # Minimum number value
|
|
|
|
|
max: 12 # Maximum number value
|
|
|
|
|
operators: ['+','-','*'] # Available operators
|