Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
Field
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Modulus
Services
Field
Commits
8a107947
Commit
8a107947
authored
Jan 27, 2022
by
Sylvain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modif honeypot
parent
7d4beada
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
src/Compose/Field2Bt3.php
src/Compose/Field2Bt3.php
+4
-2
src/Field.php
src/Field.php
+4
-2
src/Field2.php
src/Field2.php
+2
-0
src/FieldBt3.php
src/FieldBt3.php
+2
-0
No files found.
src/Compose/Field2Bt3.php
View file @
8a107947
...
...
@@ -475,8 +475,10 @@ class Field2Bt3
break
;
case
'checkbox'
:
$template
=
'<div class="checkbox[INLINE]">'
.
PHP_EOL
;
$template
.=
' <input id="[ID]-[VALUE]" name="[NAME]" value="[VALUE]"[ATTRIBUTES][SELECTED]/>'
.
PHP_EOL
;
$template
.=
' <label class="form-check-label" for="[ID]-[VALUE]">[LABEL]</label>'
.
PHP_EOL
;
$template
.=
' <label class="form-check-label" for="[ID]-[VALUE]">'
.
PHP_EOL
;
$template
.=
' <input id="[ID]-[VALUE]" name="[NAME]" value="[VALUE]"[ATTRIBUTES][SELECTED]/>'
.
PHP_EOL
;
$template
.=
' [LABEL]'
.
PHP_EOL
;
$template
.=
' </label>'
.
PHP_EOL
;
$template
.=
'</div>'
.
PHP_EOL
;
$sub_template
=
''
;
$attr_selected
=
'checked'
;
...
...
src/Field.php
View file @
8a107947
...
...
@@ -223,14 +223,16 @@ class Field
public
function
honeypot
()
:
string
{
$field
=
new
FieldBt4
([
'name'
=>
'my-name'
,
'id'
=>
''
,
'name'
=>
'my-name'
,
'class'
=>
'd-none'
]);
$input1
=
$field
->
renderInput
();
$render1
=
$field
->
renderWrapFieldEnvironment
(
$input1
);
$field
=
new
FieldBt4
([
'name'
=>
'my-time'
,
'id'
=>
''
,
'name'
=>
'my-time'
,
'class'
=>
'd-none'
,
'value'
=>
encrypt
(
time
())
]);
...
...
src/Field2.php
View file @
8a107947
...
...
@@ -226,12 +226,14 @@ class Field2
public
function
honeypot
()
:
string
{
$field
=
new
FieldBt4
([
'id'
=>
''
,
'name'
=>
'my-name'
,
'attributes'
=>
[
'class'
=>
'd-none'
]
]);
$input1
=
$field
->
renderInput
();
$field
=
new
FieldBt4
([
'id'
=>
''
,
'name'
=>
'my-time'
,
'value'
=>
encrypt
(
time
()),
'attributes'
=>
[
'class'
=>
'd-none'
]
...
...
src/FieldBt3.php
View file @
8a107947
...
...
@@ -226,12 +226,14 @@ class FieldBt3
public
function
honeypot
()
:
string
{
$field
=
new
Field
([
'id'
=>
''
,
'name'
=>
'my-name'
,
'attributes'
=>
[
'class'
=>
'd-none'
]
]);
$input1
=
$field
->
renderInput
();
$field
=
new
Field
([
'id'
=>
''
,
'name'
=>
'my-time'
,
'value'
=>
encrypt
(
time
()),
'attributes'
=>
[
'class'
=>
'd-none'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment