mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
r257
git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@257 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
65c53d5c56
commit
7508b31b82
2 changed files with 9 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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']);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue