function _checkCaptcha($word) {
if(strtolower($word) == strtolower($_SESSION['captcha']) && !empty($_SESSION['captcha'])) {
return true;
}
else {
$this->form_validation->set_message('_checkCaptcha', 'Captcha word is incorrect.');
return false;
}
function _checkCaptcha($word) {
/*if(strtolower($word) == strtolower($_SESSION['captcha']) && !empty($_SESSION['captcha'])) {
return true;
}
else {
$this->form_validation->set_message('_checkCaptcha', 'Captcha word is incorrect.');
return false;*/
return true;
}
<fieldset>
<legend>Security image</legend>
<div class="table">
<ul style="width: 30%">
<li class="even">
</li>
<li class="even">
<label>Captcha World</label>
</li>
</ul>
<ul style="width: 70%">
<li class="even">
<?php echo $captcha;?>
</li>
<li class="even">
<input type='text' name='captcha'/>
</li>
</ul>
</div>
</fieldset>
Try
Replace this:
- system/application/controllers/accounts.php
With this:PHP:function _checkCaptcha($word) { if(strtolower($word) == strtolower($_SESSION['captcha']) && !empty($_SESSION['captcha'])) { return true; } else { $this->form_validation->set_message('_checkCaptcha', 'Captcha word is incorrect.'); return false; }
PHP:function _checkCaptcha($word) { /*if(strtolower($word) == strtolower($_SESSION['captcha']) && !empty($_SESSION['captcha'])) { return true; } else { $this->form_validation->set_message('_checkCaptcha', 'Captcha word is incorrect.'); return false;*/ return true; }Delete this:
- system/application/views/create.php
PHP:<fieldset> <legend>Security image</legend> <div class="table"> <ul style="width: 30%"> <li class="even"> </li> <li class="even"> <label>Captcha World</label> </li> </ul> <ul style="width: 70%"> <li class="even"> <?php echo $captcha;?> </li> <li class="even"> <input type='text' name='captcha'/> </li> </ul> </div> </fieldset>