phpBB

Code Changes

File: includes/ucp/ucp_activate.php

  Unmodified   Added   Modified   Removed
Line 30Line 30
	function main($id, $mode)
{
global $config, $phpbb_root_path, $phpEx;

	function main($id, $mode)
{
global $config, $phpbb_root_path, $phpEx;

		global $db, $user, $auth, $template, $phpbb_container;

		global $db, $user, $auth, $template, $phpbb_container, $phpbb_dispatcher;


$user_id = request_var('u', 0);
$key = request_var('k', '');


$user_id = request_var('u', 0);
$key = request_var('k', '');

Line 142Line 142
				$message = 'PASSWORD_ACTIVATED';
}
}

				$message = 'PASSWORD_ACTIVATED';
}
}

 

/**
* This event can be used to modify data after user account's activation
*
* @event core.ucp_activate_after
* @var array user_row Array with some user data
* @var string message Language string of the message that will be displayed to the user
* @since 3.1.6-RC1
*/
$vars = array('user_row', 'message');
extract($phpbb_dispatcher->trigger_event('core.ucp_activate_after', compact($vars)));


meta_refresh(3, append_sid("{$phpbb_root_path}index.$phpEx"));
trigger_error($user->lang[$message]);


meta_refresh(3, append_sid("{$phpbb_root_path}index.$phpEx"));
trigger_error($user->lang[$message]);