phpBB

Code Changes

File: includes/mcp/mcp_post.php

  Unmodified   Added   Modified   Removed
Line 212Line 212
	{
$l_deleted_by = '';
}

	{
$l_deleted_by = '';
}

 

// parse signature
$parse_flags = ($post_info['user_sig_bbcode_bitfield'] ? OPTION_FLAG_BBCODE : 0) | OPTION_FLAG_SMILIES;
$post_info['user_sig'] = generate_text_for_display($post_info['user_sig'], $post_info['user_sig_bbcode_uid'], $post_info['user_sig_bbcode_bitfield'], $parse_flags, true);


$mcp_post_template_data = array(
'U_MCP_ACTION' => "$url&i=main&quickmod=1&mode=post_details", // Use this for mode paramaters


$mcp_post_template_data = array(
'U_MCP_ACTION' => "$url&i=main&quickmod=1&mode=post_details", // Use this for mode paramaters

Line 262Line 266
		'POST_IP'				=> $post_info['poster_ip'],
'POST_IPADDR' => ($auth->acl_get('m_info', $post_info['forum_id']) && $request->variable('lookup', '')) ? @gethostbyaddr($post_info['poster_ip']) : '',
'POST_ID' => $post_info['post_id'],

		'POST_IP'				=> $post_info['poster_ip'],
'POST_IPADDR' => ($auth->acl_get('m_info', $post_info['forum_id']) && $request->variable('lookup', '')) ? @gethostbyaddr($post_info['poster_ip']) : '',
'POST_ID' => $post_info['post_id'],

 
		'SIGNATURE'				=> $post_info['user_sig'],


'U_LOOKUP_IP' => ($auth->acl_get('m_info', $post_info['forum_id'])) ? "$url&i=$id&mode=$mode&lookup={$post_info['poster_ip']}#ip" : '',
'U_WHOIS' => ($auth->acl_get('m_info', $post_info['forum_id'])) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=$id&mode=$mode&action=whois&p=$post_id&ip={$post_info['poster_ip']}") : '',


'U_LOOKUP_IP' => ($auth->acl_get('m_info', $post_info['forum_id'])) ? "$url&i=$id&mode=$mode&lookup={$post_info['poster_ip']}#ip" : '',
'U_WHOIS' => ($auth->acl_get('m_info', $post_info['forum_id'])) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=$id&mode=$mode&action=whois&p=$post_id&ip={$post_info['poster_ip']}") : '',

Line 358Line 363
		/** @var \phpbb\pagination $pagination */
$pagination = $phpbb_container->get('pagination');


		/** @var \phpbb\pagination $pagination */
$pagination = $phpbb_container->get('pagination');


		$rdns_ip_num = $request->variable('rdns', '');

 
		$start_users = $request->variable('start_users', 0);

		$start_users = $request->variable('start_users', 0);

 
		$rdns_ip_num = $request->variable('rdns', '');
$lookup_all = $rdns_ip_num === 'all';





		if ($rdns_ip_num != 'all')




		$base_url = $url . '&i=main&mode=post_details';
$base_url .= $lookup_all ? '&rdns=all' : '';

if (!$lookup_all)

		{

		{

			$template->assign_vars(array(
'U_LOOKUP_ALL' => "$url&i=main&mode=post_details&rdns=all")
);

			$template->assign_var('U_LOOKUP_ALL', $base_url . '&rdns=all');



		}

$num_users = false;

		}

$num_users = false;

Line 400Line 407
			}

$pagination->generate_template_pagination(

			}

$pagination->generate_template_pagination(

				$url . '&i=main&mode=post_details',

				$base_url,

				'pagination',
'start_users',
$num_users,

				'pagination',
'start_users',
$num_users,

Line 470Line 477
				'NUM_POSTS'		=> $row['postings'],
'L_POST_S' => ($row['postings'] == 1) ? $user->lang['POST'] : $user->lang['POSTS'],


				'NUM_POSTS'		=> $row['postings'],
'L_POST_S' => ($row['postings'] == 1) ? $user->lang['POST'] : $user->lang['POSTS'],


				'U_LOOKUP_IP'	=> ($rdns_ip_num == $row['poster_ip'] || $rdns_ip_num == 'all') ? '' : "$url&i=$id&mode=post_details&rdns={$row['poster_ip']}#ip",

				'U_LOOKUP_IP'	=> (!$lookup_all && $rdns_ip_num != $row['poster_ip']) ? "$base_url&start_ips={$start_ips}&rdns={$row['poster_ip']}#ip" : '',

				'U_WHOIS'		=> append_sid("{$phpbb_root_path}mcp.$phpEx", "i=$id&mode=$mode&action=whois&p=$post_id&ip={$row['poster_ip']}"))
);
}

				'U_WHOIS'		=> append_sid("{$phpbb_root_path}mcp.$phpEx", "i=$id&mode=$mode&action=whois&p=$post_id&ip={$row['poster_ip']}"))
);
}

Line 484Line 491
			}

$pagination->generate_template_pagination(

			}

$pagination->generate_template_pagination(

				$url . '&i=main&mode=post_details',

				$base_url,

				'pagination_ips',
'start_ips',
$num_ips,

				'pagination_ips',
'start_ips',
$num_ips,