git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@257 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
nanosimbiot 2011-08-26 17:21:17 +00:00
commit 7508b31b82
2 changed files with 9 additions and 3 deletions

View file

@ -57,7 +57,7 @@ $bb_cfg['css_ver'] = 1;
// Increase number of revision after update // Increase number of revision after update
$bb_cfg['tp_version'] = '2.1 Stable'; $bb_cfg['tp_version'] = '2.1 Stable';
$bb_cfg['tp_release_state'] = 'R256'; $bb_cfg['tp_release_state'] = 'R257';
$bb_cfg['tp_release_date'] = '26-08-2011'; $bb_cfg['tp_release_date'] = '26-08-2011';
$bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger $bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger

View file

@ -24,6 +24,7 @@ class captcha_common
var $new_cap_sid = ''; var $new_cap_sid = '';
var $new_code_key = ''; var $new_code_key = '';
var $new_cap_code = ''; var $new_cap_code = '';
var $new_img_url = '';
var $new_img_path = ''; var $new_img_path = '';
var $new_img_bin = ''; var $new_img_bin = '';
@ -84,11 +85,11 @@ class captcha_common
if ($this->cfg['disabled']) return ''; if ($this->cfg['disabled']) return '';
$this->gen_cap_sid(); $this->gen_cap_sid();
$this->new_img_path = $this->get_img_path($this->new_cap_id); $this->new_img_url = $this->get_img_url($this->new_cap_id);
$this->new_code_key = $this->get_key_name(TIMENOW); $this->new_code_key = $this->get_key_name(TIMENOW);
return ' return '
<div><img src="'. $this->cfg['img_url'] .'?'. mt_rand() .'" width="120" height="72" alt="pic" /></div> <div><img src="'. $this->new_img_url .'?'. mt_rand() .'" width="120" height="72" alt="pic" /></div>
<input type="hidden" name="'. $this->cap_sid_key .'" value="'. $this->new_cap_sid .'" /> <input type="hidden" name="'. $this->cap_sid_key .'" value="'. $this->new_cap_sid .'" />
<input type="text" name="'. $this->new_code_key .'" value="" size="25" class="bold" /> <input type="text" name="'. $this->new_code_key .'" value="" size="25" class="bold" />
'; ';
@ -130,6 +131,11 @@ class captcha_common
CACHE('bb_cap_sid')->set('c_sid_'. $this->new_cap_sid, $this->new_cap_code, $this->key_ttl*2); CACHE('bb_cap_sid')->set('c_sid_'. $this->new_cap_sid, $this->new_cap_code, $this->key_ttl*2);
} }
function get_img_url ($id)
{
return $this->get_path($id, $this->cfg['img_url']);
}
function get_img_path ($id) function get_img_path ($id)
{ {
return $this->get_path($id, $this->cfg['img_path']); return $this->get_path($id, $this->cfg['img_path']);