// Attention: only able to redirect within the same domain if $disable_cd_check is false (yourdomain.com -> www.yourdomain.com will not work) if (!$disable_cd_check && $url_parts['host'] !== $user->host) {

// Attention: only able to redirect within the same domain if $disable_cd_check is false (yourdomain.com -> www.yourdomain.com will not work) if (!$disable_cd_check && $url_parts['host'] !== $user->host) {

// We need to be cautious here. // On some situations, the redirect path is an absolute URL, sometimes a relative path // For a relative path, let's prefix it with $phpbb_root_path to point to the correct location, // else we use the URL directly. $url_parts = parse_url($page);

/*** Add a secret token to the form (requires the S_FORM_TOKEN template variable)* @param string $form_name The name of the form; has to match the name used in check_form_key, otherwise no restrictions apply

/*** Add a secret token to the form (requires the S_FORM_TOKEN template variable)* @param string $form_name The name of the form; has to match the name used in check_form_key, otherwise no restrictions apply

* @param string $template_variable_suffix A string that is appended to the name of the template variable to which the form elements are assigned

* @param array $user_row Row from the users table* @param string $alt Optional language string for alt tag within image, can be a language key or text* @param bool $ignore_config Ignores the config-setting, to be still able to view the avatar in the UCP

* @param array $user_row Row from the users table* @param string $alt Optional language string for alt tag within image, can be a language key or text* @param bool $ignore_config Ignores the config-setting, to be still able to view the avatar in the UCP

* @param array $group_row Row from the groups table* @param string $alt Optional language string for alt tag within image, can be a language key or text* @param bool $ignore_config Ignores the config-setting, to be still able to view the avatar in the UCP

* @param array $group_row Row from the groups table* @param string $alt Optional language string for alt tag within image, can be a language key or text* @param bool $ignore_config Ignores the config-setting, to be still able to view the avatar in the UCP

* @param array $row Row cleaned by \phpbb\avatar\manager::clean_row* @param string $alt Optional language string for alt tag within image, can be a language key or text* @param bool $ignore_config Ignores the config-setting, to be still able to view the avatar in the UCP

* @param array $row Row cleaned by \phpbb\avatar\manager::clean_row* @param string $alt Optional language string for alt tag within image, can be a language key or text* @param bool $ignore_config Ignores the config-setting, to be still able to view the avatar in the UCP

if ($lazy) { // Determine board url - we may need it later $board_url = generate_board_url() . '/'; // This path is sent with the base template paths in the assign_vars() // call below. We need to correct it in case we are accessing from a // controller because the web paths will be incorrect otherwise. $phpbb_path_helper = $phpbb_container->get('path_helper'); $corrected_path = $phpbb_path_helper->get_web_root_path();