Up to [Local Repository] / interchange / code / SystemTag
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Added License, version, and copyright info to captcha tag.
* Add file security checks. * Document reset option.
* Make one image function, modified by parameters. * Add relative and name-only options to control image function. * Add reset=1 option to allow more than one captcha per page transaction (however unlikely that is to be needed). * Changed docs to reflect this. * Add example to docs.
* Add "captcha" capability to Interchange.
* Docs for captcha tag embedded in code/SystemTag/captcha.coretag.
* Short example:
[if cgi mv_captcha_guess]
[tmp good][captcha check][/tmp]
[if scratch good]
You guessed right!
[else]
Sorry, try again.
[/else]
[/if]
[/if]
[captcha imagetag]
<form action="[process href="@@MV_PAGE@@"]">
<input type=hidden name=mv_captcha_source value="[captcha code]">
<input type=text name=mv_captcha_guess size value="">
<input type=submit value="Guess">
</form>
[error auto=1]
* Also add ability to specify capability for creating new IC account
in catalog.cfg:
UserDB default captcha 1
Combined with this code in pages/new_account.html:
[if config UserDB->captcha]
<tr>
<td colspan=2>
[captcha image_tag]
</td>
</tr>
<tr>
<td align="right" class="titletab_small">
<b>[L]Letters above[/L]:</b>
</td>
<td align="left" class="titletab_small">
<input type="text" name="mv_captcha_guess" value="">
</td>
</tr>
[/if]
will insist on user getting captcha correct before new account
is generated.
* Not included by default as most sites don't have much problem.