phpBB

Code Changes

File: includes/functions_user.php

  Unmodified   Added   Modified   Removed
Line 210Line 210

// These are the additional vars able to be specified
$additional_vars = array(


// These are the additional vars able to be specified
$additional_vars = array(

		'user_permissions'	=> '',
'user_timezone' => $config['board_timezone'],
'user_dateformat' => $config['default_dateformat'],
'user_lang' => $config['default_lang'],
'user_style' => (int) $config['default_style'],
'user_actkey' => '',
'user_ip' => '',
'user_regdate' => time(),
'user_passchg' => time(),
'user_options' => 230271,

		'user_permissions'			=> '',
'user_timezone' => $config['board_timezone'],
'user_dateformat' => $config['default_dateformat'],
'user_lang' => $config['default_lang'],
'user_style' => (int) $config['default_style'],
'user_actkey' => '',
'user_ip' => '',
'user_regdate' => time(),
'user_passchg' => time(),
'user_options' => 230271,

		// We do not set the new flag here - registration scripts need to specify it

		// We do not set the new flag here - registration scripts need to specify it

		'user_new'			=> 0,

		'user_new'					=> 0,


'user_inactive_reason' => 0,
'user_inactive_time' => 0,


'user_inactive_reason' => 0,
'user_inactive_time' => 0,

Line 1575Line 1575
		return false;
}


		return false;
}


	if ($min && utf8_strlen(htmlspecialchars_decode($string, ENT_COMPAT)) < $min)

	if ($min && utf8_strlen(html_entity_decode($string, ENT_COMPAT)) < $min)

	{
return 'TOO_SHORT';
}

	{
return 'TOO_SHORT';
}

	else if ($max && utf8_strlen(htmlspecialchars_decode($string, ENT_COMPAT)) > $max)

	else if ($max && utf8_strlen(html_entity_decode($string, ENT_COMPAT)) > $max)

	{
return 'TOO_LONG';
}

	{
return 'TOO_LONG';
}