phpBB

Code Changes

File: includes/ucp/ucp_register.php

  Unmodified   Added   Modified   Removed
Line 166Line 166
					->format($user->lang['DATE_FORMAT'], true);
unset($now);


					->format($user->lang['DATE_FORMAT'], true);
unset($now);


				$template->assign_vars(array(
'S_LANG_OPTIONS' => (sizeof($lang_row) > 1) ? language_select($user_lang) : '',

				$template_vars = array(
'S_LANG_OPTIONS' => (count($lang_row) > 1) ? language_select($user_lang) : '',

					'L_COPPA_NO'		=> sprintf($user->lang['UCP_COPPA_BEFORE'], $coppa_birthday),
'L_COPPA_YES' => sprintf($user->lang['UCP_COPPA_ON_AFTER'], $coppa_birthday),


					'L_COPPA_NO'		=> sprintf($user->lang['UCP_COPPA_BEFORE'], $coppa_birthday),
'L_COPPA_YES' => sprintf($user->lang['UCP_COPPA_ON_AFTER'], $coppa_birthday),


Line 180Line 180

'COOKIE_NAME' => $config['cookie_name'],
'COOKIE_PATH' => $config['cookie_path'],


'COOKIE_NAME' => $config['cookie_name'],
'COOKIE_PATH' => $config['cookie_path'],

				));

				);

			}
else
{

			}
else
{

				$template->assign_vars(array(
'S_LANG_OPTIONS' => (sizeof($lang_row) > 1) ? language_select($user_lang) : '',

				$template_vars = array(
'S_LANG_OPTIONS' => (count($lang_row) > 1) ? language_select($user_lang) : '',

					'L_TERMS_OF_USE'	=> sprintf($user->lang['TERMS_OF_USE_CONTENT'], $config['sitename'], generate_board_url()),

'S_SHOW_COPPA' => false,

					'L_TERMS_OF_USE'	=> sprintf($user->lang['TERMS_OF_USE_CONTENT'], $config['sitename'], generate_board_url()),

'S_SHOW_COPPA' => false,

Line 195Line 195

'COOKIE_NAME' => $config['cookie_name'],
'COOKIE_PATH' => $config['cookie_path'],


'COOKIE_NAME' => $config['cookie_name'],
'COOKIE_PATH' => $config['cookie_path'],

					)

 
				);
}

				);
}

 

$tpl_name = 'ucp_agreement';

/**
* Allows to modify the agreements.
*
* @event core.ucp_register_agreement_modify_template_data
* @var string tpl_name Template file
* @var array template_vars Array with data about to be assigned to the template
* @var array s_hidden_fields Array with hidden form elements
* @var array lang_row Array with available languages, read only
* @since 3.2.2-RC1
*/
$vars = array('tpl_name', 'template_vars', 's_hidden_fields', 'lang_row');
extract($phpbb_dispatcher->trigger_event('core.ucp_register_agreement_modify_template_data', compact($vars)));


			unset($lang_row);

			unset($lang_row);

 

$template_vars = array_merge($template_vars, array(
'S_HIDDEN_FIELDS' => build_hidden_fields($s_hidden_fields),
));

$template->assign_vars($template_vars);


/**
* Allows to modify the agreements.


/**
* Allows to modify the agreements.

Line 207Line 228
			*
* @event core.ucp_register_agreement
* @since 3.1.6-RC1

			*
* @event core.ucp_register_agreement
* @since 3.1.6-RC1

 
			* @deprecated 3.2.2-RC1 Replaced by core.ucp_register_agreement_modify_template_data and to be removed in 3.3.0-RC1

			*/
$phpbb_dispatcher->dispatch('core.ucp_register_agreement');


			*/
$phpbb_dispatcher->dispatch('core.ucp_register_agreement');


			$this->tpl_name = 'ucp_agreement';

			$this->tpl_name = $tpl_name;

			return;
}


			return;
}


Line 297Line 319
			// validate custom profile fields
$cp->submit_cp_field('register', $user->get_iso_lang_id(), $cp_data, $error);


			// validate custom profile fields
$cp->submit_cp_field('register', $user->get_iso_lang_id(), $cp_data, $error);


			if (!sizeof($error))

			if (!count($error))

			{
if ($data['new_password'] != $data['password_confirm'])
{

			{
if ($data['new_password'] != $data['password_confirm'])
{

Line 318Line 340
			$vars = array('submit', 'data', 'cp_data', 'error');
extract($phpbb_dispatcher->trigger_event('core.ucp_register_data_after', compact($vars)));


			$vars = array('submit', 'data', 'cp_data', 'error');
extract($phpbb_dispatcher->trigger_event('core.ucp_register_data_after', compact($vars)));


			if (!sizeof($error))

			if (!count($error))

			{
$server_url = generate_board_url();


			{
$server_url = generate_board_url();


Line 505Line 527
		{
$s_hidden_fields = array_merge($s_hidden_fields, $captcha->get_hidden_fields());
}

		{
$s_hidden_fields = array_merge($s_hidden_fields, $captcha->get_hidden_fields());
}

		$s_hidden_fields = build_hidden_fields($s_hidden_fields);

 

// Visual Confirmation - Show images
if ($config['enable_confirm'])


// Visual Confirmation - Show images
if ($config['enable_confirm'])

Line 531Line 552
		// Assign template vars for timezone select
phpbb_timezone_select($template, $user, $data['tz'], true);


		// Assign template vars for timezone select
phpbb_timezone_select($template, $user, $data['tz'], true);


		$template->assign_vars(array(
'ERROR' => (sizeof($error)) ? implode('<br />', $error) : '',

		$template_vars = array(


			'USERNAME'			=> $data['username'],
'PASSWORD' => $data['new_password'],
'PASSWORD_CONFIRM' => $data['password_confirm'],

			'USERNAME'			=> $data['username'],
'PASSWORD' => $data['new_password'],
'PASSWORD_CONFIRM' => $data['password_confirm'],

Line 547Line 567
			'S_CONFIRM_REFRESH'	=> ($config['enable_confirm'] && $config['confirm_refresh']) ? true : false,
'S_REGISTRATION' => true,
'S_COPPA' => $coppa,

			'S_CONFIRM_REFRESH'	=> ($config['enable_confirm'] && $config['confirm_refresh']) ? true : false,
'S_REGISTRATION' => true,
'S_COPPA' => $coppa,

			'S_HIDDEN_FIELDS'	=> $s_hidden_fields,

 
			'S_UCP_ACTION'		=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register'),

'COOKIE_NAME' => $config['cookie_name'],
'COOKIE_PATH' => $config['cookie_path'],

			'S_UCP_ACTION'		=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register'),

'COOKIE_NAME' => $config['cookie_name'],
'COOKIE_PATH' => $config['cookie_path'],

 
		);

$tpl_name = 'ucp_register';

/**
* Modify template data on the registration page
*
* @event core.ucp_register_modify_template_data
* @var array template_vars Array with template data
* @var array data Array with user data, read only
* @var array error Array with errors
* @var array s_hidden_fields Array with hidden field elements
* @var string tpl_name Template name
* @since 3.2.2-RC1
*/
$vars = array(
'template_vars',
'data',
'error',
's_hidden_fields',
'tpl_name',
);
extract($phpbb_dispatcher->trigger_event('core.ucp_register_modify_template_data', compact($vars)));

$template_vars = array_merge($template_vars, array(
'ERROR' => (count($error)) ? implode('<br />', $error) : '',
'S_HIDDEN_FIELDS' => build_hidden_fields($s_hidden_fields),

		));

		));

 

$template->assign_vars($template_vars);


//
$user->profile_fields = array();


//
$user->profile_fields = array();

Line 561Line 609
		$cp->generate_profile_fields('register', $user->get_iso_lang_id());

//

		$cp->generate_profile_fields('register', $user->get_iso_lang_id());

//

		$this->tpl_name = 'ucp_register';
$this->page_title = 'UCP_REGISTRATION';

		$this->tpl_name = $tpl_name;


	}

/**

	}

/**