mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
r256
фикс генерации капчи при ручном запуске крон задачи git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@256 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
b272eb83ca
commit
65c53d5c56
2 changed files with 5 additions and 4 deletions
|
@ -57,8 +57,8 @@ $bb_cfg['css_ver'] = 1;
|
|||
|
||||
// Increase number of revision after update
|
||||
$bb_cfg['tp_version'] = '2.1 Stable';
|
||||
$bb_cfg['tp_release_state'] = 'R253';
|
||||
$bb_cfg['tp_release_date'] = '25-08-2011';
|
||||
$bb_cfg['tp_release_state'] = 'R256';
|
||||
$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['srv_overloaded_msg'] = "Извините, в данный момент сервер перегружен\nПопробуйте повторить запрос через несколько минут";
|
||||
|
@ -510,4 +510,5 @@ $bb_cfg['advert_html_path'] = $bb_cfg['html_path'] .'advert.html'; #
|
|||
// Captcha
|
||||
$bb_cfg['captcha']['disabled'] = false;
|
||||
$bb_cfg['captcha']['secret_key'] = 'secret_key';
|
||||
$bb_cfg['captcha']['img_path'] = "./images/captcha/"; # without '/'
|
||||
$bb_cfg['captcha']['img_url'] = './images/captcha/'; # without '/'
|
||||
$bb_cfg['captcha']['img_path'] = BB_PATH .'/images/captcha/'; # without '/'
|
||||
|
|
|
@ -88,7 +88,7 @@ class captcha_common
|
|||
$this->new_code_key = $this->get_key_name(TIMENOW);
|
||||
|
||||
return '
|
||||
<div><img src="'. $this->new_img_path .'?'. mt_rand() .'" width="120" height="72" alt="pic" /></div>
|
||||
<div><img src="'. $this->cfg['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="text" name="'. $this->new_code_key .'" value="" size="25" class="bold" />
|
||||
';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue