seccheck.htm
1.42 KB
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
{eval
$sechash = 'S'.random(4);
$sectpl = !empty($sectpl) ? explode("<sec>", $sectpl) : array('<br />',': ','<br />','');
$ran = random(5, 1);
}
<!--{if $secqaacheck}-->
<!--{eval
$message = '';
$question = make_secqaa();
$secqaa = lang('core', 'secqaa_tips').$question;
}-->
<!--{/if}-->
<!--{if $sectpl}-->
<!--{if $secqaacheck}-->
<p>
{lang secqaa}:
<span class="xg2">$secqaa</span>
<input name="secqaahash" type="hidden" value="$sechash" />
<input name="secanswer" id="secqaaverify_$sechash" type="text" class="txt" />
</p>
<!--{/if}-->
<!--{if $seccodecheck}-->
<div class="sec_code vm">
<input name="seccodehash" type="hidden" value="$sechash" />
<input type="text" class="txt px vm" style="ime-mode:disabled;width:115px;background:white;" autocomplete="off" value="" id="seccodeverify_$sechash" name="seccodeverify" placeholder="{lang seccode}" fwin="seccode">
<img src="misc.php?mod=seccode&update={$ran}&idhash={$sechash}&mobile=2" class="seccodeimg"/>
</div>
<!--{/if}-->
<!--{/if}-->
<script type="text/javascript">
(function() {
$('.seccodeimg').on('click', function() {
$('#seccodeverify_$sechash').attr('value', '');
var tmprandom = 'S' + Math.floor(Math.random() * 1000);
$('.sechash').attr('value', tmprandom);
$(this).attr('src', 'misc.php?mod=seccode&update={$ran}&idhash='+ tmprandom +'&mobile=2');
});
})();
</script>