diff --git a/upload/config.php b/upload/config.php index 29a9ea498..603826301 100644 --- a/upload/config.php +++ b/upload/config.php @@ -57,7 +57,7 @@ $bb_cfg['css_ver'] = 1; // Increase number of revision after update $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['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger diff --git a/upload/includes/captcha/captcha.php b/upload/includes/captcha/captcha.php index 22ad1d2a3..4e65c82c8 100644 --- a/upload/includes/captcha/captcha.php +++ b/upload/includes/captcha/captcha.php @@ -24,6 +24,7 @@ class captcha_common var $new_cap_sid = ''; var $new_code_key = ''; var $new_cap_code = ''; + var $new_img_url = ''; var $new_img_path = ''; var $new_img_bin = ''; @@ -84,11 +85,11 @@ class captcha_common if ($this->cfg['disabled']) return ''; $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); return ' -
pic
+
pic
'; @@ -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); } + function get_img_url ($id) + { + return $this->get_path($id, $this->cfg['img_url']); + } + function get_img_path ($id) { return $this->get_path($id, $this->cfg['img_path']);