Example #1
0
if (!function_exists('array_all_thanks'))
{
	include($phpbb_root_path . 'includes/functions_thanks.' . $phpEx);
}
array_all_thanks($post_list);
if (isset($_REQUEST['thanks']) && !isset($_REQUEST['rthanks'])) 
{
	insert_thanks(request_var('thanks', 0), $user->data['user_id']);
}
if (isset($_REQUEST['rthanks']) && !isset($_REQUEST['thanks']))
{
	delete_thanks(request_var('rthanks', 0), $user->data['user_id']);
}
if (isset($_REQUEST['list_thanks'])) 
{
	clear_list_thanks(request_var('p', 0), request_var('list_thanks', ''));
}
// Output the posts
$first_unread = $post_unread = false;
for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
{
	// A non-existing rowset only happens if there was no user present for the entered poster_id
	// This could be a broken posts table.
	if (!isset($rowset[$post_list[$i]]))
	{
		continue;
	}

	$row =& $rowset[$post_list[$i]];
	$poster_id = $row['user_id'];
Example #2
0
		{
			foreach ($profile_fields['blockrow'] as $field_data)
			{
				$template->assign_block_vars('custom_fields', $field_data);
			}
		}


	if (!function_exists('get_thanks'))
	{
		include($phpbb_root_path . 'includes/functions_thanks.' . $phpEx);	
	}
	$user->add_lang('mods/thanks_mod');
	if (isset($_REQUEST['list_thanks'])) 
	{
		clear_list_thanks($user_id, request_var('list_thanks', ''));
	}
	if (isset($config['thanks_mod_version']))
	{
		output_thanks_memberlist($user_id, $ex_fid_ary);
	}
		// Inactive reason/account?
		if ($member['user_type'] == USER_INACTIVE)
		{
			$user->add_lang('acp/common');

			$inactive_reason = $user->lang['INACTIVE_REASON_UNKNOWN'];

			switch ($member['user_inactive_reason'])
			{
				case INACTIVE_REGISTER: