phpBB

Code Changes

File: includes/acp/acp_users.php

  Unmodified   Added   Modified   Removed
Line 24Line 24
	var $u_action;
var $p_master;


	var $u_action;
var $p_master;


	function acp_users(&$p_master)

	function __construct($p_master)

	{

	{

		$this->p_master = &$p_master;

		$this->p_master = $p_master;

	}

function main($id, $mode)

	}

function main($id, $mode)

Line 822Line 822
							* @var	string	action		Quick tool that should be run
* @var array user_row Current user data
* @var string u_action The u_action link

							* @var	string	action		Quick tool that should be run
* @var array user_row Current user data
* @var string u_action The u_action link

 
							* @var	int		user_id		User id of the user to manage

							* @since 3.1.0-a1
* @changed 3.2.2-RC1 Added u_action

							* @since 3.1.0-a1
* @changed 3.2.2-RC1 Added u_action

 
							* @changed 3.2.10-RC1 Added user_id

							*/

							*/

							$vars = array('action', 'user_row', 'u_action');

							$vars = array('action', 'user_row', 'u_action', 'user_id');

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

unset($u_action);

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

unset($u_action);

Line 855Line 857
						$check_ary += array(
'username' => array(
array('string', false, $config['min_name_chars'], $config['max_name_chars']),

						$check_ary += array(
'username' => array(
array('string', false, $config['min_name_chars'], $config['max_name_chars']),

								array('username', $user_row['username'])

								array('username', $user_row['username'], true)

							),
);
}

							),
);
}

Line 1882Line 1884
										'user_avatar_width' => $result['avatar_width'],
'user_avatar_height' => $result['avatar_height'],
);

										'user_avatar_width' => $result['avatar_width'],
'user_avatar_height' => $result['avatar_height'],
);

 

/**
* Modify users preferences data before assigning it to the template
*
* @event core.acp_users_avatar_sql
* @var array user_row Array with user data
* @var array result Array with user avatar data to be updated in the DB
* @since 3.2.4-RC1
*/
$vars = array('user_row', 'result');
extract($phpbb_dispatcher->trigger_event('core.acp_users_avatar_sql', compact($vars)));


$sql = 'UPDATE ' . USERS_TABLE . '
SET ' . $db->sql_build_array('UPDATE', $result) . '


$sql = 'UPDATE ' . USERS_TABLE . '
SET ' . $db->sql_build_array('UPDATE', $result) . '

Line 2084Line 2097
							'user_sig_bbcode_uid'		=> $bbcode_uid,
'user_sig_bbcode_bitfield' => $bbcode_bitfield,
);

							'user_sig_bbcode_uid'		=> $bbcode_uid,
'user_sig_bbcode_bitfield' => $bbcode_bitfield,
);

 

/**
* Modify user signature before it is stored in the DB
*
* @event core.acp_users_modify_signature_sql_ary
* @var array user_row Array with user data
* @var array sql_ary Array with user signature data to be updated in the DB
* @since 3.2.4-RC1
*/
$vars = array('user_row', 'sql_ary');
extract($phpbb_dispatcher->trigger_event('core.acp_users_modify_signature_sql_ary', compact($vars)));


$sql = 'UPDATE ' . USERS_TABLE . '
SET ' . $db->sql_build_array('UPDATE', $sql_ary) . '


$sql = 'UPDATE ' . USERS_TABLE . '
SET ' . $db->sql_build_array('UPDATE', $sql_ary) . '

Line 2099Line 2123

if ($request->is_set_post('preview'))
{


if ($request->is_set_post('preview'))
{

					$decoded_message = generate_text_for_edit($signature, $bbcode_uid, $bbcode_bitfield);

					$decoded_message = generate_text_for_edit($signature, $bbcode_uid, $bbcode_flags);

				}

/** @var \phpbb\controller\helper $controller_helper */

				}

/** @var \phpbb\controller\helper $controller_helper */

Line 2585Line 2609
			break;

default:

			break;

default:

 
				$u_action = $this->u_action;


/**
* Additional modes provided by extensions


/**
* Additional modes provided by extensions

Line 2594Line 2619
				* @var	int		user_id			User id of the user to manage
* @var array user_row Array with user data
* @var array error Array with errors data

				* @var	int		user_id			User id of the user to manage
* @var array user_row Array with user data
* @var array error Array with errors data

 
				* @var	string	u_action		The u_action link

				* @since 3.2.2-RC1

				* @since 3.2.2-RC1

 
				* @changed 3.2.10-RC1 Added u_action

				*/

				*/

				$vars = array('mode', 'user_id', 'user_row', 'error');

				$vars = array('mode', 'user_id', 'user_row', 'error', 'u_action');

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


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


 
				unset($u_action);

			break;
}


			break;
}