mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
- Bug
git-svn-id: file:///svn/phpbb/trunk@6243 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
34a8d610c0
commit
5541765c4a
2 changed files with 16 additions and 1 deletions
|
@ -73,6 +73,16 @@ class ucp_confirm
|
||||||
$policy = '';
|
$policy = '';
|
||||||
if (@extension_loaded('gd') && sizeof($policy_modules))
|
if (@extension_loaded('gd') && sizeof($policy_modules))
|
||||||
{
|
{
|
||||||
|
$change_lang = request_var('change_lang', '');
|
||||||
|
|
||||||
|
if ($change_lang)
|
||||||
|
{
|
||||||
|
$lang = $change_lang;
|
||||||
|
$user->lang_name = $lang = $change_lang;
|
||||||
|
$user->lang_path = $phpbb_root_path . 'language/' . $lang . '/';
|
||||||
|
$user->lang = array();
|
||||||
|
$user->add_lang(array('common', 'ucp'));
|
||||||
|
}
|
||||||
include($phpbb_root_path . 'includes/captcha/captcha_gd.' . $phpEx);
|
include($phpbb_root_path . 'includes/captcha/captcha_gd.' . $phpEx);
|
||||||
$policy = $policy_modules[array_rand($policy_modules)];
|
$policy = $policy_modules[array_rand($policy_modules)];
|
||||||
}
|
}
|
||||||
|
|
|
@ -363,6 +363,7 @@ class ucp_register
|
||||||
// Visual Confirmation - Show images
|
// Visual Confirmation - Show images
|
||||||
if ($config['enable_confirm'])
|
if ($config['enable_confirm'])
|
||||||
{
|
{
|
||||||
|
$str = '';
|
||||||
if (!$change_lang)
|
if (!$change_lang)
|
||||||
{
|
{
|
||||||
$sql = 'SELECT session_id
|
$sql = 'SELECT session_id
|
||||||
|
@ -409,8 +410,12 @@ class ucp_register
|
||||||
);
|
);
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$str .= '&change_lang=' . $change_lang;
|
||||||
|
}
|
||||||
|
|
||||||
$confirm_image = '<img src="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=confirm&id=' . $confirm_id . '&type=' . CONFIRM_REG) . '" alt="" title="" />';
|
$confirm_image = '<img src="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=confirm&id=' . $confirm_id . '&type=' . CONFIRM_REG . $str) . '" alt="" title="" />';
|
||||||
$s_hidden_fields .= '<input type="hidden" name="confirm_id" value="' . $confirm_id . '" />';
|
$s_hidden_fields .= '<input type="hidden" name="confirm_id" value="' . $confirm_id . '" />';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue