forked from e-cidade/e-cidade
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcaptcha.php
More file actions
executable file
·28 lines (24 loc) · 1.27 KB
/
captcha.php
File metadata and controls
executable file
·28 lines (24 loc) · 1.27 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
<div>
<div class="container-captcha-controllers">
<!-- Reload -->
<a href="#" tabindex="-1" title="Clique para recarregar a imagem" onclick="return reloadCaptcha();" class="captcha-controllers-images">
<img src="./securimage/images/refresh.png" alt="Clique para recarregar a imagem" onclick="this.blur()" />
</a>
<!-- Audio -->
<object type="application/x-shockwave-flash" data="./securimage/securimage_play.swf?audio_file=./securimage/securimage_play.php&icon_file=./securimage/images/audio.png" height="20" width="20">
<param name="movie" value="./securimage/securimage_play.swf?audio_file=./securimage/securimage_play.php&icon_file=./securimage/images/audio.png" />
</object>
</div>
<img id="siimage" src="./carregaCaptcha.php?sid=<?php echo md5(uniqid()); ?>" alt="Digite os caracteres no campo abaixo" class="imgCaptcha" />
<!-- Informe captcha -->
<div class="captcha-controllers-input">
<label for="ct_captcha">O que você vê acima?</label>
<input type="text" id="ct_captcha" name="ct_captcha" maxlength="8" />
</div>
</div>
<script type="text/javascript">
function reloadCaptcha() {
document.getElementById('siimage').src = './carregaCaptcha.php?sid=' + Math.random();
this.blur();
}
</script>