Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
Securimage
Commits
17d434b0
Commit
17d434b0
authored
9 years ago
by
dapphp
Browse files
Options
Download
Patches
Plain Diff
Add example for rendering captcha html components individually
parent
972d367a
master
nextgen
4.0.2
4.0.1
3.6.8
3.6.7
3.6.6
3.6.5
3.6.4
3.6.3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
example_form.php
+22
-0
example_form.php
with
22 additions
and
0 deletions
+22
-0
example_form.php
+
22
−
0
View file @
17d434b0
...
...
@@ -92,7 +92,29 @@ if (isset($_SESSION['ctform']['error']) && $_SESSION['ctform']['error'] == true
$options
[
'error_html'
]
=
$_SESSION
[
'ctform'
][
'captcha_error'
];
}
echo
"<div id='captcha_container_1'>
\n
"
;
echo
Securimage
::
getCaptchaHtml
(
$options
);
echo
"
\n
</div>
\n
"
;
/*
// To render some or all captcha components individually
$options['input_name'] = 'ct_captcha_2';
$options['image_id'] = 'ct_captcha_2';
$options['input_id'] = 'ct_captcha_2';
$options['namespace'] = 'captcha2';
echo "<br>\n<div id='captcha_container_2'>\n";
echo Securimage::getCaptchaHtml($options, Securimage::HTML_IMG);
echo Securimage::getCaptchaHtml($options, Securimage::HTML_ICON_REFRESH);
echo Securimage::getCaptchaHtml($options, Securimage::HTML_AUDIO);
echo '<div style="clear: both"></div>';
echo Securimage::getCaptchaHtml($options, Securimage::HTML_INPUT_LABEL);
echo Securimage::getCaptchaHtml($options, Securimage::HTML_INPUT);
echo "\n</div>";
*/
?>
</div>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets