phpBB

Code Changes

File: includes/functions_user.php

  Unmodified   Added   Modified   Removed
Line 272Line 272
	* Use this event to modify the values to be inserted when a user is added
*
* @event core.user_add_modify_data

	* Use this event to modify the values to be inserted when a user is added
*
* @event core.user_add_modify_data

	* @var array	user_row		Array of user details submited to user_add
* @var array cp_data Array of Custom profile fields submited to user_add
* @var array sql_ary Array of data to be inserted when a user is added


	* @var array	user_row			Array of user details submited to user_add
* @var array cp_data Array of Custom profile fields submited to user_add
* @var array sql_ary Array of data to be inserted when a user is added
* @var array notifications_data Array of notification data to be inserted when a user is added

	* @since 3.1.0-a1

	* @since 3.1.0-a1

	* @change 3.1.0-b5


	* @changed 3.1.0-b5 Added user_row and cp_data
* @changed 3.1.11-RC1 Added notifications_data

	*/

	*/

	$vars = array('user_row', 'cp_data', 'sql_ary');

	$vars = array('user_row', 'cp_data', 'sql_ary', 'notifications_data');

	extract($phpbb_dispatcher->trigger_event('core.user_add_modify_data', compact($vars)));

$sql = 'INSERT INTO ' . USERS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);

	extract($phpbb_dispatcher->trigger_event('core.user_add_modify_data', compact($vars)));

$sql = 'INSERT INTO ' . USERS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);

Line 1291Line 1293
*/
function user_unban($mode, $ban)
{

*/
function user_unban($mode, $ban)
{

	global $db, $user, $auth, $cache;

	global $db, $user, $auth, $cache, $phpbb_dispatcher;


// Delete stale bans
$sql = 'DELETE FROM ' . BANLIST_TABLE . '


// Delete stale bans
$sql = 'DELETE FROM ' . BANLIST_TABLE . '

Line 1358Line 1360
				add_log('user', $user_id, 'LOG_UNBAN_' . strtoupper($mode), $l_unban_list);
}
}

				add_log('user', $user_id, 'LOG_UNBAN_' . strtoupper($mode), $l_unban_list);
}
}

 

/**
* Use this event to perform actions after the unban has been performed
*
* @event core.user_unban
* @var string mode One of the following: user, ip, email
* @var array user_ids_ary Array with user_ids
* @since 3.1.11-RC1
*/
$vars = array(
'mode',
'user_ids_ary',
);
extract($phpbb_dispatcher->trigger_event('core.user_unban', compact($vars)));

	}

$cache->destroy('sql', BANLIST_TABLE);

	}

$cache->destroy('sql', BANLIST_TABLE);

Line 2279Line 2295
{
global $config, $user;


{
global $config, $user;


	return $user->lang('AVATAR_EXPLAIN',

	return $user->lang(($config['avatar_filesize'] == 0) ? 'AVATAR_EXPLAIN_NO_FILESIZE' : 'AVATAR_EXPLAIN',

		$user->lang('PIXELS', (int) $config['avatar_max_width']),
$user->lang('PIXELS', (int) $config['avatar_max_height']),
round($config['avatar_filesize'] / 1024));

		$user->lang('PIXELS', (int) $config['avatar_max_width']),
$user->lang('PIXELS', (int) $config['avatar_max_height']),
round($config['avatar_filesize'] / 1024));