how to close Verification code

2012-09-07   来源:站长日记       编辑:沧海桑田   类别:PHP 教程    转载到:    发表评论

setting.tpl















admin/controller /setting/ setting.php
$this->data['entry_captcha'] = $this->language->get('entry_captcha');
  if (isset($this->request->post['config_captcha'])) {
   $this->data['config_captcha'] = $this->request->post['config_captcha'];
  } else {
   $this->data['config_captcha'] = $this->config->get('config_captcha');
  }
language/english/setting/ setting.php
$_['entry_captcha']          = 'Verify save code ';
//

//some where

if($this->config->get('config_captcha')){

      if (empty($this->session->data['captcha']) || ($this->session->data['captcha'] != $this->request->post['captcha'])) {
        $this->error['captcha'] = $this->language->get('error_captcha');
     }

}

0

0
0|0 | 鲜花 VS 砸蛋 | 72阅读 0评论