Public feed #603455

Untitled

public text v1 · immutable
Raw Edit
·published 2007-07-04 20:04 UTC
rendered paste body
		// Show the IP to this user for this post - because you can moderate?

		if ($context['can_moderate_forum'] && !empty($message['member']['ip']))

			echo '

									<a href="', $scripturl, '?action=trackip;searchip=', $message['member']['ip'], '"><img src="', $settings['images_url'], '/ip.gif" alt="', $message['member']['ip'], '" title="', $message['member']['ip'], '" border="0" /></a> <a href="', $scripturl, '?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a>';

		// Or, should we show it because this is you?

		elseif ($message['can_see_ip'])

			echo '

									<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $message['member']['ip'], '</a>';

		// Okay, are you at least logged in?  Then we can show something about why IPs are logged...

		elseif (!$context['user']['is_guest'])

			echo '

									<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $txt[511], '</a>';

		// Otherwise, you see NOTHING!

		else

			echo '

									<img src="', $settings['images_url'], '/ip.gif" alt="IP Logged" title="IP Logged" border="0" />';