-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathantibot.tpl
58 lines (58 loc) · 1.69 KB
/
antibot.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{if empty($user) || $user eq 'anonymous' || (isset($showantibot) and $showantibot)}
{if $antibot_table ne 'y'}
<tr{if !empty($tr_style)} class="{$tr_style}"{/if}>
<td{if !empty($td_style)} class="{$td_style}"{/if}>
{else}
<div class="antibot1">
{/if}
{if $antibot_table ne 'y'}
</td>
<td id="captcha" {if !empty($td_style)} class="{$td_style}"{/if}>
{else}
</div>
<div class="antibot2">
{/if}
{if $captchalib->type eq 'recaptcha'}
{$captchalib->render()}
{else}
<input type="hidden" name="captcha[id]" id="captchaId" value="{$captchalib->generate()}">
{if $captchalib->type eq 'default'}
<img id="captchaImg" src="{$captchalib->getPath()}" alt="{tr}Anti-Bot verification code image{/tr}" height="50">
{else}
{* dumb captcha *}
{$captchalib->render()}
{/if}
{/if}
{if $antibot_table ne 'y'}
</td>
</tr>
{else}
</div>
{/if}
{if $captchalib->type ne 'recaptcha'}
{if $antibot_table ne 'y'}
<tr{if !empty($tr_style)} class="{$tr_style}"{/if}>
<td{if !empty($td_style)} class="{$td_style}"{/if}>
{else}
<div class="antibot3">
{/if}
<label for="antibotcode">{tr}Enter the code you see above{/tr}{if $showmandatory eq 'y'}<span class="attention"> *</span>{/if}</label>
{if $antibot_table ne 'y'}
</td>
<td{if !empty($td_style)} class="{$td_style}"{/if}>
{else}
</div>
<div class="antibot4">
{/if}
<input type="text" maxlength="8" size="22" name="captcha[input]" id="antibotcode">
{if $captchalib->type eq 'default'}
{button _id='captchaRegenerate' href='#antibot' _text="{tr}Try another code{/tr}" _onclick="generateCaptcha()"}
{/if}
{if $antibot_table ne 'y'}
</td>
</tr>
{else}
</div>
{/if}
{/if}
{/if}