mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -05:00
size & pool
This commit is contained in:
parent
09cde43a1b
commit
ac0beb7513
@ -401,7 +401,7 @@ class Main extends CI_Controller
|
|||||||
$this->load->helper('captcha');
|
$this->load->helper('captcha');
|
||||||
|
|
||||||
//get "word"
|
//get "word"
|
||||||
$pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@';
|
$pool = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ@';
|
||||||
$str = '';
|
$str = '';
|
||||||
for ($i = 0;$i < 4;$i++)
|
for ($i = 0;$i < 4;$i++)
|
||||||
{
|
{
|
||||||
@ -433,7 +433,7 @@ class Main extends CI_Controller
|
|||||||
if ($this->config->item('enable_captcha'))
|
if ($this->config->item('enable_captcha'))
|
||||||
{
|
{
|
||||||
$this->form_validation->set_message('_valid_captcha', 'The Captcha is incorrect.');
|
$this->form_validation->set_message('_valid_captcha', 'The Captcha is incorrect.');
|
||||||
return $text == $this->db_session->userdata('captcha');
|
return strtolower($text) == strtolower($this->db_session->userdata('captcha'));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -110,7 +110,7 @@
|
|||||||
<label for="captcha">Spam Protection
|
<label for="captcha">Spam Protection
|
||||||
<span class="instruction">Type in the characters displayed in the picture.</span>
|
<span class="instruction">Type in the characters displayed in the picture.</span>
|
||||||
</label>
|
</label>
|
||||||
<img class="captcha" src="<?php echo site_url('view/captcha'); ?>?<?php echo date('U', mktime()); ?>" alt="captcha" width="110" height="25" />
|
<img class="captcha" src="<?php echo site_url('view/captcha'); ?>?<?php echo date('U', mktime()); ?>" alt="captcha" width="110" height="40" />
|
||||||
<input value="<?php if(isset($captcha_set)){ echo $captcha_set; }?>" type="text" id="captcha" name="captcha" tabindex="2" maxlength="32" />
|
<input value="<?php if(isset($captcha_set)){ echo $captcha_set; }?>" type="text" id="captcha" name="captcha" tabindex="2" maxlength="32" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user