<?php
// FROM HASH: 29acd559f6837c7cf2e50ccd8cd8cc77
return array(
'code' => function($__templater, array $__vars, $__extensions = null)
{
	$__finalCompiled = '';
	$__templater->pageParams['pageTitle'] = $__templater->preEscaped('Spam cleaner' . $__vars['xf']['language']['label_separator'] . ' ' . $__templater->escape($__vars['user']['username']));
	$__finalCompiled .= '

';
	$__compilerTemp1 = '';
	if ($__templater->method($__vars['xf']['visitor'], 'hasAdminPermission', array('user', )) AND $__vars['user']['email']) {
		$__compilerTemp1 .= '
							<dl class="pairs pairs--columns">
								<dt>' . 'Email' . '</dt>
								<dd>' . $__templater->filter($__vars['user']['email'], array(array('email_display', array()),), true) . '</dd>
							</dl>
						';
	}
	$__compilerTemp2 = '';
	if ($__vars['canViewIps']) {
		$__compilerTemp2 .= '
							';
		$__vars['registerIp'] = $__templater->method($__vars['user'], 'getIp', array('register', ));
		$__compilerTemp2 .= '

							';
		if ($__vars['registerIp']) {
			$__compilerTemp2 .= '
								<dl class="pairs pairs--columns">
									<dt>' . 'Registration IP' . '</dt>
									<dd><a class="ip concealed" href="' . $__templater->func('link', array('misc/ip-info', null, array('ip' => $__templater->filter($__vars['registerIp'], array(array('ip', array()),), false), ), ), true) . '" target="_blank">' . $__templater->filter($__vars['registerIp'], array(array('ip', array()),), true) . '</a></dd>
								</dl>
							';
		}
		$__compilerTemp2 .= '

							';
		if ($__vars['contentIp']) {
			$__compilerTemp2 .= '
								<dl class="pairs pairs--columns">
									<dt>' . 'Content IP' . '</dt>
									<dd><a class="ip concealed" href="' . $__templater->func('link', array('misc/ip-info', null, array('ip' => $__templater->filter($__vars['contentIp'], array(array('ip', array()),), false), ), ), true) . '" target="_blank">' . $__templater->filter($__vars['contentIp'], array(array('ip', array()),), true) . '</a></dd>
								</dl>
							';
		}
		$__compilerTemp2 .= '
						';
	}
	$__compilerTemp3 = '';
	if ($__vars['xf']['options']['spamThreadAction']['action'] == 'move') {
		$__compilerTemp3 .= '
							' . 'Move spammer\'s threads' . '
						';
	} else {
		$__compilerTemp3 .= '
							' . 'Delete spammer\'s threads' . '
						';
	}
	$__compilerTemp4 = array(array(
		'name' => 'action_threads',
		'checked' => $__vars['xf']['options']['spamDefaultOptions']['action_threads'],
		'label' => '
						' . $__compilerTemp3 . '
					',
		'_type' => 'option',
	)
,array(
		'name' => 'delete_messages',
		'checked' => $__vars['xf']['options']['spamDefaultOptions']['delete_messages'],
		'label' => 'Delete spammer\'s messages',
		'_type' => 'option',
	)
,array(
		'name' => 'delete_conversations',
		'checked' => $__vars['xf']['options']['spamDefaultOptions']['delete_conversations'],
		'label' => 'Delete direct messages by spammer',
		'_type' => 'option',
	)
,array(
		'name' => 'ban_user',
		'checked' => $__vars['xf']['options']['spamDefaultOptions']['ban_user'],
		'label' => 'Ban spammer',
		'_type' => 'option',
	));
	if ($__vars['canViewIps']) {
		$__compilerTemp4[] = array(
			'name' => 'check_ips',
			'checked' => $__vars['xf']['options']['spamDefaultOptions']['check_ips'],
			'label' => 'Check spammer\'s IPs',
			'_type' => 'option',
		);
	}
	$__finalCompiled .= $__templater->form('
	<div class="block-container">
		<div class="block-body">
			' . $__templater->formRow('
				<div class="contentRow">
					<div class="contentRow-figure">
						' . $__templater->func('avatar', array($__vars['user'], 'm', false, array(
	))) . '
					</div>
					<div class="contentRow-main">
						<dl class="pairs pairs--columns">
							<dt>' . 'Last activity' . '</dt>
							<dd>' . $__templater->func('date_dynamic', array($__vars['user']['last_activity'], array(
	))) . '</dd>
						</dl>

						' . $__compilerTemp1 . '

						' . $__compilerTemp2 . '
					</div>
				</div>
			', array(
		'rowtype' => 'fullWidth noLabel',
	)) . '

			' . $__templater->formInfoRow('
				<div class="pairJustifier">
					' . $__templater->callMacro(null, 'member_macros::member_stat_pairs', array(
		'user' => $__vars['user'],
		'context' => 'spam-cleaner',
	), $__vars) . '
				</div>
			', array(
	)) . '

			' . $__templater->formCheckBoxRow(array(
	), $__compilerTemp4, array(
		'label' => 'Spam cleaner actions',
	)) . '
		</div>

		' . $__templater->formSubmitRow(array(
		'submit' => 'Clean',
	), array(
	)) . '
	</div>

	' . $__templater->formHiddenVal('no_redirect', $__vars['noRedirect'], array(
	)) . '
', array(
		'action' => $__templater->func('link', array('spam-cleaner', $__vars['user'], ), false),
		'ajax' => 'true',
		'class' => 'block',
	));
	return $__finalCompiled;
}
);