size & pool

This commit is contained in:
Claude 2012-06-12 21:46:11 +02:00
parent 09cde43a1b
commit ac0beb7513
2 changed files with 3 additions and 3 deletions

View File

@ -401,7 +401,7 @@ class Main extends CI_Controller
$this->load->helper('captcha');
//get "word"
$pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@';
$pool = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ@';
$str = '';
for ($i = 0;$i < 4;$i++)
{
@ -433,7 +433,7 @@ class Main extends CI_Controller
if ($this->config->item('enable_captcha'))
{
$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
{

View File

@ -110,7 +110,7 @@
<label for="captcha">Spam Protection
<span class="instruction">Type in the characters displayed in the picture.</span>
</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" />
</div>
</div>