phpBB

Code Changes

File: includes/acp/acp_language.php

  Unmodified   Added   Modified   Removed
Line 34Line 34
		global $config, $db, $user, $template;
global $phpbb_root_path, $phpEx, $request;


		global $config, $db, $user, $template;
global $phpbb_root_path, $phpEx, $request;


		include_once($phpbb_root_path . 'includes/functions_user.' . $phpEx);




		if (!function_exists('validate_language_iso_name'))
{
include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
}


// Check and set some common vars
$action = (isset($_POST['update_details'])) ? 'update_details' : '';


// Check and set some common vars
$action = (isset($_POST['update_details'])) ? 'update_details' : '';

Line 241Line 244
			break;

case 'install':

			break;

case 'install':

 
				if (!check_link_hash($request->variable('hash', ''), 'acp_language'))
{
trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}


				$lang_iso = request_var('iso', '');
$lang_iso = basename($lang_iso);


				$lang_iso = request_var('iso', '');
$lang_iso = basename($lang_iso);


Line 420Line 428
					'ISO'			=> htmlspecialchars($lang_ary['iso']),
'LOCAL_NAME' => htmlspecialchars($lang_ary['local_name'], ENT_COMPAT, 'UTF-8'),
'NAME' => htmlspecialchars($lang_ary['name'], ENT_COMPAT, 'UTF-8'),

					'ISO'			=> htmlspecialchars($lang_ary['iso']),
'LOCAL_NAME' => htmlspecialchars($lang_ary['local_name'], ENT_COMPAT, 'UTF-8'),
'NAME' => htmlspecialchars($lang_ary['name'], ENT_COMPAT, 'UTF-8'),

					'U_INSTALL'		=> $this->u_action . '&action=install&iso=' . urlencode($lang_ary['iso']))

					'U_INSTALL'		=> $this->u_action . '&action=install&iso=' . urlencode($lang_ary['iso']) . '&hash=' . generate_link_hash('acp_language'))

				);
}
}

				);
}
}