phpBB

Code Changes

File: includes/mcp/mcp_post.php

  Unmodified   Added   Modified   Removed
Line 363Line 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 405Line 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 475Line 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 489Line 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,