Procházet zdrojové kódy

Merge branch 'master' of https://github.com/emanuele45/playpen

Conflicts:
	Sources/Session.php
Spuds před 12 roky
rodič
revize
3af69457de
100 změnil soubory, kde provedl 5 přidání a 9929 odebrání
  1. 4 4
      Sources/Session.php
  2. 1 1
      Sources/Subs-Post.php
  3. 0 514
      Themes/core/BoardIndex.template.php
  4. 0 843
      Themes/core/Display.template.php
  5. 0 375
      Themes/core/GenericMenu.template.php
  6. 0 203
      Themes/core/Memberlist.template.php
  7. 0 506
      Themes/core/MessageIndex.template.php
  8. 0 1763
      Themes/core/PersonalMessage.template.php
  9. 0 423
      Themes/core/Recent.template.php
  10. 0 263
      Themes/core/Settings.template.php
  11. 0 306
      Themes/core/Stats.template.php
  12. 0 63
      Themes/core/css/ie6.css
  13. 0 22
      Themes/core/css/ie7.css
  14. 0 3537
      Themes/core/css/index.css
  15. 0 9
      Themes/core/css/index.php
  16. 0 1071
      Themes/core/css/rtl.css
  17. 0 8
      Themes/core/css/webkit.css
  18. binární
      Themes/core/images/Female.gif
  19. binární
      Themes/core/images/Male.gif
  20. binární
      Themes/core/images/admin/administration.gif
  21. binární
      Themes/core/images/admin/attachment.gif
  22. binární
      Themes/core/images/admin/ban.gif
  23. binární
      Themes/core/images/admin/boards.gif
  24. binární
      Themes/core/images/admin/calendar.gif
  25. binární
      Themes/core/images/admin/change_menu.png
  26. binární
      Themes/core/images/admin/change_menu2.png
  27. binární
      Themes/core/images/admin/corefeatures.gif
  28. binární
      Themes/core/images/admin/current_theme.gif
  29. binární
      Themes/core/images/admin/engines.gif
  30. binární
      Themes/core/images/admin/feature_cd.png
  31. binární
      Themes/core/images/admin/feature_cp.png
  32. binární
      Themes/core/images/admin/feature_k.png
  33. binární
      Themes/core/images/admin/feature_ml.png
  34. binární
      Themes/core/images/admin/feature_pm.png
  35. binární
      Themes/core/images/admin/feature_ps.png
  36. binární
      Themes/core/images/admin/feature_rg.png
  37. binární
      Themes/core/images/admin/feature_sp.png
  38. binární
      Themes/core/images/admin/feature_w.png
  39. binární
      Themes/core/images/admin/features.gif
  40. binární
      Themes/core/images/admin/features_and_options.png
  41. binární
      Themes/core/images/admin/forum_maintenance.png
  42. binární
      Themes/core/images/admin/ignore.gif
  43. 0 9
      Themes/core/images/admin/index.php
  44. binární
      Themes/core/images/admin/languages.gif
  45. binární
      Themes/core/images/admin/logs.gif
  46. binární
      Themes/core/images/admin/mail.gif
  47. binární
      Themes/core/images/admin/maintain.gif
  48. binární
      Themes/core/images/admin/membergroups.gif
  49. binární
      Themes/core/images/admin/members.gif
  50. binární
      Themes/core/images/admin/members.png
  51. binární
      Themes/core/images/admin/modifications.gif
  52. binární
      Themes/core/images/admin/news.gif
  53. binární
      Themes/core/images/admin/package_ops.gif
  54. binární
      Themes/core/images/admin/packages.gif
  55. binární
      Themes/core/images/admin/packages.png
  56. binární
      Themes/core/images/admin/paid.gif
  57. binární
      Themes/core/images/admin/permissions.gif
  58. binární
      Themes/core/images/admin/permissions.png
  59. binární
      Themes/core/images/admin/post_moderation_allow.gif
  60. binární
      Themes/core/images/admin/post_moderation_deny.gif
  61. binární
      Themes/core/images/admin/post_moderation_moderate.gif
  62. binární
      Themes/core/images/admin/posts.gif
  63. binární
      Themes/core/images/admin/regcenter.gif
  64. binární
      Themes/core/images/admin/reports.gif
  65. binární
      Themes/core/images/admin/scheduled.gif
  66. binární
      Themes/core/images/admin/search.gif
  67. binární
      Themes/core/images/admin/security.gif
  68. binární
      Themes/core/images/admin/server.gif
  69. binární
      Themes/core/images/admin/smiley.gif
  70. binární
      Themes/core/images/admin/smilies_and_messageicons.png
  71. binární
      Themes/core/images/admin/subsection.gif
  72. binární
      Themes/core/images/admin/subsection2.gif
  73. binární
      Themes/core/images/admin/support.gif
  74. binární
      Themes/core/images/admin/support_and_credits.png
  75. binární
      Themes/core/images/admin/switch_off.png
  76. binární
      Themes/core/images/admin/switch_on.png
  77. binární
      Themes/core/images/admin/themes.gif
  78. binární
      Themes/core/images/admin/themes_and_layout.png
  79. binární
      Themes/core/images/admintab_active_last.gif
  80. binární
      Themes/core/images/admintab_active_left.gif
  81. binární
      Themes/core/images/admintab_active_right.gif
  82. binární
      Themes/core/images/admintab_back.gif
  83. binární
      Themes/core/images/admintab_left.gif
  84. binární
      Themes/core/images/admintab_right.gif
  85. binární
      Themes/core/images/aim.gif
  86. binární
      Themes/core/images/bar.gif
  87. binární
      Themes/core/images/bar_stats.png
  88. binární
      Themes/core/images/bbc/bbc_bg.gif
  89. binární
      Themes/core/images/bbc/bbc_hoverbg.gif
  90. binární
      Themes/core/images/bbc/bold.gif
  91. binární
      Themes/core/images/bbc/center.gif
  92. binární
      Themes/core/images/bbc/code.gif
  93. binární
      Themes/core/images/bbc/divider.gif
  94. binární
      Themes/core/images/bbc/email.gif
  95. binární
      Themes/core/images/bbc/flash.gif
  96. binární
      Themes/core/images/bbc/ftp.gif
  97. binární
      Themes/core/images/bbc/glow.gif
  98. binární
      Themes/core/images/bbc/hr.gif
  99. binární
      Themes/core/images/bbc/img.gif
  100. 0 9
      Themes/core/images/bbc/index.php

+ 4 - 4
Sources/Session.php

@@ -51,7 +51,7 @@ function loadSession()
 			session_write_close();
 
 		// This is here to stop people from using bad junky PHPSESSIDs.
-		if (isset($_REQUEST[session_name()]) && preg_match('~^[A-Za-z0-9,-]{16,32}$~', $_REQUEST[session_name()]) == 0 && !isset($_COOKIE[session_name()]))
+
 		{
 			$session_id = md5(md5('smf_sess_' . time()) . mt_rand());
 			$_REQUEST[session_name()] = $session_id;
@@ -129,7 +129,7 @@ function sessionRead($session_id)
 {
 	global $smcFunc;
 
-	if (preg_match('~^[A-Za-z0-9,-]{16,32}$~', $session_id) == 0)
+	if (preg_match('~^[A-Za-z0-9,-]{16,64}$~', $session_id) == 0)
 		return false;
 
 	// Look for it in the database.
@@ -159,7 +159,7 @@ function sessionWrite($session_id, $data)
 {
 	global $smcFunc;
 
-	if (preg_match('~^[A-Za-z0-9,-]{16,32}$~', $session_id) == 0)
+	if (preg_match('~^[A-Za-z0-9,-]{16,64}$~', $session_id) == 0)
 		return false;
 
 	// First try to update an existing row...
@@ -196,7 +196,7 @@ function sessionDestroy($session_id)
 {
 	global $smcFunc;
 
-	if (preg_match('~^[A-Za-z0-9,-]{16,32}$~', $session_id) == 0)
+	if (preg_match('~^[A-Za-z0-9,-]{16,64}$~', $session_id) == 0)
 		return false;
 
 	// Just delete the row...

+ 1 - 1
Sources/Subs-Post.php

@@ -1831,7 +1831,7 @@ function createPost(&$msgOptions, &$topicOptions, &$posterOptions)
 	$smcFunc['db_insert']('',
 		'{db_prefix}messages',
 		array(
-			'id_board' => 'int', 'id_topic' => 'int', 'id_member' => 'int', 'subject' => 'string-255', 'body' => (!empty($modSettings['max_messageLength']) && $modSettings['max_messageLength'] > 65534 ? 'string-' . $modSettings['max_messageLength'] : 'string-65534'),
+			'id_board' => 'int', 'id_topic' => 'int', 'id_member' => 'int', 'subject' => 'string-255', 'body' => (!empty($modSettings['max_messageLength']) && $modSettings['max_messageLength'] > 65534 ? 'string-' . $modSettings['max_messageLength'] : (isset($modSettings['max_messageLength']) && $modSettings['max_messageLength'] == 0 ? 'string' : 'string-65534')),
 			'poster_name' => 'string-255', 'poster_email' => 'string-255', 'poster_time' => 'int', 'poster_ip' => 'string-255',
 			'smileys_enabled' => 'int', 'modified_name' => 'string', 'icon' => 'string-16', 'approved' => 'int',
 		),

+ 0 - 514
Themes/core/BoardIndex.template.php

@@ -1,514 +0,0 @@
-<?php
-/**
- * Simple Machines Forum (SMF)
- *
- * @package SMF
- * @author Simple Machines
- * @copyright 2011 Simple Machines
- * @license http://www.simplemachines.org/about/smf/license.php BSD
- *
- * @version 2.1 Alpha 1
- */
-
-function template_main()
-{
-	global $context, $settings, $options, $txt, $scripturl, $modSettings;
-
-	// Show some statistics if stat info is off.
-	if (!$settings['show_stats_index'])
-		echo '
-	<p id="stats">
-		', $txt['members'], ': ', $context['common_stats']['total_members'], ' &nbsp;&#8226;&nbsp; ', $txt['posts_made'], ': ', $context['common_stats']['total_posts'], ' &nbsp;&#8226;&nbsp; ', $txt['topics'], ': ', $context['common_stats']['total_topics'], '
-		', ($settings['show_latest_member'] ? '<br />' . $txt['welcome_member'] . ' <strong>' . $context['common_stats']['latest_member']['link'] . '</strong>' . $txt['newest_member'] : '') , '
-	</p>';
-
-	// Show the news fader?  (assuming there are things to show...)
-	if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
-	{
-		echo '
-	<div class="tborder marginbottom">
-		<h3 id="newsfader" class="catbg">
-			<img id="newsupshrink" src="', $settings['images_url'], '/collapse.gif" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="display: none;" />
-			', $txt['news'], '
-		</h3>
-		<div class="windowbg2" id="smfNewsFader">
-			<div id="smfFadeScroller"><span>', $context['news_lines'][0], '</span></div>
-		</div>
-	</div>
-	<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/fader.js"></script>
-	<script type="text/javascript"><!-- // --><![CDATA[
-
-		// Create a news fader object.
-		var oNewsFader = new smf_NewsFader({
-			sSelf: \'oNewsFader\',
-			sFaderControlId: \'smfFadeScroller\',
-			aFaderItems: [
-				"',
-				implode('",
-				"', $context['fader_news_lines']), '"],
-			sItemTemplate: ', JavaScriptEscape('<strong>%1$s</strong>'), ',
-			iFadeDelay: ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], '
-		});
-
-		// Create the news fader toggle.
-		var smfNewsFadeToggle = new smc_Toggle({
-			bToggleEnabled: true,
-			bCurrentlyCollapsed: ', empty($options['collapse_news_fader']) ? 'false' : 'true', ',
-			aSwappableContainers: [
-				\'smfNewsFader\'
-			],
-			aSwapImages: [
-				{
-					sId: \'newsupshrink\',
-					srcExpanded: smf_images_url + \'/collapse.gif\',
-					altExpanded: ', JavaScriptEscape($txt['upshrink_description']), ',
-					srcCollapsed: smf_images_url + \'/expand.gif\',
-					altCollapsed: ', JavaScriptEscape($txt['upshrink_description']), '
-				}
-			],
-			oThemeOptions: {
-				bUseThemeSettings: ', $context['user']['is_guest'] ? 'false' : 'true', ',
-				sOptionName: \'collapse_news_fader\',
-				sSessionVar: ', JavaScriptEscape($context['session_var']), ',
-				sSessionId: ', JavaScriptEscape($context['session_id']), '
-			},
-			oCookieOptions: {
-				bUseCookie: ', $context['user']['is_guest'] ? 'true' : 'false', ',
-				sCookieName: \'newsupshrink\'
-			}
-		});
-	// ]]></script>';
-	}
-
-	/* Each category in categories is made up of:
-	id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
-	new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
-	and boards. (see below.) */
-	foreach ($context['categories'] as $category)
-	{
-		// If theres no parent boards we can see, avoid showing an empty category (unless its collapsed)
-		if (empty($category['boards']) && !$category['is_collapsed'])
-			continue;
-
-		echo '
-	<div class="categoryframe tborder clearfix">
-		<h3 class="catbg', $category['new'] ? '2' : '', '">';
-
-		if (!$context['user']['is_guest'] && !empty($category['show_unread']))
-			echo '
-			<a class="floatright" href="', $scripturl, '?action=unread;c=', $category['id'], '">', $txt['view_unread_category'], '</a>';
-
-		// If this category even can collapse, show a link to collapse it.
-		if ($category['can_collapse'])
-			echo '
-			<a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>&nbsp;';
-
-		echo $category['link'];
-
-		echo '
-		</h3>';
-
-		// Assuming the category hasn't been collapsed...
-		if (!$category['is_collapsed'])
-		{
-			echo '
-		<table cellspacing="1" class="bordercolor boardsframe">';
-
-			/* Each board in each category's boards has:
-			new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
-			children (see below.), link_children (easier to use.), children_new (are they new?),
-			topics (# of), posts (# of), link, href, and last_post. (see below.) */
-			foreach ($category['boards'] as $board)
-			{
-				echo '
-			<tr>
-				<td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg icon">
-					<a href="', ($board['is_redirect'] || $context['user']['is_guest'] ? $board['href'] : $scripturl . '?action=unread;board=' . $board['id'] . '.0;children'), '">';
-
-				// If the board or children is new, show an indicator.
-				if ($board['new'] || $board['children_new'])
-					echo '
-						<img src="', $settings['images_url'], '/on', $board['new'] ? '' : '2', '.gif" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" border="0" />';
-				// Is it a redirection board?
-				elseif ($board['is_redirect'])
-					echo '
-						<img src="', $settings['images_url'], '/redirect.gif" alt="*" title="*" border="0" />';
-				// No new posts at all! The agony!!
-				else
-					echo '
-						<img src="', $settings['images_url'], '/off.gif" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';
-
-				echo '
-					</a>
-				</td>
-				<td class="windowbg2 info">
-					<h4><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a>';
-
-				// Has it outstanding posts for approval?
-				if ($board['can_approve_posts'] && ($board['unapproved_posts'] || $board['unapproved_topics']))
-					echo '
-						<a href="', $scripturl, '?action=moderate;area=postmod;sa=', ($board['unapproved_topics'] > 0 ? 'topics' : 'posts'), ';brd=', $board['id'], ';', $context['session_var'], '=', $context['session_id'], '" title="', sprintf($txt['unapproved_posts'], $board['unapproved_topics'], $board['unapproved_posts']), '" class="moderation_link">(!)</a>';
-
-				echo '
-					</h4>
-					<p>', $board['description'] , '</p>';
-
-				// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
-				if (!empty($board['moderators']))
-					echo '
-					<p class="moderators">', count($board['moderators']) == 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</p>';
-
-				// Show some basic information about the number of posts, etc.
-					echo '
-				</td>
-				<td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg stats smalltext">
-					', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
-					', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '
-				</td>
-				<td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg2 smalltext lastpost">';
-
-				/* The board's and children's 'last_post's have:
-				time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
-				link, href, subject, start (where they should go for the first unread post.),
-				and member. (which has id, name, link, href, username in it.) */
-				if (!empty($board['last_post']['id']))
-					echo '
-					<strong>', $txt['last_post'], '</strong>  ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
-					', $txt['in'], ' ', $board['last_post']['link'], '<br />
-					', $txt['on'], ' ', $board['last_post']['time'];
-				echo '
-				</td>
-			</tr>';
-
-				// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
-				if (!empty($board['children']))
-				{
-					// Sort the links into an array with new boards bold so it can be imploded.
-					$children = array();
-					/* Each child in each board's children has:
-							id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
-					foreach ($board['children'] as $child)
-					{
-						if (!$child['is_redirect'])
-							$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>';
-						else
-							$child['link'] = '<a href="' . $child['href'] . '" title="' . comma_format($child['posts']) . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';
-
-						// Has it posts awaiting approval?
-						if ($child['can_approve_posts'] && ($child['unapproved_posts'] || $child['unapproved_topics']))
-							$child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] > 0 ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';
-
-						$children[] = $child['new'] ? '<strong>' . $child['link'] . '</strong>' : $child['link'];
-					}
-					echo '
-			<tr>
-				<td class="windowbg3 smalltext largepadding"><strong>', $txt['parent_boards'], '</strong>: ', implode(', ', $children), '</td>
-			</tr>';
-				}
-			}
-			echo '
-		</table>';
-		}
-		echo '
-	</div>';
-	}
-
-	if ($context['user']['is_logged'])
-	{
-		echo '
-	<div id="modbuttons_bottom" class="modbuttons clearfix">
-		<div id="posticons" class="clearfix marginbottom">
-			<div class="smalltext floatleft">
-				<img src="', $settings['images_url'], '/new_some.gif" alt="" align="middle" /> ', $txt['new_posts'], '
-				<img src="', $settings['images_url'], '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> ', $txt['old_posts'], '
-			</div>';
-
-			// Mark read button.
-			$mark_read_button = array(
-				'markread' => array('text' => 'mark_as_read', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=all;' . $context['session_var'] . '=' . $context['session_id']),
-			);
-
-			// Show the mark all as read button?
-			if ($settings['show_mark_read'] && !empty($context['categories']))
-				template_button_strip($mark_read_button, 'top');
-
-			echo '
-			</div>
-	</div>';
-	}
-
-	template_info_center();
-}
-
-function template_info_center()
-{
-	global $context, $settings, $options, $txt, $scripturl, $modSettings;
-
-	// Here's where the "Info Center" starts...
-	echo '
-	<div class="tborder clearfix" id="infocenterframe">
-		<h3 class="catbg">
-			<img id="upshrink_ic" src="', $settings['images_url'], '/collapse.gif" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />
-			', sprintf($txt['info_center_title'], $context['forum_name_html_safe']), '
-		</h3>
-		<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>';
-
-	// This is the "Recent Posts" bar.
-	if (!empty($settings['number_recent_posts']) && (!empty($context['latest_posts']) || !empty($context['latest_post'])))
-	{
-		echo '
-			<div class="infocenter_section">
-				<h4 class="titlebg">', $txt['recent_posts'], '</h4>
-				<div class="windowbg">
-					<p class="section">
-						<a href="', $scripturl, '?action=recent"><img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" /></a>
-					</p>
-					<div class="windowbg2 sectionbody hslice clearfix" id="recent_posts_content"><div class="entry-title" style="display: none;">', $context['forum_name_html_safe'], ' - ', $txt['recent_posts'], '</div><div class="entry-content" style="display: none;"><a rel="feedurl" href="', $scripturl, '?action=.xml;type=webslice">', $txt['subscribe_webslice'], '</a></div>';
-
-		// Only show one post.
-		if ($settings['number_recent_posts'] == 1)
-		{
-			// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
-			echo '
-						<strong><a href="', $scripturl, '?action=recent">', $txt['recent_posts'], '</a></strong>
-						<p id="infocenter_onepost" class="smalltext">
-								', $txt['recent_view'], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')<br />
-						</p>';
-		}
-		// Show lots of posts.
-		elseif (!empty($context['latest_posts']))
-		{
-			echo '
-						<dl id="infocenter_recentposts" class="middletext">';
-
-			/* Each post in latest_posts has:
-					board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
-					subject, short_subject (shortened with...), time, link, and href. */
-			foreach ($context['latest_posts'] as $post)
-				echo '
-							<dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt>
-							<dd>', $post['time'], '</dd>';
-			echo '
-						</dl>';
-		}
-		echo '
-					</div>
-				</div>
-			</div>';
-	}
-
-	// Show information about events, birthdays, and holidays on the calendar.
-	if ($context['show_calendar'])
-	{
-		echo '
-			<div class="infocenter_section">
-				<h4 class="titlebg">', $context['calendar_only_today'] ? $txt['calendar_today'] : $txt['calendar_upcoming'], '</h4>
-				<div class="windowbg">
-					<p class="section">
-						<a href="', $scripturl, '?action=calendar' . '"><img src="', $settings['images_url'], '/icons/calendar.gif', '" alt="', $context['calendar_only_today'] ? $txt['calendar_today'] : $txt['calendar_upcoming'], '" /></a>
-					</p>
-					<div class="sectionbody windowbg2 smalltext">';
-
-		// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
-		if (!empty($context['calendar_holidays']))
-				echo '
-							<span class="holiday">', $txt['calendar_prompt'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';
-
-		// People's birthdays. Like mine. And yours, I guess. Kidding.
-		if (!empty($context['calendar_birthdays']))
-		{
-				echo '
-							<span class="birthday">', $context['calendar_only_today'] ? $txt['birthdays'] : $txt['birthdays_upcoming'], '</span> ';
-		/* Each member in calendar_birthdays has:
-				id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
-		foreach ($context['calendar_birthdays'] as $member)
-				echo '
-							<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<strong>' : '', $member['name'], $member['is_today'] ? '</strong>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
-		}
-		// Events like community get-togethers.
-		if (!empty($context['calendar_events']))
-		{
-			echo '
-							<span class="event">', $context['calendar_only_today'] ? $txt['events'] : $txt['events_upcoming'], '</span> ';
-			/* Each event in calendar_events should have:
-					title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
-			foreach ($context['calendar_events'] as $event)
-				echo '
-							', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #ff0000;">*</a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ? '<strong>' . $event['title'] . '</strong>' : $event['title'], $event['href'] == '' ? '' : '</a>', $event['is_last'] ? '<br />' : ', ';
-
-			// Show a little help text to help them along ;).
-			if ($context['calendar_can_edit'])
-				echo '
-							(<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
-		}
-		echo '
-					</div>
-				</div>
-			</div>';
-	}
-
-	// Show statistical style information...
-	if ($settings['show_stats_index'])
-	{
-		echo '
-			<div class="infocenter_section">
-				<h4 class="titlebg">', $txt['forum_stats'], '</h4>
-				<div class="windowbg">
-					<p class="section">
-						<a href="', $scripturl, '?action=stats"><img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt['forum_stats'], '" /></a>
-					</p>
-					<div class="windowbg2 sectionbody middletext">
-						', $context['common_stats']['total_posts'], ' ', $txt['posts_made'], ' ', $txt['in'], ' ', $context['common_stats']['total_topics'], ' ', $txt['topics'], ' ', $txt['by'], ' ', $context['common_stats']['total_members'], ' ', $txt['members'], '. ', !empty($settings['show_latest_member']) ? $txt['latest_member'] . ': <strong> ' . $context['common_stats']['latest_member']['link'] . '</strong>' : '', '<br />
-						', (!empty($context['latest_post']) ? $txt['latest_post'] . ': <strong>&quot;' . $context['latest_post']['link'] . '&quot;</strong>  ( ' . $context['latest_post']['time'] . ' )<br />' : ''), '
-						<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>', $context['show_stats'] ? '<br />
-						<a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a>' : '', '
-					</div>
-				</div>
-			</div>';
-	}
-
-	// "Users online" - in order of activity.
-	echo '
-			<div class="infocenter_section">
-				<h4 class="titlebg">', $txt['online_users'], '</h4>
-				<div class="windowbg">
-					<p class="section">
-						', $context['show_who'] ? '<a href="' . $scripturl . '?action=who' . '">' : '', '<img src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $context['show_who'] ? '</a>' : '', '
-					</p>
-					<div class="windowbg2 sectionbody">
-						', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($context['num_guests']), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
-
-	// Handle hidden users and buddies.
-	$bracketList = array();
-	if ($context['show_buddies'])
-		$bracketList[] = comma_format($context['num_buddies']) . ' ' . ($context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies']);
-	if (!empty($context['num_spiders']))
-		$bracketList[] = comma_format($context['num_spiders']) . ' ' . ($context['num_spiders'] == 1 ? $txt['spider'] : $txt['spiders']);
-	if (!empty($context['num_users_hidden']))
-		$bracketList[] = comma_format($context['num_users_hidden']) . ' ' . $txt['hidden'];
-
-	if (!empty($bracketList))
-		echo ' (' . implode(', ', $bracketList) . ')';
-
-	echo $context['show_who'] ? '</a>' : '', '
-						<div class="smalltext">';
-
-	// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
-	if (!empty($context['users_online']))
-	{
-		echo '
-							', sprintf($txt['users_active'], $modSettings['lastActive']), ':<br />', implode(', ', $context['list_users_online']);
-
-		// Showing membergroups?
-		if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
-			echo '
-							<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';
-	}
-
-	echo '
-						</div>
-						<hr class="hrcolor" />
-						<div class="smalltext">
-							', $txt['most_online_today'], ': <strong>', comma_format($modSettings['mostOnlineToday']), '</strong>.
-							', $txt['most_online_ever'], ': ', comma_format($modSettings['mostOnline']), ' (', timeformat($modSettings['mostDate']), ')
-						</div>
-					</div>
-				</div>
-			</div>';
-
-	// If they are logged in, but statistical information is off... show a personal message bar.
-	if ($context['user']['is_logged'] && !$settings['show_stats_index'])
-	{
-		echo '
-			<div class="infocenter_section">
-				<h4 class="titlebg">', $txt['personal_message'], '</h4>
-				<div class="windowbg">
-					<p class="section">
-						', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt['personal_message'], '" />', $context['allow_pm'] ? '</a>' : '', '
-					</p>
-					<div class="windowbg2 sectionbody">
-						<strong><a href="', $scripturl, '?action=pm">', $txt['personal_message'], '</a></strong>
-						<div class="smalltext">
-							', $txt['you_have'], ' ', comma_format($context['user']['messages']), ' ', $context['user']['messages'] == 1 ? $txt['message_lowercase'] : $txt['msg_alert_messages'], '.... ', $txt['click'], ' <a href="', $scripturl, '?action=pm">', $txt['here'], '</a> ', $txt['to_view'], '
-						</div>
-					</div>
-				</div>
-			</div>';
-	}
-
-	// Show the login bar. (it's only true if they are logged out anyway.)
-	if ($context['show_login_bar'])
-	{
-		echo '
-			<div class="infocenter_section">
-				<h4 class="titlebg">', $txt['login'], ' <a href="', $scripturl, '?action=reminder" class="smalltext">', $txt['forgot_your_password'], '</a></h4>
-				<div class="windowbg">
-					<p class="section">
-						<a href="', $scripturl, '?action=login"><img src="', $settings['images_url'], '/icons/login.gif', '" alt="', $txt['login'], '" /></a>
-					</p>
-					<div class="windowbg2 sectionbody">
-						<form id="infocenter_login" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '">
-							<ul class="reset horizlist clearfix">
-								<li>
-									<label for="user">', $txt['username'], ':<br />
-									<input type="text" name="user" id="user" size="15" class="input_text" /></label>
-								</li>
-								<li>
-									<label for="passwrd">', $txt['password'], ':<br />
-									<input type="password" name="passwrd" id="passwrd" size="15" class="input_password" /></label>
-								</li>
-								<li>
-									<label for="cookielength">', $txt['mins_logged_in'], ':<br />
-									<input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" class="input_text" /></label>
-								</li>
-								<li>
-									<label for="cookieneverexp">', $txt['always_logged_in'], ':<br />
-									<input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="input_check" /></label>
-								</li>
-								<li>
-									<input type="submit" value="', $txt['login'], '" class="button_submit" />
-								</li>
-							</ul>
-						</form>
-					</div>
-				</div>
-			</div>';
-	}
-
-	// Info center collapse object.
-	echo '
-			<script type="text/javascript"><!-- // --><![CDATA[
-				var oInfoCenterToggle = new smc_Toggle({
-					bToggleEnabled: true,
-					bCurrentlyCollapsed: ', empty($options['collapse_header_ic']) ? 'false' : 'true', ',
-					aSwappableContainers: [
-						\'upshrinkHeaderIC\'
-					],
-					aSwapImages: [
-						{
-							sId: \'upshrink_ic\',
-							srcExpanded: smf_images_url + \'/collapse.gif\',
-							altExpanded: ', JavaScriptEscape($txt['upshrink_description']), ',
-							srcCollapsed: smf_images_url + \'/expand.gif\',
-							altCollapsed: ', JavaScriptEscape($txt['upshrink_description']), '
-						}
-					],
-					oThemeOptions: {
-						bUseThemeSettings: ', $context['user']['is_guest'] ? 'false' : 'true', ',
-						sOptionName: \'collapse_header_ic\',
-						sSessionVar: ', JavaScriptEscape($context['session_var']), ',
-						sSessionId: ', JavaScriptEscape($context['session_id']), '
-					},
-					oCookieOptions: {
-						bUseCookie: ', $context['user']['is_guest'] ? 'true' : 'false', ',
-						sCookieName: \'upshrinkIC\'
-					}
-				});
-			// ]]></script>';
-
-	echo '
-		</div>
-	</div>';
-}
-
-?>

+ 0 - 843
Themes/core/Display.template.php

@@ -1,843 +0,0 @@
-<?php
-/**
- * Simple Machines Forum (SMF)
- *
- * @package SMF
- * @author Simple Machines
- * @copyright 2011 Simple Machines
- * @license http://www.simplemachines.org/about/smf/license.php BSD
- *
- * @version 2.1 Alpha 1
- */
-
-function template_main()
-{
-	global $context, $settings, $options, $txt, $scripturl, $modSettings;
-
-	// Let them know, if their report was a success!
-	if ($context['report_sent'])
-	{
-		echo '
-<div class="windowbg" id="profile_success">
-	', $txt['report_sent'], '
-</div>';
-	}
-
-	// Show the anchor for the top and for the first message. If the first message is new, say so.
-	echo '
-<a id="top"></a>
-<a id="msg', $context['first_message'], '"></a>', $context['first_new_message'] ? '<a id="new"></a>' : '';
-
-	// Is this topic also a poll?
-	if ($context['is_poll'])
-	{
-		echo '
-<div class="tborder marginbottom" id="poll">
-	<h3 class="titlebg">
-		<img src="', $settings['images_url'], '/topic/', $context['poll']['is_locked'] ? 'normal_poll_locked' : 'normal_poll', '.gif" alt="" align="bottom" /> ', $txt['poll'], '
-	</h3>
-	<h4 class="windowbg headerpadding" id="pollquestion">
-		', $context['poll']['question'], '
-	</h4>
-	<div class="windowbg clearfix" id="poll_options">';
-
-		// Are they not allowed to vote but allowed to view the options?
-		if ($context['poll']['show_results'] || !$context['allow_vote'])
-		{
-			echo '
-		<dl class="options">';
-
-			// Show each option with its corresponding percentage bar.
-			foreach ($context['poll']['options'] as $option)
-				echo '
-			<dt class="middletext', $option['voted_this'] ? ' voted' : '', '">', $option['option'], '</dt>
-			<dd class="middletext">', $context['allow_poll_view'] ? $option['bar'] . ' ' . $option['votes'] . ' (' . $option['percent'] . '%)' : '', '</dd>';
-
-			echo '
-		</dl>';
-
-		if ($context['allow_poll_view'])
-			echo '
-		<p><strong>', $txt['poll_total_voters'], ':</strong> ', $context['poll']['total_votes'], '</p>';
-
-		}
-		// They are allowed to vote! Go to it!
-		else
-		{
-			echo '
-		<form action="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], '" method="post" accept-charset="', $context['character_set'], '">';
-
-			// Show a warning if they are allowed more than one option.
-			if ($context['poll']['allowed_warning'])
-				echo '
-			<p class="smallpadding">', $context['poll']['allowed_warning'], '</p>';
-
-			echo '
-			<ul class="reset options">';
-
-			// Show each option with its button - a radio likely.
-			foreach ($context['poll']['options'] as $option)
-				echo '
-				<li class="middletext">', $option['vote_button'], ' <label for="', $option['id'], '">', $option['option'], '</label></li>';
-
-			echo '
-			</ul>
-
-			<div class="submitbutton', !empty($context['poll']['expire_time']) ? ' border' : '', '">
-				<input type="submit" value="', $txt['poll_vote'], '" class="button_submit" />
-				<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
-			</div>
-		</form>';
-		}
-
-		// Is the clock ticking?
-		if (!empty($context['poll']['expire_time']))
-			echo '
-		<p><strong>', ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ':</strong> ', $context['poll']['expire_time'], '</p>';
-
-		echo '
-	</div>
-</div>
-<div id="pollmoderation" class="clearfix">';
-
-		// Build the poll moderation button array.
-		$poll_buttons = array(
-			'vote' => array('test' => 'allow_return_vote', 'text' => 'poll_return_vote', 'image' => 'poll_options.gif', 'lang' => true, 'url' => $scripturl . '?topic=' . $context['current_topic'] . '.' . $context['start']),
-			'results' => array('test' => 'show_view_results_button', 'text' => 'poll_results', 'image' => 'poll_results.gif', 'lang' => true, 'url' => $scripturl . '?topic=' . $context['current_topic'] . '.' . $context['start'] . ';viewresults'),
-			'change_vote' => array('test' => 'allow_change_vote', 'text' => 'poll_change_vote', 'image' => 'poll_change_vote.gif', 'lang' => true, 'url' => $scripturl . '?action=vote;topic=' . $context['current_topic'] . '.' . $context['start'] . ';poll=' . $context['poll']['id'] . ';' . $context['session_var'] . '=' . $context['session_id']),
-			'lock' => array('test' => 'allow_lock_poll', 'text' => (!$context['poll']['is_locked'] ? 'poll_lock' : 'poll_unlock'), 'image' => 'poll_lock.gif', 'lang' => true, 'url' => $scripturl . '?action=lockvoting;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
-			'edit' => array('test' => 'allow_edit_poll', 'text' => 'poll_edit', 'image' => 'poll_edit.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;topic=' . $context['current_topic'] . '.' . $context['start']),
-			'remove_poll' => array('test' => 'can_remove_poll', 'text' => 'poll_remove', 'image' => 'admin_remove_poll.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');"', 'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
-		);
-
-		template_button_strip($poll_buttons);
-
-		echo '
-</div><br class="clear" />';
-	}
-
-	// Does this topic have some events linked to it?
-	if (!empty($context['linked_calendar_events']))
-	{
-		echo '
-<div class="linked_events">
-	<h3 class="titlebg headerpadding">', $txt['calendar_linked_events'], '</h3>
-	<div class="content windowbg">
-		<ul class="reset">';
-
-		foreach ($context['linked_calendar_events'] as $event)
-			echo '
-			<li>
-				', ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '" class="edit_event">*</a> ' : ''), '<strong>', $event['title'], '</strong>: ', $event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '
-			</li>';
-
-		echo '
-		</ul>
-	</div>
-</div>';
-	}
-
-	// Build the normal button array.
-	$normal_buttons = array(
-		'reply' => array('test' => 'can_reply', 'text' => 'reply', 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';last_msg=' . $context['topic_last_message']),
-		'add_poll' => array('test' => 'can_add_poll', 'text' => 'add_poll', 'image' => 'add_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start']),
-		'notify' => array('test' => 'can_mark_notify', 'text' => ($context['is_marked_notify'] ? 'unnotify' : 'notify'), 'image' => ($context['is_marked_notify'] ? 'un' : ''). 'notify.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');"', 'url' => $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
-		'mark_unread' => array('test' => 'can_mark_unread', 'text' => 'mark_unread', 'image' => 'markunread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
-		'send' => array('test' => 'can_send_topic', 'text' => 'send_topic', 'image' => 'sendtopic.gif', 'lang' => true, 'url' => $scripturl . '?action=emailuser;sa=sendtopic;topic=' . $context['current_topic'] . '.0'),
-		'print' => array('text' => 'print', 'image' => 'print.gif', 'lang' => true, 'custom' => 'rel="new_win nofollow"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),
-	);
-
-	// Allow adding new buttons easily.
-	call_integration_hook('integrate_display_buttons', array(&$normal_buttons));
-
-	// Show the page index... "Pages: [1]".
-	echo '
-<div class="clearfix margintop" id="postbuttons">
-	<div class="next">', $context['previous_next'], '</div>
-	<div class="margintop middletext floatleft">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#lastPost"><strong>' . $txt['go_down'] . '</strong></a>' : '', '</div>
-	<div class="nav floatright">', template_button_strip($normal_buttons, 'bottom'), '</div>
-</div>';
-
-	// Show the topic information - icon, subject, etc.
-	echo '
-<div id="forumposts" class="tborder">
-	<h3 class="catbg3">
-		<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />
-		<span>', $txt['author'], '</span>
-		<span id="top_subject">', $txt['topic'], ': ', $context['subject'], ' &nbsp;(', $txt['read'], ' ', $context['num_views'], ' ', $txt['times'], ')</span>
-	</h3>';
-
-	if (!empty($settings['display_who_viewing']))
-	{
-		echo '
-	<div id="whoisviewing" class="smalltext headerpadding windowbg2">';
-
-		// Show just numbers...?
-		if ($settings['display_who_viewing'] == 1)
-				echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt['members'];
-		// Or show the actual people viewing the topic?
-		else
-			echo empty($context['view_members_list']) ? '0 ' . $txt['members'] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
-
-		// Now show how many guests are here too.
-		echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '
-	</div>';
-	}
-
-	echo '
-	<form action="', $scripturl, '?action=quickmod2;topic=', $context['current_topic'], '.', $context['start'], '" method="post" accept-charset="', $context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;" onsubmit="return oQuickModify.bInEditMode ? oQuickModify.modifySave(\'' . $context['session_id'] . '\', \'' . $context['session_var'] . '\') : false">';
-
-	// These are some cache image buttons we may want.
-	$reply_button = create_button('quote.gif', 'reply', 'quote', 'align="middle"');
-	$modify_button = create_button('modify.gif', 'modify', 'modify', 'align="middle"');
-	$remove_button = create_button('delete.gif', 'remove', 'remove', 'align="middle"');
-	$split_button = create_button('split.gif', 'split', 'split', 'align="middle"');
-	$approve_button = create_button('approve.gif', 'approve', 'approve', 'align="middle"');
-	$restore_message_button = create_button('restore_topic.gif', 'restore_message', 'restore_message', 'align="middle"');
-
-	$ignoredMsgs = array();
-	$removableMessageIDs = array();
-
-	// Get all the messages...
-	while ($message = $context['get_message']())
-	{
-		$is_first_post = !isset($is_first_post) ? true : false;
-		$ignoring = false;
-		if ($message['can_remove'])
-			$removableMessageIDs[] = $message['id'];
-
-		echo '
-		<div class="bordercolor">';
-
-		// Are we ignoring this message?
-		if (!empty($message['is_ignored']))
-		{
-			$ignoring = true;
-			$ignoredMsgs[] = $message['id'];
-		}
-
-		// Show the message anchor and a "new" anchor if this message is new.
-		if ($message['id'] != $context['first_message'])
-			echo '
-			<a id="msg', $message['id'], '"></a>', $message['first_new'] ? '<a id="new"></a>' : '';
-
-		echo '
-			<div class="clearfix ', !$is_first_post ? 'topborder ' : '', $message['approved'] ? ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2') : 'approvebg', ' largepadding">';
-
-		// Show information about the poster of this message.
-		echo '
-				<div class="floatleft poster">
-					<h4>', $message['member']['link'], '</h4>
-					<ul class="reset smalltext" id="msg_', $message['id'], '_extra_info">';
-
-		// Show the member's custom title, if they have one.
-		if (isset($message['member']['title']) && $message['member']['title'] != '')
-			echo '
-						<li>', $message['member']['title'], '</li>';
-
-		// Show the member's primary group (like 'Administrator') if they have one.
-		if (isset($message['member']['group']) && $message['member']['group'] != '')
-			echo '
-						<li>', $message['member']['group'], '</li>';
-
-		// Don't show these things for guests.
-		if (!$message['member']['is_guest'])
-		{
-			// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
-			if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
-				echo '
-						<li>', $message['member']['post_group'], '</li>';
-			echo '
-						<li>', $message['member']['group_stars'], '</li>';
-
-			// Is karma display enabled?  Total or +/-?
-			if ($modSettings['karmaMode'] == '1')
-				echo '
-						<li class="margintop">', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '</li>';
-			elseif ($modSettings['karmaMode'] == '2')
-				echo '
-						<li class="margintop">', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '</li>';
-
-			// Is this user allowed to modify this member's karma?
-			if ($message['member']['karma']['allow'])
-				echo '
-						<li>
-							<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
-							<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a>
-						</li>';
-
-			// Show online and offline buttons?
-			if (!empty($modSettings['onlineEnable']))
-				echo '
-						<li>', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '</li>';
-
-			// Show the member's gender icon?
-			if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
-				echo '
-						<li>', $txt['gender'], ': ', $message['member']['gender']['image'], '</li>';
-
-			// Show how many posts they have made.
-			if (!isset($context['disabled_fields']['posts']))
-				echo '
-						<li>', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';
-
-			// Any custom fields for standard placement?
-			if (!empty($message['member']['custom_fields']))
-			{
-				foreach ($message['member']['custom_fields'] as $custom)
-					if (empty($custom['placement']) && !empty($custom['value']))
-						echo '
-						<li>', $custom['title'], ': ', $custom['value'], '</li>';
-			}
-
-			// Show avatars, images, etc.?
-			if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
-				echo '
-						<li class="margintop" style="overflow: auto;">', $message['member']['avatar']['image'], '</li>';
-
-			// Show their personal text?
-			if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
-				echo '
-						<li class="margintop">', $message['member']['blurb'], '</li>';
-
-			// Any custom fields to show as icons?
-			if (!empty($message['member']['custom_fields']))
-			{
-				$shown = false;
-				foreach ($message['member']['custom_fields'] as $custom)
-				{
-					if ($custom['placement'] != 1 || empty($custom['value']))
-						continue;
-					if (empty($shown))
-					{
-						$shown = true;
-						echo '
-						<li class="margintop">
-							<ul class="reset nolist">';
-					}
-					echo '
-								<li>', $custom['value'], '</li>';
-				}
-				if ($shown)
-					echo '
-							</ul>
-						</li>';
-			}
-
-			// This shows the popular messaging icons.
-			if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
-				echo '
-						<li class="margintop">
-							<ul class="reset nolist">
-								', !isset($context['disabled_fields']['icq']) && !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
-								', !isset($context['disabled_fields']['msn']) && !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
-								', !isset($context['disabled_fields']['aim']) && !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
-								', !isset($context['disabled_fields']['yim']) && !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
-							</ul>
-						</li>';
-
-			// Show the profile, website, email address, and personal message buttons.
-			if ($settings['show_profile_buttons'])
-			{
-				echo '
-						<li class="margintop">
-							<ul class="reset nolist">';
-				// Don't show the profile button if you're not allowed to view the profile.
-				if ($message['member']['can_view_profile'])
-					echo '
-								<li><a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt['view_profile'] . '" title="' . $txt['view_profile'] . '" border="0" />' : $txt['view_profile']), '</a></li>';
-
-				// Don't show an icon if they haven't specified a website.
-				if ($message['member']['website']['url'] != '' && !isset($context['disabled_fields']['website']))
-					echo '
-								<li><a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank" class="new_win">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $message['member']['website']['title'] . '" border="0" />' : $txt['www']), '</a></li>';
-
-				// Don't show the email address if they want it hidden.
-				if (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
-					echo '
-								<li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';
-
-				// Since we know this person isn't a guest, you *can* message them.
-				if ($context['can_send_pm'])
-					echo '
-								<li><a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" border="0" />' : ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';
-
-				echo '
-							</ul>
-						</li>';
-			}
-
-			// Are we showing the warning status?
-			if ($message['member']['can_see_warning'])
-				echo '
-						<li>', $context['can_issue_warning'] ? '<a href="' . $scripturl . '?action=profile;area=issuewarning;u=' . $message['member']['id'] . '">' : '', '<img src="', $settings['images_url'], '/warning_', $message['member']['warning_status'], '.gif" alt="', $txt['user_warn_' . $message['member']['warning_status']], '" />', $context['can_issue_warning'] ? '</a>' : '', '<span class="warn_', $message['member']['warning_status'], '">', $txt['warn_' . $message['member']['warning_status']], '</span></li>';
-		}
-		// Otherwise, show the guest's email.
-		elseif (!empty($message['member']['email']) && in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
-			echo '
-						<li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" border="0" />' : $txt['email']), '</a></li>';
-
-		// Done with the information about the poster... on to the post itself.
-		echo '
-					</ul>
-				</div>
-				<div class="postarea">
-					<div class="flow_hidden">
-						<div class="keyinfo">
-							<div class="messageicon"><img src="', $message['icon_url'] . '" alt="" border="0"', $message['can_modify'] ? ' id="msg_icon_' . $message['id'] . '"' : '', ' /></div>
-							<h5 id="subject_', $message['id'], '">
-								<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
-							</h5>
-							<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
-							<div id="msg_', $message['id'], '_quick_mod"></div>
-						</div>';
-
-		// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
-		if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
-			echo '
-						<ul class="reset smalltext postingbuttons">';
-
-		// Maybe we can approve it, maybe we should?
-		if ($message['can_approve'])
-			echo '
-							<li><a href="', $scripturl, '?action=moderate;area=postmod;sa=approve;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $approve_button, '</a></li>';
-
-		// Can they reply? Have they turned on quick reply?
-		if ($context['can_quote'] && !empty($options['display_quick_reply']))
-			echo '
-							<li><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';last_msg=', $context['topic_last_message'], '" onclick="return oQuickReply.quote(', $message['id'], ');">', $reply_button, '</a></li>';
-
-		// So... quick reply is off, but they *can* reply?
-		elseif ($context['can_quote'])
-			echo '
-							<li><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';last_msg=', $context['topic_last_message'], '">', $reply_button, '</a></li>';
-
-		// Can the user modify the contents of this post?
-		if ($message['can_modify'])
-			echo '
-							<li><a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], '">', $modify_button, '</a></li>';
-
-		// How about... even... remove it entirely?!
-		if ($message['can_remove'])
-			echo '
-							<li><a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['remove_message'], '?\');">', $remove_button, '</a></li>';
-
-		// What about splitting it off the rest of the topic?
-		if ($context['can_split'] && !empty($context['real_num_replies']))
-			echo '
-							<li><a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $split_button, '</a></li>';
-
-		// Can we restore topics?
-		if ($context['can_restore_msg'])
-			echo '
-							<li><a href="', $scripturl, '?action=restoretopic;msgs=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $restore_message_button, '</a></li>';
-
-		// Show a checkbox for quick moderation?
-		if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $message['can_remove'])
-			echo '
-							<li style="display: none;" id="in_topic_mod_check_', $message['id'], '"></li>';
-
-		if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
-			echo '
-						</ul>';
-
-		echo '
-					</div>';
-
-		// Ignoring this user? Hide the post.
-		if ($ignoring)
-			echo '
-					<div class="ignored" id="msg_', $message['id'], '_ignored_prompt">
-						', $txt['ignoring_user'], '
-						<a href="#" id="msg_', $message['id'], '_ignored_link" style="display: none;">', $txt['show_ignore_user_post'], '</a>
-					</div>';
-
-		// Show the post itself, finally!
-		echo '
-					<div class="post">
-						<hr class="hrcolor" width="100%" size="1" />';
-
-		if (!$message['approved'] && $message['member']['id'] != 0 && $message['member']['id'] == $context['user']['id'])
-			echo '
-						<div class="approve_post">
-							', $txt['post_awaiting_approval'], '
-						</div>';
-		echo '
-						<div class="inner" id="msg_', $message['id'], '"', '>', $message['body'], '</div>
-					</div>', $message['can_modify'] ? '
-					<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="'. $txt['modify_msg']. '" title="' . $txt['modify_msg'] . '" class="modifybutton" id="modify_button_' . $message['id'] . '" style="cursor: ' . (isBrowser('is_ie5') || isBrowser('is_ie5.5') ? 'hand' : 'pointer') . '; display: none;" onclick="oQuickModify.modifyMsg(\'' . $message['id'] . '\')" />' : '';
-
-		// Assuming there are attachments...
-		if (!empty($message['attachment']))
-		{
-			// Now for the attachments, signature, ip logged, etc...
-			echo '
-					<div id="msg_', $message['id'], '_footer" class="attachments smalltext">';
-
-			$last_approved_state = 1;
-			foreach ($message['attachment'] as $attachment)
-			{
-				// Show a special box for unapproved attachments...
-				if ($attachment['is_approved'] != $last_approved_state)
-				{
-					$last_approved_state = 0;
-					echo '
-							<fieldset>
-								<legend>', $txt['attach_awaiting_approve'];
-
-					if ($context['can_approve'])
-						echo '&nbsp;[<a href="', $scripturl, '?action=attachapprove;sa=all;mid=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['approve_all'], '</a>]';
-
-					echo '</legend>';
-				}
-
-				if ($attachment['is_image'])
-				{
-					if ($attachment['thumbnail']['has_thumb'])
-						echo '
-								<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';
-					else
-						echo '
-								<img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /><br />';
-				}
-				echo '
-								<a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" />&nbsp;' . $attachment['name'] . '</a> ';
-
-				if (!$attachment['is_approved'] && $context['can_approve'])
-					echo '
-								[<a href="', $scripturl, '?action=attachapprove;sa=approve;aid=', $attachment['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['approve'], '</a>]&nbsp;|&nbsp;[<a href="', $scripturl, '?action=attachapprove;sa=reject;aid=', $attachment['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['delete'], '</a>] ';
-				echo '
-										(', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
-			}
-
-			// If we had unapproved attachments clean up.
-			if ($last_approved_state == 0)
-				echo '
-							</fieldset>';
-
-			echo '
-					</div>';
-		}
-
-		echo '
-				</div>
-				<div class="moderatorbar">
-					<div class="smalltext floatleft" id="modified_', $message['id'], '">';
-
-		// Show "« Last Edit: Time by Person »" if this post was edited.
-		if ($settings['show_modify'] && !empty($message['modified']['name']))
-			echo '
-						&#171; <em>', $txt['last_edit'], ': ', $message['modified']['time'], ' ', $txt['by'], ' ', $message['modified']['name'], '</em> &#187;';
-
-		echo '
-					</div>
-					<div class="smalltext largepadding floatright">';
-
-		// Maybe they want to report this post to the moderator(s)?
-		if ($context['can_report_moderator'])
-			echo '
-						<a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '">', $txt['report_to_mod'], '</a> &nbsp;';
-
-		// Can we issue a warning because of this post?  Remember, we can't give guests warnings.
-		if ($context['can_issue_warning'] && !$message['is_message_author'] && !$message['member']['is_guest'])
-			echo '
-						<a href="', $scripturl, '?action=profile;area=issuewarning;u=', $message['member']['id'], ';msg=', $message['id'], '"><img src="', $settings['images_url'], '/warn.gif" alt="', $txt['issue_warning_post'], '" title="', $txt['issue_warning_post'], '" border="0" /></a>';
-		echo '
-						<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />';
-
-		// 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=', !empty($message['member']['is_guest']) ? 'trackip' : 'profile;area=tracking;sa=ip;u=' . $message['member']['id'], ';searchip=', $message['member']['ip'], '">', $message['member']['ip'], '</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['logged'], '</a>';
-		// Otherwise, you see NOTHING!
-		else
-			echo '
-						', $txt['logged'];
-
-		echo '
-					</div>';
-
-		// Are there any custom profile fields for above the signature?
-		if (!empty($message['member']['custom_fields']))
-		{
-			$shown = false;
-			foreach ($message['member']['custom_fields'] as $custom)
-			{
-				if ($custom['placement'] != 2 || empty($custom['value']))
-					continue;
-				if (empty($shown))
-				{
-					$shown = true;
-					echo '
-						<div class="custom_fields_above_signature">
-							<ul class="reset nolist>';
-				}
-				echo '
-								<li>', $custom['value'], '</li>';
-			}
-			if ($shown)
-				echo '
-							</ul>
-						</div>';
-		}
-
-		// Show the member's signature?
-		if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled'])
-			echo '
-					<div class="signature" id="msg_', $message['id'], '_signature">', $message['member']['signature'], '</div>';
-
-		echo '
-				</div>
-			</div>
-		</div>';
-	}
-
-	echo '
-	</form>';
-	echo '
-</div>
-<a id="lastPost"></a>';
-
-	echo '
-<div class="clearfix marginbottom" id="postbuttons_lower">
-	<div class="nav floatright">', template_button_strip($normal_buttons, 'top'), '</div>
-	<div class="middletext floatleft">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#top"><strong>' . $txt['go_up'] . '</strong></a>' : '', '</div>
-	<div class="clear">', $context['previous_next'], '</div>
-</div>';
-
-	// Show the lower breadcrumbs.
-	theme_linktree();
-
-	$mod_buttons = array(
-		'move' => array('test' => 'can_move', 'text' => 'move_topic', 'image' => 'admin_move.gif', 'lang' => true, 'url' => $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '.0'),
-		'delete' => array('test' => 'can_delete', 'text' => 'remove_topic', 'image' => 'admin_rem.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['are_sure_remove_topic'] . '\');"', 'url' => $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;' . $context['session_var'] . '=' . $context['session_id']),
-		'lock' => array('test' => 'can_lock', 'text' => empty($context['is_locked']) ? 'set_lock' : 'set_unlock', 'image' => 'admin_lock.gif', 'lang' => true, 'url' => $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
-		'sticky' => array('test' => 'can_sticky', 'text' => empty($context['is_sticky']) ? 'set_sticky' : 'set_nonsticky', 'image' => 'admin_sticky.gif', 'lang' => true, 'url' => $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
-		'merge' => array('test' => 'can_merge', 'text' => 'merge', 'image' => 'merge.gif', 'lang' => true, 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']),
-		'calendar' => array('test' => 'calendar_post', 'text' => 'calendar_link', 'image' => 'linktocal.gif', 'lang' => true, 'url' => $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0'),
-	);
-
-	// Restore topic. eh?  No monkey business.
-	if ($context['can_restore_topic'])
-		$mod_buttons[] = array('text' => 'restore_topic', 'image' => '', 'lang' => true, 'url' => $scripturl . '?action=restoretopic;topics=' . $context['current_topic'] . ';' . $context['session_var'] . '=' . $context['session_id']);
-
-	// Allow adding new mod buttons easily.
-	call_integration_hook('integrate_mod_buttons', array(&$mod_buttons));
-
-	echo '
-<div id="moderationbuttons" class="clearfix">', template_button_strip($mod_buttons, 'bottom', array('id' => 'moderationbuttons_strip')), '</div>';
-
-	// Show the jumpto box, or actually...let Javascript do it.
-	echo '
-<div class="tborder">
-	<div class="titlebg2" style="padding: 4px;" align="', !$context['right_to_left'] ? 'right' : 'left', '" id="display_jump_to">&nbsp;</div>
-</div><br />';
-
-	if ($context['can_reply'] && !empty($options['display_quick_reply']))
-	{
-		echo '
-<a id="quickreply"></a>
-<div class="tborder" id="quickreplybox">';
-
-		echo '
-	<h3 class="catbg">
-		<a href="javascript:oQuickReply.swap();">
-			<img src="', $settings['images_url'], '/', $options['display_quick_reply'] == 2 ? 'collapse' : 'expand', '.gif" alt="+" id="quickReplyExpand" />
-		</a>
-		<a href="javascript:oQuickReply.swap();">', $txt['quick_reply'], '</a>
-	</h3>
-	<div class="windowbg" id="quickReplyOptions"', $options['display_quick_reply'] == 2 ? '' : ' style="display: none"', '>
-		<div class="floatleft" id="quickReplyWarning">
-			', $txt['quick_reply_desc'], $context['is_locked'] ? '<p><strong>' . $txt['quick_reply_warning'] . '</strong></p>' : '', $context['oldTopicError'] ? '<p><strong>' . sprintf($txt['error_old_topic'], $modSettings['oldTopicDays']) . '</strong></p>' : '', '
-		</div>
-		<div id="quickReplyContent">', $context['can_reply_approved'] ? '' : '<em>' . $txt['wait_for_approval'] . '</em>', '
-			', !$context['can_reply_approved'] && $context['require_verification'] ? '<br />' : '', '
-			<form action="', $scripturl, '?action=post2', empty($context['current_board']) ? '' : ';board=' . $context['current_board'], '" method="post" accept-charset="', $context['character_set'], '" name="postmodify" id="postmodify" onsubmit="submitonce(this);smc_saveEntities(\'postmodify\', [\'subject\', \'message\', \'guestname\', \'evtitle\', \'question\']);" style="margin: 0;">
-				<input type="hidden" name="topic" value="', $context['current_topic'], '" />
-				<input type="hidden" name="subject" value="', $context['response_prefix'], $context['subject'], '" />
-				<input type="hidden" name="icon" value="xx" />
-				<input type="hidden" name="from_qr" value="1" />
-				<input type="hidden" name="notify" value="', $context['is_marked_notify'] || !empty($options['auto_notify']) ? '1' : '0', '" />
-				<input type="hidden" name="not_approved" value="', !$context['can_reply_approved'], '" />
-				<input type="hidden" name="goback" value="', empty($options['return_to_post']) ? '0' : '1', '" />
-				<input type="hidden" name="last_msg" value="', $context['topic_last_message'], '" />';
-
-		// Guests just need more.
-		if ($context['user']['is_guest'])
-			echo '
-				<strong>', $txt['name'], ':</strong> <input type="text" name="guestname" value="', $context['name'], '" size="25" class="input_text" tabindex="', $context['tabindex']++, '" />
-				<strong>', $txt['email'], ':</strong> <input type="text" name="email" value="', $context['email'], '" size="25" class="input_text" tabindex="', $context['tabindex']++, '" /><br />';
-
-		// Is visual verification enabled?
-		if ($context['require_verification'])
-			echo '
-				<strong>', $txt['verification'], ':</strong>', template_control_verification($context['visual_verification_id'], 'quick_reply'), '<br />';
-
-		echo '
-				<textarea cols="600" rows="7" name="message" tabindex="', $context['tabindex']++, '"></textarea><br />
-				<input type="submit" name="post" value="', $txt['post'], '" onclick="return submitThisOnce(this);" accesskey="s" tabindex="', $context['tabindex']++, '" class="button_submit" />
-				<input type="submit" name="preview" value="', $txt['preview'], '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="', $context['tabindex']++, '" class="button_submit" />';
-		if ($context['show_spellchecking'])
-			echo '
-				<input type="button" value="', $txt['spell_check'], '" onclick="spellCheck(\'postmodify\', \'message\');" tabindex="', $context['tabindex']++, '" class="button_submit" />';
-		echo '
-				<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
-				<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />
-			</form>
-		</div>
-		<div class="clear"></div>
-	</div>
-</div>';
-	}
-
-	if ($context['show_spellchecking'])
-		echo '
-<form action="', $scripturl, '?action=spellcheck" method="post" accept-charset="', $context['character_set'], '" name="spell_form" id="spell_form" target="spellWindow"><input type="hidden" name="spellstring" value="" /></form>
-<script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/spellcheck.js"></script>';
-
-	echo '
-<script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/topic.js"></script>
-<script type="text/javascript"><!-- // --><![CDATA[';
-
-	if (!empty($options['display_quick_reply']))
-		echo '
-	var oQuickReply = new QuickReply({
-		bDefaultCollapsed: ', !empty($options['display_quick_reply']) && $options['display_quick_reply'] == 2 ? 'false' : 'true', ',
-		iTopicId: ', $context['current_topic'], ',
-		iStart: ', $context['start'], ',
-		sScriptUrl: smf_scripturl,
-		sImagesUrl: "', $settings['images_url'], '",
-		sContainerId: "quickReplyOptions",
-		sImageId: "quickReplyExpand",
-		sImageCollapsed: "collapse.gif",
-		sImageExpanded: "expand.gif",
-		sJumpAnchor: "quickreply"
-	});';
-
-	if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $context['can_remove_post'])
-		echo '
-	var oInTopicModeration = new InTopicModeration({
-		sSelf: \'oInTopicModeration\',
-		sCheckboxContainerMask: \'in_topic_mod_check_\',
-		aMessageIds: [\'', implode('\', \'', $removableMessageIDs), '\'],
-		sSessionId: \'', $context['session_id'], '\',
-		sSessionVar: \'', $context['session_var'], '\',
-		sButtonStrip: \'moderationbuttons\',
-		sButtonStripDisplay: \'moderationbuttons_strip\',
-		bUseImageButton: false,
-		bCanRemove: ', $context['can_remove_post'] ? 'true' : 'false', ',
-		sRemoveButtonLabel: \'', $txt['quickmod_delete_selected'], '\',
-		sRemoveButtonImage: \'delete_selected.gif\',
-		sRemoveButtonConfirm: \'', $txt['quickmod_confirm'], '\',
-		bCanRestore: ', $context['can_restore_msg'] ? 'true' : 'false', ',
-		sRestoreButtonLabel: \'', $txt['quick_mod_restore'], '\',
-		sRestoreButtonImage: \'restore_selected.gif\',
-		sRestoreButtonConfirm: \'', $txt['quickmod_confirm'], '\',
-		sFormId: \'quickModForm\'
-	});';
-
-	echo '
-	if (\'XMLHttpRequest\' in window)
-	{
-		var oQuickModify = new QuickModify({
-			sScriptUrl: smf_scripturl,
-			bShowModify: ', $settings['show_modify'] ? 'true' : 'false', ',
-			iTopicId: ', $context['current_topic'], ',
-			sTemplateBodyEdit: ', JavaScriptEscape('
-				<div id="quick_edit_body_container" style="width: 90%">
-					<div id="error_box" style="padding: 4px;" class="error"></div>
-					<textarea class="editor" name="message" rows="12" style="' . (isBrowser('is_ie8') ? 'width: 635px; max-width: 100%; min-width: 100%' : 'width: 100%') . ';  margin-bottom: 10px;" tabindex="' . $context['tabindex']++ . '">%body%</textarea><br />
-					<input type="hidden" name="' . $context['session_var'] . '" value="' . $context['session_id'] . '" />
-					<input type="hidden" name="topic" value="' . $context['current_topic'] . '" />
-					<input type="hidden" name="msg" value="%msg_id%" />
-					<div class="righttext">
-						<input type="submit" name="post" value="' . $txt['save'] . '" tabindex="' . $context['tabindex']++ . '" onclick="return oQuickModify.modifySave(\'' . $context['session_id'] . '\', \'' . $context['session_var'] . '\');" accesskey="s" class="button_submit" />&nbsp;&nbsp;' . ($context['show_spellchecking'] ? '<input type="button" value="' . $txt['spell_check'] . '" tabindex="' . $context['tabindex']++ . '" onclick="spellCheck(\'quickModForm\' . \'message\');" class="button_submit" />&nbsp;&nbsp;' : '') . '<input type="submit" name="cancel" value="' . $txt['modify_cancel'] . '" tabindex="' . $context['tabindex']++ . '" onclick="return oQuickModify.modifyCancel();" class="button_submit" />
-					</div>
-				</div>'), ',
-			sTemplateSubjectEdit: ', JavaScriptEscape('<input type="text" style="width: 90%" name="subject" value="%subject%" size="80" maxlength="80" tabindex="' . $context['tabindex']++ . '" class="input_text" />'), ',
-			sTemplateBodyNormal: ', JavaScriptEscape('%body%'), ',
-			sTemplateSubjectNormal: ', JavaScriptEscape('<a href="' . $scripturl . '?topic=' . $context['current_topic'] . '.msg%msg_id%#msg%msg_id%" rel="nofollow">%subject%</a>'), ',
-			sTemplateTopSubject: ', JavaScriptEscape($txt['topic'] . ': %subject% &nbsp;(' . $txt['read'] . ' ' . $context['num_views'] . ' ' . $txt['times'] . ')'), ',
-			sErrorBorderStyle: ', JavaScriptEscape('1px solid red'), '
-		});
-
-		aJumpTo[aJumpTo.length] = new JumpTo({
-			sContainerId: "display_jump_to",
-			sJumpToTemplate: "<label class=\"smalltext\" for=\"%select_id%\">', $context['jump_to']['label'], ':<" + "/label> %dropdown_list%",
-			iCurBoardId: ', $context['current_board'], ',
-			iCurBoardChildLevel: ', $context['jump_to']['child_level'], ',
-			sCurBoardName: "', $context['jump_to']['board_name'], '",
-			sBoardChildLevelIndicator: "==",
-			sBoardPrefix: "=> ",
-			sCatSeparator: "-----------------------------",
-			sCatPrefix: "",
-			sGoButtonLabel: "', $txt['go'], '"
-		});
-
-		aIconLists[aIconLists.length] = new IconList({
-			sBackReference: "aIconLists[" + aIconLists.length + "]",
-			sIconIdPrefix: "msg_icon_",
-			sScriptUrl: smf_scripturl,
-			bShowModify: ', $settings['show_modify'] ? 'true' : 'false', ',
-			iBoardId: ', $context['current_board'], ',
-			iTopicId: ', $context['current_topic'], ',
-			sSessionId: "', $context['session_id'], '",
-			sSessionVar: "', $context['session_var'], '",
-			sLabelIconList: "', $txt['message_icon'], '",
-			sBoxBackground: "transparent",
-			sBoxBackgroundHover: "#ffffff",
-			iBoxBorderWidthHover: 1,
-			sBoxBorderColorHover: "#adadad" ,
-			sContainerBackground: "#ffffff",
-			sContainerBorder: "1px solid #adadad",
-			sItemBorder: "1px solid #ffffff",
-			sItemBorderHover: "1px dotted gray",
-			sItemBackground: "transparent",
-			sItemBackgroundHover: "#e0e0f0"
-		});
-	}';
-
-	if (!empty($ignoredMsgs))
-	{
-		echo '
-	var aIgnoreToggles = new Array();';
-
-		foreach ($ignoredMsgs as $msgid)
-		{
-			echo '
-	aIgnoreToggles[', $msgid, '] = new smc_Toggle({
-		bToggleEnabled: true,
-		bCurrentlyCollapsed: true,
-		aSwappableContainers: [
-			\'msg_', $msgid, '_extra_info\',
-			\'msg_', $msgid, '\',
-			\'msg_', $msgid, '_footer\',
-			\'msg_', $msgid, '_quick_mod\',
-			\'modify_button_', $msgid, '\',
-			\'msg_', $msgid, '_signature\'
-
-		],
-		aSwapLinks: [
-			{
-				sId: \'msg_', $msgid, '_ignored_link\',
-				msgExpanded: \'\',
-				msgCollapsed: ', JavaScriptEscape($txt['show_ignore_user_post']), '
-			}
-		]
-	});';
-		}
-	}
-
-	echo '
-	// ]]></script>';
-}
-
-?>

+ 0 - 375
Themes/core/GenericMenu.template.php

@@ -1,375 +0,0 @@
-<?php
-/**
- * Simple Machines Forum (SMF)
- *
- * @package SMF
- * @author Simple Machines
- * @copyright 2011 Simple Machines
- * @license http://www.simplemachines.org/about/smf/license.php BSD
- *
- * @version 2.1 Alpha 1
- */
-
-// This contains the html for the side bar of the admin center, which is used for all admin pages.
-function template_generic_menu_sidebar_above()
-{
-	global $context, $settings, $options, $scripturl, $txt, $modSettings;
-
-	// This is the main table - we need it so we can keep the content to the right of it.
-	echo '
-	<div id="main_container">
-		<div id="left_admsection">
-			<span id="admin_menu"></span>';
-
-	// What one are we rendering?
-	$context['cur_menu_id'] = isset($context['cur_menu_id']) ? $context['cur_menu_id'] + 1 : 1;
-	$menu_context = &$context['menu_data_' . $context['cur_menu_id']];
-
-	// For every section that appears on the sidebar...
-	$firstSection = true;
-	foreach ($menu_context['sections'] as $section)
-	{
-		// Show the section header - and pump up the line spacing for readability.
-		echo '
-			<div class="adm_section">
-				<div class="cat_bar">
-					<h4 class="catbg">';
-
-			if ($firstSection && !empty($menu_context['can_toggle_drop_down']))
-			{
-				echo '
-						<span class="ie6_header floatleft">', $section['title'],'
-						<a href="', $menu_context['toggle_url'], '"><img style="margin: 0 0 0 5px; vertical-align: middle;" src="', $context['menu_image_path'], '/change_menu', $context['right_to_left'] ? '' : '2', '.png" alt="!" /></a>
-						</span>';
-			}
-
-			else
-			{
-				echo '
-						', $section['title'];
-			}
-
-			echo '
-					</h4>
-				</div>
-				<ul class="smalltext left_admmenu">';
-
-		// For every area of this section show a link to that area (bold if it's currently selected.)
-		foreach ($section['areas'] as $i => $area)
-		{
-			// Not supposed to be printed?
-			if (empty($area['label']))
-				continue;
-
-			echo '
-					<li>';
-
-			// Is this the current area, or just some area?
-			if ($i == $menu_context['current_area'])
-			{
-				echo '
-						<strong><a href="', isset($area['url']) ? $area['url'] : $menu_context['base_url'] . ';area=' . $i, $menu_context['extra_parameters'], '">', $area['label'], '</a></strong>';
-
-				if (empty($context['tabs']))
-					$context['tabs'] = isset($area['subsections']) ? $area['subsections'] : array();
-			}
-			else
-				echo '
-						<a href="', isset($area['url']) ? $area['url'] : $menu_context['base_url'] . ';area=' . $i, $menu_context['extra_parameters'], '">', $area['label'], '</a>';
-
-			echo '
-					</li>';
-		}
-
-		echo '
-				</ul>
-			</div>';
-
-		$firstSection = false;
-	}
-
-	// This is where the actual "main content" area for the admin section starts.
-	echo '
-		</div>
-		<div id="main_admsection">';
-
-	// If there are any "tabs" setup, this is the place to shown them.
-	// @todo Clean this up!
-	if (!empty($context['tabs']) && empty($context['force_disable_tabs']))
-		template_generic_menu_tabs($menu_context);
-}
-
-// Part of the sidebar layer - closes off the main bit.
-function template_generic_menu_sidebar_below()
-{
-	global $context, $settings, $options;
-
-	echo '
-		</div>
-	</div><br class="clear" />';
-}
-
-// This contains the html for the side bar of the admin center, which is used for all admin pages.
-function template_generic_menu_dropdown_above()
-{
-	global $context, $settings, $options, $scripturl, $txt, $modSettings;
-
-	// Which menu are we rendering?
-	$context['cur_menu_id'] = isset($context['cur_menu_id']) ? $context['cur_menu_id'] + 1 : 1;
-	$menu_context = &$context['menu_data_' . $context['cur_menu_id']];
-
-	if (!empty($menu_context['can_toggle_drop_down']))
-		echo '
-		<div id="menu_toggle">
-			<a href="', $menu_context['toggle_url'], '"><img style="margin: 0 2px 0 2px;" src="', $context['menu_image_path'], '/change_menu', $context['right_to_left'] ? '2' : '', '.png" alt="*" /></a>
-		</div>';
-
-	echo '
-	<div id="adm_container">
-		<ul class="admin_menu" id="dropdown_menu_', $context['cur_menu_id'], '">';
-
-	// Main areas first.
-	$s = 0;
-	foreach ($menu_context['sections'] as $section)
-	{
-		$s ++;
-		$is_last = $s == count($menu_context['sections']);
-
-		if ($section['id'] == $menu_context['current_section'])
-		{
-			echo '
-			<li class="', $s == 1 ? 'first ': '', 'chosen', $is_last ? ' last last_chosen' : '', '"><h4>', $section['title'] , '</h4>
-				<ul>';
-		}
-		else
-			echo '
-			<li', $s == 1 ? ' class="first"': '', $is_last ? ' class="last"' : '', '><h4>', $section['title'] , '</h4>
-				<ul>';
-
-		// For every area of this section show a link to that area (bold if it's currently selected.)
-		foreach ($section['areas'] as $i => $area)
-		{
-			// Not supposed to be printed?
-			if (empty($area['label']))
-				continue;
-
-			echo '
-					<li>';
-
-			// Is this the current area, or just some area?
-			if ($i == $menu_context['current_area'])
-			{
-				echo '
-						<a class="chosen', !empty($area['subsections']) ? ' subsection' : '', '" href="', isset($area['url']) ? $area['url'] : $menu_context['base_url'] . ';area=' . $i, $menu_context['extra_parameters'], '">', $area['icon'] , $area['label'], '</a>';
-
-				if (empty($context['tabs']))
-					$context['tabs'] = isset($area['subsections']) ? $area['subsections'] : array();
-			}
-			else
-				echo '
-						<a href="', isset($area['url']) ? $area['url'] : $menu_context['base_url'] . ';area=' . $i, $menu_context['extra_parameters'], '"', !empty($area['subsections']) ? ' class="subsection"' : '', '>', $area['icon'], $area['label'] , '</a>';
-
-			// Is there any subsections?
-			if (!empty($area['subsections']))
-			{
-				echo '
-						<ul>';
-
-				foreach ($area['subsections'] as $sa => $sub)
-				{
-					if (!empty($sub['disabled']))
-						continue;
-
-					echo '
-							<li>';
-
-					$url = isset($sub['url']) ? $sub['url'] : (isset($area['url']) ? $area['url'] : $menu_context['base_url'] . ';area=' . $i) . ';sa=' . $sa;
-
-					echo '
-								<a ', !empty($sub['selected']) ? 'class="chosen" ' : '', 'href="', $url, $menu_context['extra_parameters'], '">', $sub['label'], '</a>';
-
-					echo '
-							</li>';
-				}
-
-				echo '
-						</ul>';
-			}
-
-			echo '
-					</li>';
-		}
-		echo '
-				</ul>
-			</li>';
-	}
-
-	echo '
-		</ul></div>';
-
-	// This is the main table - we need it so we can keep the content to the right of it.
-	echo '
-		<div class="clear">';
-
-	// It's possible that some pages have their own tabs they wanna force...
-	if (!empty($context['tabs']))
-		template_generic_menu_tabs($menu_context);
-}
-
-// Part of the admin layer - used with admin_above to close the table started in it.
-function template_generic_menu_dropdown_below()
-{
-	global $context, $settings, $options;
-
-	echo '
-		</div>';
-}
-
-// Some code for showing a tabbed view.
-function template_generic_menu_tabs(&$menu_context)
-{
-	global $context, $settings, $options, $scripturl, $txt, $modSettings;
-
-	// Handy shortcut.
-	$tab_context = &$menu_context['tab_data'];
-
-	// Right to left tabs should be in reverse order.
-	if ($context['right_to_left'])
-		$tab_context['tabs'] = array_reverse($tab_context['tabs'], true);
-
-	// Exactly how many tabs do we have?
-	foreach ($context['tabs'] as $id => $tab)
-	{
-		// Can this not be accessed?
-		if (!empty($tab['disabled']))
-		{
-			$tab_context['tabs'][$id]['disabled'] = true;
-			continue;
-		}
-
-		// Did this not even exist - or do we not have a label?
-		if (!isset($tab_context['tabs'][$id]))
-			$tab_context['tabs'][$id] = array('label' => $tab['label']);
-		elseif (!isset($tab_context['tabs'][$id]['label']))
-			$tab_context['tabs'][$id]['label'] = $tab['label'];
-
-		// Has a custom URL defined in the main admin structure?
-		if (isset($tab['url']) && !isset($tab_context['tabs'][$id]['url']))
-			$tab_context['tabs'][$id]['url'] = $tab['url'];
-		// Any additional paramaters for the url?
-		if (isset($tab['add_params']) && !isset($tab_context['tabs'][$id]['add_params']))
-			$tab_context['tabs'][$id]['add_params'] = $tab['add_params'];
-		// Has it been deemed selected?
-		if (!empty($tab['is_selected']))
-			$tab_context['tabs'][$id]['is_selected'] = true;
-		// Does it have its own help?
-		if (!empty($tab['help']))
-			$tab_context['tabs'][$id]['help'] = $tab['help'];
-		// Is this the last one?
-		if (!empty($tab['is_last']) && !isset($tab_context['override_last']))
-			$tab_context['tabs'][$id]['is_last'] = true;
-	}
-
-	// Find the selected tab
-	foreach ($tab_context['tabs'] as $sa => $tab)
-		if (!empty($tab['is_selected']) || (isset($menu_context['current_subsection']) && $menu_context['current_subsection'] == $sa))
-		{
-			$selected_tab = $tab;
-			$tab_context['tabs'][$sa]['is_selected'] = true;
-		}
-
-	echo '
-			<div class="tborder">
-				<h3 class="titlebg" style="margin: 0">';
-
-	// Show a help item?
-	if (!empty($selected_tab['help']) || !empty($tab_context['help']))
-		echo '
-					<a href="', $scripturl, '?action=helpadmin;help=', !empty($selected_tab['help']) ? $selected_tab['help'] : $tab_context['help'], '" onclick="return reqWin(this.href);" class="help"><img src="', $settings['images_url'], '/helptopics.gif" alt="', $txt['help'], '" align="top" /></a> ';
-
-	echo '
-					', $tab_context['title'], '
-				</h3>';
-
-	// Shall we use the tabs?
-	if (!empty($settings['use_tabs']))
-	{
-		echo '
-				<div class="windowbg padding">
-					', !empty($selected_tab['description']) ? $selected_tab['description'] : $tab_context['description'], '
-				</div>';
-
-		echo '
-			</div>
-			<div class="generic_tab_strip">
-				<div class="buttonlist">
-					<ul class="reset clearfix">';
-
-		// Print out all the items in this tab.
-		foreach ($tab_context['tabs'] as $sa => $tab)
-		{
-			if (!empty($tab['disabled']))
-				continue;
-
-			if (!empty($tab['is_selected']))
-			{
-				echo '
-						<li class="active', !empty($tab['is_last']) ? ' last' : '', '">
-							<a href="', isset($tab['url']) ? $tab['url'] : $menu_context['base_url'] . ';area=' . $menu_context['current_area'] . ';sa=' . $sa, $menu_context['extra_parameters'], isset($tab['add_params']) ? $tab['add_params'] : '', '">
-								<span>
-									<em>', $tab['label'], '</em>
-								</span>
-							</a>
-						</li>';
-			}
-			else
-				echo '
-						<li', !empty($tab['is_last']) ? ' class="last"' : '', '>
-							<a href="', isset($tab['url']) ? $tab['url'] : $menu_context['base_url'] . ';area=' . $menu_context['current_area'] . ';sa=' . $sa, $menu_context['extra_parameters'], isset($tab['add_params']) ? $tab['add_params'] : '', '">
-								<span>', $tab['label'], '</span>
-							</a>
-						</li>';
-		}
-
-		// the end of tabs
-		echo '
-					</ul>
-				</div><br />
-			</div>';
-	}
-	// ...if not use the old style
-	else
-	{
-		echo '
-				<div class="windowbg padding">';
-
-		// Print out all the items in this tab.
-		foreach ($tab_context['tabs'] as $sa => $tab)
-		{
-			if (!empty($tab['disabled']))
-				continue;
-
-			if (!empty($tab['is_selected']))
-			{
-				echo '
-					<img src="', $settings['images_url'], '/selected.gif" alt="*" /> <strong><a href="', isset($tab['url']) ? $tab['url'] : $menu_context['base_url'] . ';area=' . $menu_context['current_area'] . ';sa=' . $sa, $menu_context['extra_parameters'], '">', $tab['label'], '</a></strong>';
-			}
-			else
-				echo '
-					<a href="', isset($tab['url']) ? $tab['url'] : $menu_context['base_url'] . ';area=' . $menu_context['current_area'] . ';sa=' . $sa, $menu_context['extra_parameters'], '">', $tab['label'], '</a>';
-
-			if (empty($tab['is_last']))
-				echo ' | ';
-		}
-
-		echo '
-				</div>
-				<div class="windowbg smalltext padding">
-					', isset($selected_tab['description']) ? $selected_tab['description'] : $tab_context['description'], '
-				</div>
-			</div>
-		</div>';
-	}
-}
-
-?>

+ 0 - 203
Themes/core/Memberlist.template.php

@@ -1,203 +0,0 @@
-<?php
-/**
- * Simple Machines Forum (SMF)
- *
- * @package SMF
- * @author Simple Machines
- * @copyright 2011 Simple Machines
- * @license http://www.simplemachines.org/about/smf/license.php BSD
- *
- * @version 2.1 Alpha 1
- */
-
-// Displays a sortable listing of all members registered on the forum.
-function template_main()
-{
-	global $context, $settings, $options, $scripturl, $txt;
-
-	// Build the memberlist button array.
-	$memberlist_buttons = array(
-		'view_all_members' => array('text' => 'view_all_members', 'image' => 'mlist.gif', 'lang' => true, 'url' => $scripturl . '?action=mlist' . ';sa=all', 'active' => true),
-		'mlist_search' => array('text' => 'mlist_search', 'image' => 'mlist.gif', 'lang' => true, 'url' => $scripturl . '?action=mlist;sa=search'),
-	);
-
-	echo '
-	<div class="main_section clearfix" id="memberlist">
-		<div id="modbuttons_top" class="modbuttons clearfix margintop">
-			<div class="floatleft middletext">
-				', $txt['pages'], ': ', $context['page_index'], '
-			</div>
-			', template_button_strip($memberlist_buttons, 'bottom'), '
-		</div>';
-
-	echo '
-		<div id="mlist" class="tborder topic_table">
-			<h4 class="catbg headerpadding clearfix">
-				<span class="floatleft">', $txt['members_list'], '</span>';
-	if (!isset($context['old_search']))
-		echo '
-				<span class="floatright">', $context['letter_links'], '</span>';
-	echo '
-			</h4>
-			<table class="bordercolor boardsframe" cellspacing="1" cellpadding="4" width="100%">
-			<thead>
-				<tr class="titlebg">';
-
-	// Display each of the column headers of the table.
-	foreach ($context['columns'] as $column)
-	{
-		// We're not able (through the template) to sort the search results right now...
-		if (isset($context['old_search']))
-			echo '
-					<th class="headerpadding" scope="col" ', isset($column['width']) ? ' width="' . $column['width'] . '"' : '', isset($column['colspan']) ? ' colspan="' . $column['colspan'] . '"' : '', '>
-						', $column['label'], '</th>';
-		// This is a selected column, so underline it or some such.
-		elseif ($column['selected'])
-			echo '
-					<th class="headerpadding" scope="col" style="width: auto;"' . (isset($column['colspan']) ? ' colspan="' . $column['colspan'] . '"' : '') . ' nowrap="nowrap">
-						<a href="' . $column['href'] . '" rel="nofollow">' . $column['label'] . ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" /></a></th>';
-		// This is just some column... show the link and be done with it.
-		else
-			echo '
-					<th class="headerpadding" scope="col" ', isset($column['width']) ? ' width="' . $column['width'] . '"' : '', isset($column['colspan']) ? ' colspan="' . $column['colspan'] . '"' : '', '>
-						', $column['link'], '</th>';
-	}
-	echo '
-				</tr>
-			</thead>
-			<tbody>';
-
-	// Assuming there are members loop through each one displaying their data.
-	if (!empty($context['members']))
-	{
-		foreach ($context['members'] as $member)
-		{
-			echo '
-				<tr ', empty($member['sort_letter']) ? '' : ' id="letter' . $member['sort_letter'] . '"', '>
-					<td align="center" class="windowbg2">
-						', $context['can_send_pm'] ? '<a href="' . $member['online']['href'] . '" title="' . $member['online']['text'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $member['online']['image_href'] . '" alt="' . $member['online']['text'] . '" align="middle" />' : $member['online']['label'], $context['can_send_pm'] ? '</a>' : '', '
-					</td>
-					<td class="windowbg" align="', $context['right_to_left'] ? 'right' : 'left', '">', $member['link'], '</td>
-					<td class="windowbg2" align="center">', $member['show_email'] == 'no' ? '' : '<a href="' . $scripturl . '?action=emailuser;sa=email;uid=' . $member['id'] . '" rel="nofollow"><img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . ' ' . $member['name'] . '" /></a>', '</td>';
-
-		if (!isset($context['disabled_fields']['website']))
-			echo '
-					<td align="center" class="windowbg">', $member['website']['url'] != '' ? '<a href="' . $member['website']['url'] . '" target="_blank" class="new_win"><img src="' . $settings['images_url'] . '/www.gif" alt="' . $member['website']['title'] . '" title="' . $member['website']['title'] . '" /></a>' : '', '</td>';
-
-		// ICQ?
-		if (!isset($context['disabled_fields']['icq']))
-			echo '
-					<td align="center" class="windowbg2">', $member['icq']['link'], '</td>';
-
-		// AIM?
-		if (!isset($context['disabled_fields']['aim']))
-			echo '
-					<td align="center" class="windowbg2">', $member['aim']['link'], '</td>';
-
-		// YIM?
-		if (!isset($context['disabled_fields']['yim']))
-			echo '
-					<td align="center" class="windowbg2">', $member['yim']['link'], '</td>';
-
-		// MSN?
-		if (!isset($context['disabled_fields']['msn']))
-			echo '
-					<td align="center" class="windowbg2">', $member['msn']['link'], '</td>';
-
-		// Group and date.
-		echo '
-					<td class="windowbg" align="', $context['right_to_left'] ? 'right' : 'left', '">', empty($member['group']) ? $member['post_group'] : $member['group'], '</td>
-					<td align="center" class="windowbg">', $member['registered_date'], '</td>';
-
-		if (!isset($context['disabled_fields']['posts']))
-			echo '
-					<td class="windowbg2" align="', $context['right_to_left'] ? 'left' : 'right', '" width="15">', $member['posts'], '</td>
-					<td class="windowbg" width="100" align="', $context['right_to_left'] ? 'right' : 'left', '">
-						', $member['posts'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $member['post_percent'] . '" height="15" alt="" />' : '', '
-					</td>';
-
-		echo '
-				</tr>';
-		}
-	}
-	// No members?
-	else
-		echo '
-				<tr>
-					<td colspan="', $context['colspan'], '" class="windowbg">', $txt['search_no_results'], '</td>
-				</tr>';
-
-	// Show the page numbers again. (makes 'em easier to find!)
-	echo '
-			</tbody>
-			</table>
-		</div>';
-
-	echo '
-		<div class="middletext clearfix">
-			<div class="floatleft">', $txt['pages'], ': ', $context['page_index'], '</div>';
-
-	// If it is displaying the result of a search show a "search again" link to edit their criteria.
-	if (isset($context['old_search']))
-		echo '
-			<div class="floatright">
-				<a href="', $scripturl, '?action=mlist;sa=search;search=', $context['old_search_value'], '">', $txt['mlist_search_again'], '</a>
-			</div>';
-	echo '
-		</div>
-	</div>';
-}
-
-// A page allowing people to search the member list.
-function template_search()
-{
-	global $context, $settings, $options, $scripturl, $txt;
-
-	// Build the memberlist button array.
-	$membersearch_buttons = array(
-			'view_all_members' => array('text' => 'view_all_members', 'image' => 'mlist.gif', 'lang' => true, 'url' => $scripturl . '?action=mlist;sa=all'),
-			'mlist_search' => array('text' => 'mlist_search', 'image' => 'mlist.gif', 'lang' => true, 'url' => $scripturl . '?action=mlist;sa=search', 'active' => true),
-	);
-
-	// Start the submission form for the search!
-	echo '
-	<form action="', $scripturl, '?action=mlist;sa=search" method="post" accept-charset="', $context['character_set'], '">
-		<div id="memberlist">
-			<div id="modbuttons_top" class="modbuttons clearfix margintop">
-				', template_button_strip($membersearch_buttons, 'right'), '
-			</div>
-			<div class="tborder">
-				<h3 class="titlebg headerpadding clearfix">
-					', !empty($settings['use_buttons']) ? '<img src="' . $settings['images_url'] . '/buttons/search.gif" alt="" />' : '', $txt['mlist_search'], '
-				</h3>';
-
-	// Display the input boxes for the form.
-	echo '
-				<div class="windowbg2">
-					<span id="mlist_search" class="windowbg2 largepadding clearfix">
-						<span class="enhanced">
-							<strong>', $txt['search_for'], ':</strong> <input type="text" name="search" value="', $context['old_search'], '" size="35" class="input_text" /> <input type="submit" name="ml_search" value="' . $txt['search'] . '" style="margin-left: 20px;" class="button_submit" />
-						</span>
-						<span class="floatleft">';
-
-	$count = 0;
-	foreach ($context['search_fields'] as $id => $title)
-	{
-		echo '
-							<label for="fields-', $id, '"><input type="checkbox" name="fields[]" id="fields-', $id, '" value="', $id, '" ', in_array($id, $context['search_defaults']) ? 'checked="checked"' : '', ' class="input_check" /> ', $title, '</label><br />';
-		// Halfway through?
-		if (round(count($context['search_fields']) / 2) == ++$count)
-			echo '
-						</span>
-						<span class="floatright">';
-	}
-		echo '
-						</span>
-					</span>
-				</div>
-			</div>
-		</div>
-	</form>';
-}
-
-?>

+ 0 - 506
Themes/core/MessageIndex.template.php

@@ -1,506 +0,0 @@
-<?php
-/**
- * Simple Machines Forum (SMF)
- *
- * @package SMF
- * @author Simple Machines
- * @copyright 2011 Simple Machines
- * @license http://www.simplemachines.org/about/smf/license.php BSD
- *
- * @version 2.1 Alpha 1
- */
-
-function template_main()
-{
-	global $context, $settings, $options, $scripturl, $modSettings, $txt;
-
-	echo '
-		<a id="top"></a>';
-
-	if (!empty($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0))
-	{
-		echo '
-	<div class="tborder marginbottom" id="childboards">
-		<table cellspacing="1" class="bordercolor boardsframe">
-			<tr>
-				<td colspan="4" class="catbg headerpadding">', $txt['parent_boards'], '</td>
-			</tr>';
-
-		foreach ($context['boards'] as $board)
-		{
-			echo '
-			<tr>
-				<td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg icon">
-					<a href="', ($board['is_redirect'] || $context['user']['is_guest'] ? $board['href'] : $scripturl . '?action=unread;board=' . $board['id'] . '.0;children'), '">';
-
-			// If the board or children is new, show an indicator.
-			if ($board['new'] || $board['children_new'])
-				echo '
-					<img src="', $settings['images_url'], '/on', $board['new'] ? '' : '2', '.gif" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" border="0" />';
-			// Is it a redirection board?
-			elseif ($board['is_redirect'])
-				echo '
-					<img src="', $settings['images_url'], '/redirect.gif" alt="*" title="*" border="0" />';
-			// No new posts at all! The agony!!
-			else
-				echo '
-					<img src="', $settings['images_url'], '/off.gif" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';
-
-			echo '
-				</a>
-			</td>
-			<td class="windowbg2 info">
-				<h4><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a>';
-
-			// Has it outstanding posts for approval?
-			if ($board['can_approve_posts'] && ($board['unapproved_posts'] || $board['unapproved_topics']))
-				echo '
-					<a href="', $scripturl, '?action=moderate;area=postmod;sa=', ($board['unapproved_topics'] > 0 ? 'topics' : 'posts'), ';brd=', $board['id'], ';', $context['session_var'], '=', $context['session_id'], '" title="', sprintf($txt['unapproved_posts'], $board['unapproved_topics'], $board['unapproved_posts']), '" class="moderation_link">(!)</a>';
-
-			echo '
-				</h4>
-				<p>', $board['description'] , '</p>';
-
-			// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
-			if (!empty($board['moderators']))
-				echo '
-				<p class="moderators">', count($board['moderators']) == 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</p>';
-
-			// Show some basic information about the number of posts, etc.
-			echo '
-			</td>
-			<td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg stats smalltext">
-				', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
-				', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '
-			</td>
-			<td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg2 smalltext lastpost">';
-
-			/* The board's and children's 'last_post's have:
-			time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
-			link, href, subject, start (where they should go for the first unread post.),
-			and member. (which has id, name, link, href, username in it.) */
-			if (!empty($board['last_post']['id']))
-				echo '
-				<strong>', $txt['last_post'], '</strong>  ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
-				', $txt['in'], ' ', $board['last_post']['link'], '<br />
-				', $txt['on'], ' ', $board['last_post']['time'];
-			echo '
-				</td>
-			</tr>';
-
-			// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
-			if (!empty($board['children']))
-			{
-				// Sort the links into an array with new boards bold so it can be imploded.
-				$children = array();
-				/* Each child in each board's children has:
-						id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
-				foreach ($board['children'] as $child)
-				{
-					if (!$child['is_redirect'])
-						$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>';
-					else
-						$child['link'] = '<a href="' . $child['href'] . '" title="' . comma_format($child['posts']) . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';
-
-					// Has it posts awaiting approval?
-					if ($child['can_approve_posts'] && ($child['unapproved_posts'] || $child['unapproved_topics']))
-						$child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] > 0 ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'] . $child['unapproved_topics'] . $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';
-
-					$children[] = $child['new'] ? '<strong>' . $child['link'] . '</strong>' : $child['link'];
-				}
-				echo '
-			<tr>
-				<td class="windowbg3 smalltext largepadding"><strong>', $txt['parent_boards'], '</strong>: ', implode(', ', $children), '</td>
-			</tr>';
-			}
-		}
-		echo '
-		</table>
-	</div>';
-	}
-
-	if (!empty($options['show_board_desc']) && $context['description'] != '')
-	{
-		echo '
-	<div id="description" class="tborder">
-		<div class="titlebg2 largepadding smalltext">', $context['description'], '</div>
-	</div>';
-	}
-
-	// Create the button set...
-	$normal_buttons = array(
-		'new_topic' => array('test' => 'can_post_new', 'text' => 'new_topic', 'image' => 'new_topic.gif', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0'),
-		'post_poll' => array('test' => 'can_post_poll', 'text' => 'new_poll', 'image' => 'new_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0;poll'),
-		'notify' => array('test' => 'can_mark_notify', 'text' => $context['is_marked_notify'] ? 'unnotify' : 'notify', 'image' => ($context['is_marked_notify'] ? 'un' : '') . 'notify.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_board'] : $txt['notification_enable_board']) . '\');"', 'url' => $scripturl . '?action=notifyboard;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';board=' . $context['current_board'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
-		'markread' => array('text' => 'mark_read_short', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=board;board=' . $context['current_board'] . '.0;' . $context['session_var'] . '=' . $context['session_id']),
-	);
-
-	// They can only mark read if they are logged in and it's enabled!
-	if (!$context['user']['is_logged'] || !$settings['show_mark_read'])
-		unset($normal_buttons['markread']);
-
-	// Allow adding new buttons easily.
-	call_integration_hook('integrate_messageindex_buttons', array(&$normal_buttons));
-
-	if (!$context['no_topic_listing'])
-	{
-		echo '
-		<div id="modbuttons_top" class="modbuttons clearfix margintop">
-			<div class="floatleft middletext">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '&nbsp;&nbsp;<a href="#bot"><strong>' . $txt['go_down'] . '</strong></a>' : '', '</div>
-			', template_button_strip($normal_buttons, 'bottom'), '
-		</div>';
-
-		// If Quick Moderation is enabled start the form.
-		if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] > 0 && !empty($context['topics']))
-			echo '
-	<form action="', $scripturl, '?action=quickmod;board=', $context['current_board'], '.', $context['start'], '" method="post" accept-charset="', $context['character_set'], '" name="quickModForm" id="quickModForm">';
-
-		echo '
-			<div class="tborder" id="messageindex">
-				<table cellspacing="1" class="bordercolor boardsframe">';
-
-		// Are there actually any topics to show?
-		if (!empty($context['topics']))
-		{
-			echo '
-					<thead>
-						<tr>
-							<th width="9%" colspan="2" class="catbg3 headerpadding">&nbsp;</th>
-							<th class="catbg3 headerpadding"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
-							<th class="catbg3 headerpadding" width="11%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['started_by'], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
-							<th class="catbg3 headerpadding" width="4%" align="center"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=replies', $context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['replies'], $context['sort_by'] == 'replies' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
-							<th class="catbg3 headerpadding" width="4%" align="center"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['views'], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
-							<th class="catbg3 headerpadding" width="22%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['last_post'], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
-
-			// Show a "select all" box for quick moderation?
-			if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] == 1)
-				echo '
-							<th class="catbg3 headerpadding" width="24">
-								<input type="checkbox" onclick="invertAll(this, this.form, \'topics[]\');" class="input_check" />
-							</th>';
-			// If it's on in "image" mode, don't show anything but the column.
-			elseif (!empty($context['can_quick_mod']))
-				echo '
-							<th class="catbg3 headerpadding" width="4%">&nbsp;</th>';
-			echo '
-						</tr>
-					</thead>';
-		}
-		echo '
-					<tbody>';
-
-		if (!empty($settings['display_who_viewing']))
-		{
-			echo '
-						<tr class="windowbg2">
-							<td colspan="', !empty($context['can_quick_mod']) ? '8' : '7', '" class="headerpadding smalltext">';
-			if ($settings['display_who_viewing'] == 1)
-				echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt['members'];
-			else
-				echo empty($context['view_members_list']) ? '0 ' . $txt['members'] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) or $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
-			echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_board'], '
-							</td>
-						</tr>';
-		}
-
-		// If this person can approve items and we have some awaiting approval tell them.
-		if (!empty($context['unapproved_posts_message']))
-		{
-			echo '
-						<tr class="windowbg2">
-							<td colspan="', !empty($context['can_quick_mod']) ? '8' : '7', '" class="smalltext headerpadding">
-									<span class="alert">!</span> ', $context['unapproved_posts_message'], '
-							</td>
-						</tr>';
-		}
-
-		// No topics.... just say, "sorry bub".
-		if (empty($context['topics']))
-			echo '
-						<tr class="windowbg2">
-							<td class="catbg3" colspan="', !empty($context['can_quick_mod']) ? '8' : '7', '"><strong>', $txt['msg_alert_none'], '</strong></td>
-						</tr>';
-
-		foreach ($context['topics'] as $topic)
-		{
-			// Do we want to separate the sticky and lock status out?
-			if (!empty($settings['separate_sticky_lock']) && strpos($topic['class'], 'sticky') !== false)
-				$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_sticky'));
-			if (!empty($settings['separate_sticky_lock']) && strpos($topic['class'], 'locked') !== false)
-				$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_locked'));
-
-			// Is this topic pending approval, or does it have any posts pending approval?
-			if ($context['can_approve_posts'] && $topic['unapproved_posts'])
-				$color_class = !$topic['approved'] ? 'approvetbg' : 'approvebg';
-			// Sticky topics should get a different color, too.
-			elseif ($topic['is_sticky'] && !empty($settings['separate_sticky_lock']))
-				$color_class = 'windowbg3';
-			// Last, but not least: regular topics.
-			else
-				$color_class = 'windowbg';
-
-			// Some columns require a different shade of the color class.
-			$alternate_class = 'windowbg2';
-
-			echo '
-						<tr>
-							<td class="', $alternate_class, ' icon1">
-								<img src="', $settings['images_url'], '/topic/', $topic['class'], '.gif" alt="" />
-							</td>
-							<td class="', $alternate_class, ' icon2">
-								<img src="', $topic['first_post']['icon_url'], '" alt="" />
-							</td>
-							<td class="subject ', $color_class, '" ', (!empty($topic['quick_mod']['modify']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\');"' : ''), '>';
-
-			if (!empty($settings['separate_sticky_lock']))
-				echo '
-								', $topic['is_locked'] ? '<img src="' . $settings['images_url'] . '/icons/quick_lock.gif" class="floatright" alt="" id="lockicon' . $topic['first_post']['id'] . '" style="margin: 0;" />' : '', '
-								', $topic['is_sticky'] ? '<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" class="floatright" alt="" id="stickyicon' . $topic['first_post']['id'] . '" style="margin: 0;" />' : '';
-
-			echo '
-								', $topic['is_sticky'] ? '<strong>' : '', '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], ($context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span>', $topic['is_sticky'] ? '</strong>' : '';
-
-			// Is this topic new? (assuming they are logged in!)
-			if ($topic['new'] && $context['user']['is_logged'])
-					echo '
-								<a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><span class="new_posts">' . $txt['new'] . '</span></a>';
-
-			echo '
-								<small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small>
-							</td>
-							<td class="', $alternate_class, ' starter">
-								', $topic['first_post']['member']['link'], '
-							</td>
-							<td class="', $color_class, ' replies">
-								', $topic['replies'], '
-							</td>
-							<td class="', $color_class, ' views">
-								', $topic['views'], '
-							</td>
-							<td class="', $alternate_class, ' lastpost">
-								<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" /></a>
-								<span class="smalltext">
-									', $topic['last_post']['time'], '<br />
-									', $txt['by'], ' ', $topic['last_post']['member']['link'], '
-								</span>
-							</td>';
-
-			// Show the quick moderation options?
-			if (!empty($context['can_quick_mod']))
-			{
-				echo '
-							<td class="', $color_class, ' moderation">';
-				if ($options['display_quick_mod'] == 1)
-					echo '
-								<input type="checkbox" name="topics[]" value="', $topic['id'], '" class="input_check" />';
-				else
-				{
-					// Check permissions on each and show only the ones they are allowed to use.
-					if ($topic['quick_mod']['remove'])
-						echo '<a href="', $scripturl, '?action=quickmod;board=', $context['current_board'], '.', $context['start'], ';actions[', $topic['id'], ']=remove;', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['quickmod_confirm'], '\');"><img src="', $settings['images_url'], '/icons/quick_remove.gif" width="16" alt="', $txt['remove_topic'], '" title="', $txt['remove_topic'], '" /></a>';
-
-					if ($topic['quick_mod']['lock'])
-						echo '<a href="', $scripturl, '?action=quickmod;board=', $context['current_board'], '.', $context['start'], ';actions[', $topic['id'], ']=lock;', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['quickmod_confirm'], '\');"><img src="', $settings['images_url'], '/icons/quick_lock.gif" width="16" alt="', $txt['set_lock'], '" title="', $txt['set_lock'], '" /></a>';
-
-					if ($topic['quick_mod']['lock'] || $topic['quick_mod']['remove'])
-						echo '<br />';
-
-					if ($topic['quick_mod']['sticky'])
-						echo '<a href="', $scripturl, '?action=quickmod;board=', $context['current_board'], '.', $context['start'], ';actions[', $topic['id'], ']=sticky;', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['quickmod_confirm'], '\');"><img src="', $settings['images_url'], '/icons/quick_sticky.gif" width="16" alt="', $txt['set_sticky'], '" title="', $txt['set_sticky'], '" /></a>';
-
-					if ($topic['quick_mod']['move'])
-						echo '<a href="', $scripturl, '?action=movetopic;board=', $context['current_board'], '.', $context['start'], ';topic=', $topic['id'], '.0"><img src="', $settings['images_url'], '/icons/quick_move.gif" width="16" alt="', $txt['move_topic'], '" title="', $txt['move_topic'], '" /></a>';
-				}
-				echo '
-							</td>';
-			}
-			echo '
-						</tr>';
-		}
-
-		if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))
-		{
-			echo '
-						<tr class="catbg headerpadding">
-							<td colspan="8" align="right">
-								<select name="qaction"', $context['can_move'] ? ' onchange="this.form.moveItTo.disabled = (this.options[this.selectedIndex].value != \'move\');"' : '', '>
-									<option value="">--------</option>
-									', $context['can_remove'] ? '<option value="remove">' . $txt['quick_mod_remove'] . '</option>' : '', '
-									', $context['can_lock'] ? '<option value="lock">' . $txt['quick_mod_lock'] . '</option>' : '', '
-									', $context['can_sticky'] ? '<option value="sticky">' . $txt['quick_mod_sticky'] . '</option>' : '', '
-									', $context['can_move'] ? '<option value="move">' . $txt['quick_mod_move'] . ': </option>' : '', '
-									', $context['can_merge'] ? '<option value="merge">' . $txt['quick_mod_merge'] . '</option>' : '', '
-									', $context['can_restore'] ? '<option value="restore">' . $txt['quick_mod_restore'] . '</option>' : '', '
-									', $context['can_approve'] ? '<option value="approve">' . $txt['quick_mod_approve'] . '</option>' : '', '
-									', $context['user']['is_logged'] ? '<option value="markread">' . $txt['quick_mod_markread'] . '</option>' : '', '
-								</select>';
-
-			// Show a list of boards they can move the topic to.
-			if ($context['can_move'])
-			{
-					echo '
-								<select id="moveItTo" name="move_to" disabled="disabled">';
-
-					foreach ($context['move_to_boards'] as $category)
-					{
-						echo '
-									<optgroup label="', $category['name'], '">';
-						foreach ($category['boards'] as $board)
-								echo '
-										<option value="', $board['id'], '"', $board['selected'] ? ' selected="selected"' : '', '>', $board['child_level'] > 0 ? str_repeat('==', $board['child_level'] - 1) . '=&gt;' : '', ' ', $board['name'], '</option>';
-						echo '
-									</optgroup>';
-					}
-					echo '
-								</select>';
-			}
-
-			echo '
-								<input type="submit" value="', $txt['quick_mod_go'], '" onclick="return document.forms.quickModForm.qaction.value != \'\' &amp;&amp; confirm(\'', $txt['quickmod_confirm'], '\');" class="button_submit" />
-							</td>
-						</tr>';
-		}
-
-		echo '
-					</tbody>
-				</table>
-			</div>
-			<a id="bot"></a>';
-
-		// Finish off the form - again.
-		if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] > 0 && !empty($context['topics']))
-			echo '
-			<input type="hidden" name="' . $context['session_var'] . '" value="' . $context['session_id'] . '" />
-	</form>';
-
-		echo '
-	<div id="modbuttons_bottom" class="modbuttons clearfix marginbottom">
-		', template_button_strip($normal_buttons, 'top'), '
-		<div class="floatleft middletext">' . $txt['pages'] . ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '&nbsp;&nbsp;<a href="#top"><strong>' . $txt['go_up'] . '</strong></a>' : '', '</div>
-	</div>';
-	}
-
-	// Show breadcrumbs at the bottom too.
-	echo '
-	<div class="marginbottom">', theme_linktree(), '</div>';
-
-	echo '
-	<div class="tborder clearfix" id="topic_icons">
-		<div class="titlebg2 clearfix">
-			<p class="floatright" id="message_index_jump_to">&nbsp;</p>';
-
-	if (!$context['no_topic_listing'])
-			echo '
-			<div class="floatleft smalltext">
-			<ul class="reset">
-				', !empty($modSettings['enableParticipation']) && $context['user']['is_logged'] ? '
-				<li><img src="' . $settings['images_url'] . '/topic/my_normal_post.gif" alt="" align="middle" /> ' . $txt['participation_caption'] . '</li>' : '', '
-				<li><img src="' . $settings['images_url'] . '/topic/normal_post.gif" alt="" align="middle" /> ' . $txt['normal_topic'] . '</li>
-				<li><img src="' . $settings['images_url'] . '/topic/hot_post.gif" alt="" align="middle" /> ' . sprintf($txt['hot_topics'], $modSettings['hotTopicPosts']) . '</li>
-				<li><img src="' . $settings['images_url'] . '/topic/veryhot_post.gif" alt="" align="middle" /> ' . sprintf($txt['very_hot_topics'], $modSettings['hotTopicVeryPosts']) . '</li>
-			</ul>
-			</div>
-			<div class="floatleft smalltext">
-			<ul class="reset">
-				<li><img src="' . $settings['images_url'] . '/icons/quick_lock.gif" alt="" align="middle" /> ' . $txt['locked_topic'] . '</li>' . ($modSettings['enableStickyTopics'] == '1' ? '
-				<li><img src="' . $settings['images_url'] . '/icons/quick_sticky.gif" alt="" align="middle" /> ' . $txt['sticky_topic'] . '</li>' : '') . ($modSettings['pollMode'] == '1' ? '
-				<li><img src="' . $settings['images_url'] . '/topic/normal_poll.gif" alt="" align="middle" /> ' . $txt['poll'] : '') . '</li>
-			</ul>
-			</div>';
-
-	echo '
-			<script type="text/javascript"><!-- // --><![CDATA[
-				if (\'XMLHttpRequest\' in window)
-					aJumpTo[aJumpTo.length] = new JumpTo({
-						sContainerId: "message_index_jump_to",
-						sJumpToTemplate: "<label class=\"smalltext\" for=\"%select_id%\">', $context['jump_to']['label'], ':<" + "/label> %dropdown_list%",
-						iCurBoardId: ', $context['current_board'], ',
-						iCurBoardChildLevel: ', $context['jump_to']['child_level'], ',
-						sCurBoardName: "', $context['jump_to']['board_name'], '",
-						sBoardChildLevelIndicator: "==",
-						sBoardPrefix: "=> ",
-						sCatSeparator: "-----------------------------",
-						sCatPrefix: "",
-						sGoButtonLabel: "', $txt['go'], '"
-					});
-			// ]]></script>
-		</div>
-	</div>';
-
-	// Javascript for inline editing.
-	echo '
-<script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/topic.js"></script>
-<script type="text/javascript"><!-- // --><![CDATA[
-
-	// Hide certain bits during topic edit.
-	hide_prefixes.push("lockicon", "stickyicon", "pages", "newicon");
-
-	// Use it to detect when we\'ve stopped editing.
-	document.onclick = modify_topic_click;
-
-	var mouse_on_div;
-	function modify_topic_click()
-	{
-		if (in_edit_mode == 1 && mouse_on_div == 0)
-			modify_topic_save("', $context['session_id'], '");
-	}
-
-	function modify_topic_keypress(oEvent)
-	{
-		if (\'keyCode\' in oEvent && oEvent.keyCode == 13)
-		{
-			modify_topic_save("', $context['session_id'], '");
-			if (\'preventDefault\' in oEvent)
-				oEvent.preventDefault();
-			else
-				oEvent.returnValue = false;
-		}
-	}
-
-	// For templating, shown when an inline edit is made.
-	function modify_topic_show_edit(subject)
-	{
-		// Just template the subject.
-		setInnerHTML(cur_subject_div, \'<input type="text" name="subject" value="\' + subject + \'" size="60" style="width: 95%;" maxlength="80" onkeypress="modify_topic_keypress(event)" class="input_text" /><input type="hidden" name="topic" value="\' + cur_topic_id + \'" /><input type="hidden" name="msg" value="\' + cur_msg_id.substr(4) + \'" />\');
-	}
-
-	// And the reverse for hiding it.
-	function modify_topic_hide_edit(subject)
-	{
-		// Re-template the subject!
-		setInnerHTML(cur_subject_div, \'<a href="', $scripturl, '?topic=\' + cur_topic_id + \'.0">\' + subject + \'<\' +\'/a>\');
-	}
-
-// ]]></script>';
-}
-
-function theme_show_buttons()
-{
-	global $context, $settings, $options, $txt, $scripturl;
-
-	$buttonArray = array();
-
-	// If they are logged in, and the mark read buttons are enabled..
-	if ($context['user']['is_logged'] && $settings['show_mark_read'])
-		$buttonArray[] = '<a href="' . $scripturl . '?action=markasread;sa=board;board=' . $context['current_board'] . '.0;' . $context['session_var'] . '=' . $context['session_id'] . '">' . $txt['mark_read_short'] . '</a>';
-
-	// If the user has permission to show the notification button... ask them if they're sure, though.
-	if ($context['can_mark_notify'])
-		$buttonArray[] = '<a href="' . $scripturl . '?action=notifyboard;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';board=' . $context['current_board'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_board'] : $txt['notification_enable_board']) . '\');">' . $txt[$context['is_marked_notify'] ? 'unnotify' : 'notify'] . '</a>';
-
-	// Are they allowed to post new topics?
-	if ($context['can_post_new'])
-		$buttonArray[] = '<a href="' . $scripturl . '?action=post;board=' . $context['current_board'] . '.0">' . $txt['new_topic'] . '</a>';
-
-	// How about new polls, can the user post those?
-	if ($context['can_post_poll'])
-		$buttonArray[] = '<a href="' . $scripturl . '?action=post;board=' . $context['current_board'] . '.0;poll">' . $txt['new_poll'] . '</a>';
-
-	// Right to left menu should be in reverse order.
-	if ($context['right_to_left'])
-		$buttonArray = array_reverse($buttonArray, true);
-
-	return implode(' &nbsp;|&nbsp; ', $buttonArray);
-}
-
-?>

+ 0 - 1763
Themes/core/PersonalMessage.template.php

@@ -1,1763 +0,0 @@
-<?php
-/**
- * Simple Machines Forum (SMF)
- *
- * @package SMF
- * @author Simple Machines
- * @copyright 2011 Simple Machines
- * @license http://www.simplemachines.org/about/smf/license.php BSD
- *
- * @version 2.1 Alpha 1
- */
-
-// This is the main sidebar for the personal messages section.
-function template_pm_above()
-{
-	global $context, $settings, $options, $txt;
-
-	echo '
-	<div id="personal_messages">';
-
-	// Show the capacity bar, if available.
-	if (!empty($context['limit_bar']))
-	{
-		echo '
-			<table width="100%" cellspacing="1" cellpadding="3" class="bordercolor" style="margin-bottom: 1em">
-				<tr class="titlebg2">
-					<td width="200" align="right"><strong>', $txt['pm_capacity'], ':</strong></td>
-					<td width="50%">
-						<div class="capacity_bar">
-							<div class="', $context['limit_bar']['percent'] > 85 ? 'full' : ($context['limit_bar']['percent'] > 40 ? 'filled' : 'empty'), '" style="width: ', $context['limit_bar']['bar'], '%;"></div>
-						</div>
-					</td>
-					<td width="200"', $context['limit_bar']['percent'] > 90 ? ' class="alert"' : '', '>
-						', $context['limit_bar']['text'], '
-					</td>
-				</tr>
-			</table>';
-	}
-
-	// Message sent? Show a small indication.
-	if (isset($context['pm_sent']))
-		echo '
-			<div class="windowbg" id="profile_success">
-				', $txt['pm_sent'], '
-			</div>';
-}
-
-// Just the end of the index bar, nothing special.
-function template_pm_below()
-{
-	global $context, $settings, $options;
-
-	echo '
-	</div>';
-}
-
-function template_folder()
-{
-	global $context, $settings, $options, $scripturl, $modSettings, $txt;
-
-	// The every helpful javascript!
-	echo '
-	<script type="text/javascript"><!-- // --><![CDATA[
-		var allLabels = {};
-		var currentLabels = {};
-		function loadLabelChoices()
-		{
-			var listing = document.forms.pmFolder.elements;
-			var theSelect = document.forms.pmFolder.pm_action;
-			var add, remove, toAdd = {length: 0}, toRemove = {length: 0};
-
-			if (theSelect.childNodes.length == 0)
-				return;';
-
-	// This is done this way for internationalization reasons.
-	echo '
-			if (!(\'-1\' in allLabels))
-			{
-				for (var o = 0; o < theSelect.options.length; o++)
-					if (theSelect.options[o].value.substr(0, 4) == "rem_")
-						allLabels[theSelect.options[o].value.substr(4)] = theSelect.options[o].text;
-			}
-
-			for (var i = 0; i < listing.length; i++)
-			{
-				if (listing[i].name != "pms[]" || !listing[i].checked)
-					continue;
-
-				var alreadyThere = [], x;
-				for (x in currentLabels[listing[i].value])
-				{
-					if (!(x in toRemove))
-					{
-						toRemove[x] = allLabels[x];
-						toRemove.length++;
-					}
-					alreadyThere[x] = allLabels[x];
-				}
-
-				for (x in allLabels)
-				{
-					if (!(x in alreadyThere))
-					{
-						toAdd[x] = allLabels[x];
-						toAdd.length++;
-					}
-				}
-			}
-
-			while (theSelect.options.length > 2)
-				theSelect.options[2] = null;
-
-			if (toAdd.length != 0)
-			{
-				theSelect.options[theSelect.options.length] = new Option("', $txt['pm_msg_label_apply'], '", "");
-				setInnerHTML(theSelect.options[theSelect.options.length - 1], "', $txt['pm_msg_label_apply'], '");
-				theSelect.options[theSelect.options.length - 1].disabled = true;
-
-				for (i in toAdd)
-				{
-					if (i != "length")
-						theSelect.options[theSelect.options.length] = new Option(toAdd[i], "add_" + i);
-				}
-			}
-
-			if (toRemove.length != 0)
-			{
-				theSelect.options[theSelect.options.length] = new Option("', $txt['pm_msg_label_remove'], '", "");
-				setInnerHTML(theSelect.options[theSelect.options.length - 1], "', $txt['pm_msg_label_remove'], '");
-				theSelect.options[theSelect.options.length - 1].disabled = true;
-
-				for (i in toRemove)
-				{
-					if (i != "length")
-						theSelect.options[theSelect.options.length] = new Option(toRemove[i], "rem_" + i);
-				}
-			}
-		}
-	// ]]></script>';
-
-	echo '
-<form action="', $scripturl, '?action=pm;sa=pmactions;', $context['display_mode'] == 2 ? 'conversation;' : '', 'f=', $context['folder'], ';start=', $context['start'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', '" method="post" accept-charset="', $context['character_set'], '" name="pmFolder">';
-
-	// If we are not in single display mode show the subjects on the top!
-	if ($context['display_mode'] != 1)
-	{
-		template_subject_list();
-		echo '<br />';
-	}
-
-	// Got some messages to display?
-	if ($context['get_pmessage']('message', true))
-	{
-		// Show a few buttons if we are in conversation mode and outputting the first message.
-		if ($context['display_mode'] == 2)
-		{
-			// Build the normal button array.
-			$conversation_buttons = array(
-				'reply' => array('text' => 'reply_to_all', 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=pm;sa=send;f=' . $context['folder'] . ($context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '') . ';pmsg=' . $context['current_pm'] . ';u=all'),
-				'delete' => array('text' => 'delete_conversation', 'image' => 'delete.gif', 'lang' => true, 'url' => $scripturl . '?action=pm;sa=pmactions;pm_actions[' . $context['current_pm'] . ']=delete;conversation;f=' . $context['folder'] . ';start=' . $context['start'] . ($context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '') . ';' . $context['session_var'] . '=' . $context['session_id'], 'custom' => 'onclick="return confirm(\'' . addslashes($txt['remove_message']) . '?\');"'),
-			);
-
-			// Show the conversation buttons.
-			echo '
-				<div class="modbuttons_top margintop flow_hidden">';
-
-			template_button_strip($conversation_buttons, 'right');
-
-			echo '
-				</div>';
-		}
-
-	echo '
-	<div class="tborder" style="padding: 1px">';
-
-		// Show the helpful titlebar - generally.
-		if ($context['display_mode'] != 1)
-			echo '
-		<div id="forumposts">
-			<h3 class="catbg3">
-				<span>', $txt['author'], '</span>
-				<span id="top_subject">', $txt[$context['display_mode'] == 0 ? 'messages' : 'conversation'], '</span>
-			</h3>
-		</div>';
-
-		// Cache some handy buttons.
-		$quote_button = create_button('quote.gif', 'reply_quote', 'quote', 'align="middle"');
-		$reply_button = create_button('im_reply.gif', 'reply', 'reply', 'align="middle"');
-		$reply_all_button = create_button('im_reply_all.gif', 'reply_to_all', 'reply_to_all', 'align="middle"');
-		$forward_button = create_button('quote.gif', 'reply_quote', 'reply_quote', 'align="middle"');
-		$delete_button = create_button('delete.gif', 'remove_message', 'remove', 'align="middle"');
-
-		while ($message = $context['get_pmessage']('message'))
-		{
-			$is_first_post = !isset($is_first_post) ? true : false;
-
-			// Show information about the poster of this message.
-			echo '
-		<div class="bordercolor" id="msg', $message['id'], '">
-			<div class="clearfix ', !$is_first_post ? 'topborder ' : '', ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2'), ' largepadding">
-				<div class="floatleft poster">
-					<h4>', $message['member']['link'], '</h4>
-					<ul class="reset smalltext" id="msg_', $message['id'], '_extra_info">';
-
-		// Show the member's custom title, if they have one.
-		if (isset($message['member']['title']) && $message['member']['title'] != '')
-			echo '
-						<li>', $message['member']['title'], '</li>';
-
-		// Show the member's primary group (like 'Administrator') if they have one.
-		if (isset($message['member']['group']) && $message['member']['group'] != '')
-			echo '
-						<li>', $message['member']['group'], '</li>';
-
-		// Don't show these things for guests.
-		if (!$message['member']['is_guest'])
-		{
-			// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
-			if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
-				echo '
-						<li>', $message['member']['post_group'], '</li>';
-			echo '
-						<li>', $message['member']['group_stars'], '</li>';
-
-			// Is karma display enabled?  Total or +/-?
-			if ($modSettings['karmaMode'] == '1')
-				echo '
-						<li class="margintop">', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '</li>';
-			elseif ($modSettings['karmaMode'] == '2')
-				echo '
-						<li class="margintop">', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '</li>';
-
-			// Is this user allowed to modify this member's karma?
-			if ($message['member']['karma']['allow'])
-				echo '
-						<li>
-							<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';f=', $context['folder'], ';start=', $context['start'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pm=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
-							<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';f=', $context['folder'], ';start=', $context['start'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pm=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a>
-						</li>';
-
-			// Show online and offline buttons?
-			if (!empty($modSettings['onlineEnable']))
-				echo '
-						<li>', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '</li>';
-
-			// Show the member's gender icon?
-			if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
-				echo '
-						<li>', $txt['gender'], ': ', $message['member']['gender']['image'], '</li>';
-
-			// Show how many posts they have made.
-			if (!isset($context['disabled_fields']['posts']))
-				echo '
-						<li>', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';
-
-			// Any custom fields for standard placement?
-			if (!empty($message['member']['custom_fields']))
-			{
-				foreach ($message['member']['custom_fields'] as $custom)
-					if (empty($custom['placement']) && !empty($custom['value']))
-						echo '
-						<li>', $custom['title'], ': ', $custom['value'], '</li>';
-			}
-
-			// Show avatars, images, etc.?
-			if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
-				echo '
-						<li class="margintop" style="overflow: auto;">', $message['member']['avatar']['image'], '</li>';
-
-			// Show their personal text?
-			if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
-				echo '
-						<li class="margintop">', $message['member']['blurb'], '</li>';
-
-			// Any custom fields to show as icons?
-			if (!empty($message['member']['custom_fields']))
-			{
-				$shown = false;
-				foreach ($message['member']['custom_fields'] as $custom)
-				{
-					if ($custom['placement'] != 1 || empty($custom['value']))
-						continue;
-					if (empty($shown))
-					{
-						$shown = true;
-						echo '
-						<li class="margintop">
-							<ul class="reset nolist">';
-					}
-					echo '
-								<li>', $custom['value'], '</li>';
-				}
-				if ($shown)
-					echo '
-							</ul>
-						</li>';
-			}
-
-			// This shows the popular messaging icons.
-			if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
-				echo '
-						<li class="margintop">
-							<ul class="reset nolist">
-								', !isset($context['disabled_fields']['icq']) && !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
-								', !isset($context['disabled_fields']['msn']) && !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
-								', !isset($context['disabled_fields']['aim']) && !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
-								', !isset($context['disabled_fields']['yim']) && !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
-							</ul>
-						</li>';
-
-			// Show the profile, website, email address, and personal message buttons.
-			if ($settings['show_profile_buttons'])
-			{
-				echo '
-						<li class="margintop">
-							<ul class="reset nolist">';
-				// Don't show the profile button if you're not allowed to view the profile.
-				if ($message['member']['can_view_profile'])
-					echo '
-								<li><a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt['view_profile'] . '" title="' . $txt['view_profile'] . '" border="0" />' : $txt['view_profile']), '</a></li>';
-
-				// Don't show an icon if they haven't specified a website.
-				if ($message['member']['website']['url'] != '' && !isset($context['disabled_fields']['website']))
-					echo '
-								<li><a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank" class="new_win">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $message['member']['website']['title'] . '" border="0" />' : $txt['www']), '</a></li>';
-
-				// Don't show the email address if they want it hidden.
-				if (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
-					echo '
-								<li><a href="', $scripturl, '?action=emailuser;sa=email;uid=', $message['member']['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';
-
-				// Since we know this person isn't a guest, you *can* message them.
-				if ($context['can_send_pm'])
-					echo '
-								<li><a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" border="0" />' : ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';
-
-				echo '
-							</ul>
-						</li>';
-			}
-
-			// Are we showing the warning status?
-			if ($message['member']['can_see_warning'])
-				echo '
-						<li>', $context['can_issue_warning'] ? '<a href="' . $scripturl . '?action=profile;area=issuewarning;u=' . $message['member']['id'] . '">' : '', '<img src="', $settings['images_url'], '/warning_', $message['member']['warning_status'], '.gif" alt="', $txt['user_warn_' . $message['member']['warning_status']], '" />', $context['can_issue_warning'] ? '</a>' : '', '<span class="warn_', $message['member']['warning_status'], '">', $txt['warn_' . $message['member']['warning_status']], '</span></li>';
-		}
-
-		// Done with the information about the poster... on to the post itself.
-		echo '
-					</ul>
-				</div>
-				<div class="postarea">
-					<div class="flow_hidden">
-						<div class="keyinfo">
-							<h5>
-								<strong>', $message['subject'], '</strong>
-							</h5>';
-
-			// Show who the message was sent to.
-			echo '
-							<div class="smalltext">
-								&#171; <strong> ', $txt['sent_to'], ':</strong> ';
-
-			// People it was sent directly to....
-			if (!empty($message['recipients']['to']))
-				echo implode(', ', $message['recipients']['to']);
-			// Otherwise, we're just going to say "some people"...
-			elseif ($context['folder'] != 'sent')
-				echo '(', $txt['pm_undisclosed_recipients'], ')';
-
-			echo '
-								<strong> ', $txt['on'], ':</strong> ', $message['time'], ' &#187;
-							</div>';
-
-			// If we're in the sent items, show who it was sent to besides the "To:" people.
-			if (!empty($message['recipients']['bcc']))
-				echo '
-							<div class="smalltext">&#171; <strong> ', $txt['pm_bcc'], ':</strong> ', implode(', ', $message['recipients']['bcc']), ' &#187;</div>';
-
-			if (!empty($message['is_replied_to']))
-				echo '
-							<div class="smalltext">&#171; ', $txt['pm_is_replied_to'], ' &#187;</div>';
-
-			echo '
-						</div>
-						<ul class="reset smalltext postingbuttons">';
-
-			// Show reply buttons if you have the permission to send PMs.
-			if ($context['can_send_pm'])
-			{
-				// You can't really reply if the member is gone.
-				if (!$message['member']['is_guest'])
-				{
-					// Were than more than one recipient you can reply to? (Only shown when not in conversation mode.)
-					if ($message['number_recipients'] > 1 && $context['display_mode'] != 2)
-						echo '
-							<li><a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote;u=all">', $reply_all_button, '</a></li>';
-
-					echo '
-							<li><a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';u=', $message['member']['id'], '">', $reply_button, '</a></li>
-							<li><a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote', $context['folder'] == 'sent' ? '' : ';u=' . $message['member']['id'], '">', $quote_button, '</a></li>';
-				}
-				// This is for "forwarding" - even if the member is gone.
-				else
-					echo '
-							<li><a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote">', $forward_button, '</a></li>';
-			}
-			echo '
-							<li><a href="', $scripturl, '?action=pm;sa=pmactions;pm_actions[', $message['id'], ']=delete;f=', $context['folder'], ';start=', $context['start'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', addslashes($txt['remove_message']), '?\');">', $delete_button, '</a></li>';
-
-			if (empty($context['display_mode']))
-				echo '
-							<li><input style="vertical-align: middle;" type="checkbox" name="pms[]" id="deletedisplay', $message['id'], '" value="', $message['id'], '" onclick="document.getElementById(\'deletelisting', $message['id'], '\').checked = this.checked;" class="input_check" /></li>';
-
-			echo '
-						</ul>
-					</div>
-					<div class="personalmessage">
-						<hr width="100%" size="1" class="hrcolor" />
-						', $message['body'], '
-					</div>';
-
-			if (!empty($modSettings['enableReportPM']) && $context['folder'] != 'sent')
-				echo '
-					<div class="reportlinks smalltext righttext">
-						<a href="', $scripturl, '?action=pm;sa=report;l=', $context['current_label_id'], ';pmsg=', $message['id'], '">', $txt['pm_report_to_admin'], '</a>
-					</div>';
-
-			// Are there any custom profile fields for above the signature?
-			if (!empty($message['member']['custom_fields']))
-			{
-				$shown = false;
-				foreach ($message['member']['custom_fields'] as $custom)
-				{
-					if ($custom['placement'] != 2 || empty($custom['value']))
-						continue;
-					if (!$shown)
-					{
-						$shown = true;
-						echo '
-						<div class="custom_fields_above_signature">
-							<ul class="reset nolist>';
-					}
-					echo '
-								<li>', $custom['value'], '</li>';
-				}
-				if ($shown)
-					echo '
-							</ul>
-						</div>';
-			}
-
-			// Show the member's signature?
-			if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled'])
-				echo '
-						<div class="signature">', $message['member']['signature'], '</div>';
-
-			// Add an extra line at the bottom if we have labels enabled.
-			if ($context['folder'] != 'sent' && !empty($context['currently_using_labels']) && $context['display_mode'] != 2)
-			{
-				echo '
-						<div class="labels righttext">';
-
-				// Add the label drop down box.
-				if (!empty($context['currently_using_labels']))
-				{
-					echo '
-							<select name="pm_actions[', $message['id'], ']" onchange="if (this.options[this.selectedIndex].value) form.submit();">
-								<option value="">', $txt['pm_msg_label_title'], ':</option>
-							<option value="" disabled="disabled">---------------</option>';
-
-					// Are there any labels which can be added to this?
-					if (!$message['fully_labeled'])
-					{
-						echo '
-							<option value="" disabled="disabled">', $txt['pm_msg_label_apply'], ':</option>';
-
-						foreach ($context['labels'] as $label)
-						{
-							if (!isset($message['labels'][$label['id']]))
-								echo '
-							<option value="', $label['id'], '">&nbsp;', $label['name'], '</option>';
-						}
-					}
-
-					// ... and are there any that can be removed?
-					if (!empty($message['labels']) && (count($message['labels']) > 1 || !isset($message['labels'][-1])))
-					{
-						echo '
-								<option value="" disabled="disabled">', $txt['pm_msg_label_remove'], ':</option>';
-						foreach ($message['labels'] as $label)
-							echo '
-								<option value="', $label['id'], '">&nbsp;', $label['name'], '</option>';
-					}
-					echo '
-							</select>
-							<noscript>
-								<input type="submit" value="', $txt['pm_apply'], '" class="button_submit" />
-							</noscript>';
-				}
-
-				echo '
-						</div>';
-			}
-
-			echo '
-					</div>
-				</div>
-			</div>';
-		}
-
-		echo '
-		</div>';
-
-		if (empty($context['display_mode']))
-			echo '
-		<div class="catbg flow_hidden" style="padding: 1px; margin-top: 1ex;">
-			<div class="floatleft pagesection">', $txt['pages'], ': ', $context['page_index'], '</div>
-			<div class="floatright"><input type="submit" name="del_selected" value="', $txt['quickmod_delete_selected'], '" style="font-weight: normal;" onclick="if (!confirm(\'', $txt['delete_selected_confirm'], '\')) return false;" class="button_submit" /></div>
-		</div>';
-
-		// Show a few buttons if we are in conversation mode and outputting the first message.
-		elseif ($context['display_mode'] == 2 && isset($conversation_buttons))
-			template_button_strip($conversation_buttons);
-
-		echo '
-		<br />';
-	}
-
-	// Individual messages = buttom list!
-	if ($context['display_mode'] == 1)
-	{
-		template_subject_list();
-		echo '<br />';
-	}
-
-	echo '
-	<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
-</form>';
-}
-
-// Just list all the personal message subjects - to make templates easier.
-function template_subject_list()
-{
-	global $context, $options, $settings, $modSettings, $txt, $scripturl;
-
-	echo '
-		<table width="100%" class="table_grid">
-			<tr class="titlebg">
-				<td align="center" width="2%"><a href="', $scripturl, '?action=pm;view;f=', $context['folder'], ';start=', $context['start'], ';sort=', $context['sort_by'], ($context['sort_direction'] == 'up' ? '' : ';desc'), ($context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : ''), '"><img src="', $settings['images_url'], '/im_switch.gif" alt="', $txt['pm_change_view'], '" title="', $txt['pm_change_view'], '" width="16" height="16" /></a></td>
-				<td style="width: 32ex;"><a href="', $scripturl, '?action=pm;f=', $context['folder'], ';start=', $context['start'], ';sort=date', $context['sort_by'] == 'date' && $context['sort_direction'] == 'up' ? ';desc' : '', $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', '">', $txt['date'], $context['sort_by'] == 'date' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>
-				<td width="46%"><a href="', $scripturl, '?action=pm;f=', $context['folder'], ';start=', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>
-				<td><a href="', $scripturl, '?action=pm;f=', $context['folder'], ';start=', $context['start'], ';sort=name', $context['sort_by'] == 'name' && $context['sort_direction'] == 'up' ? ';desc' : '', $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', '">', ($context['from_or_to'] == 'from' ? $txt['from'] : $txt['to']), $context['sort_by'] == 'name' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>
-				<td align="center" width="24"><input type="checkbox" onclick="invertAll(this, this.form);" class="input_check" /></td>
-			</tr>';
-
-	if (!$context['show_delete'])
-		echo '
-			<tr>
-				<td class="windowbg" colspan="5">', $txt['msg_alert_none'], '</td>
-			</tr>';
-
-	$next_alternate = 0;
-	while ($message = $context['get_pmessage']('subject'))
-	{
-		echo '
-			<tr class="', $next_alternate ? 'windowbg' : 'windowbg2', '">
-				<td align="center" width="4%">
-				<script type="text/javascript"><!-- // --><![CDATA[
-					currentLabels[', $message['id'], '] = {';
-
-		if (!empty($message['labels']))
-		{
-			$first = true;
-			foreach ($message['labels'] as $label)
-			{
-				echo $first ? '' : ',', '
-					"', $label['id'], '": "', $label['name'], '"';
-				$first = false;
-			}
-		}
-
-		echo '
-					};
-				// ]]></script>
-					', $message['is_replied_to'] ? '<img src="' . $settings['images_url'] . '/icons/pm_replied.gif" style="margin-right: 4px;" alt="' . $txt['pm_replied'] . '" />' : '<img src="' . $settings['images_url'] . '/icons/pm_read.gif" style="margin-right: 4px;" alt="' . $txt['pm_read'] . '" />', '</td>
-				<td>', $message['time'], '</td>
-				<td>', ($context['display_mode'] != 0 && $context['current_pm'] == $message['id'] ? '<img src="' . $settings['images_url'] . '/selected.gif" alt="*" />' : ''), '<a href="', ($context['display_mode'] == 0 || $context['current_pm'] == $message['id'] ? '' : ($scripturl . '?action=pm;pmid=' . $message['id'] . ';kstart;f=' . $context['folder'] . ';start=' . $context['start'] . ';sort=' . $context['sort_by'] . ($context['sort_direction'] == 'up' ? ';' : ';desc') . ($context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : ''))), '#msg', $message['id'], '">', $message['subject'], '</a>', $message['is_unread'] ? '&nbsp;<span class="new_posts">' . $txt['new'] . '</span>' : '', '</td>
-				<td>', ($context['from_or_to'] == 'from' ? $message['member']['link'] : (empty($message['recipients']['to']) ? '' : implode(', ', $message['recipients']['to']))), '</td>
-				<td align="center" width="4%"><input type="checkbox" name="pms[]" id="deletelisting', $message['id'], '" value="', $message['id'], '"', $message['is_selected'] ? ' checked="checked"' : '', ' onclick="if (document.getElementById(\'deletedisplay', $message['id'], '\')) document.getElementById(\'deletedisplay', $message['id'], '\').checked = this.checked;" class="input_check" /></td>
-			</tr>';
-			$next_alternate = !$next_alternate;
-	}
-
-	echo '
-		</table>
-		<div class="catbg flow_hidden smallpadding">
-			<div class="floatleft pagesection">', $txt['pages'], ': ', $context['page_index'], '</div>
-			<div class="floatright">&nbsp;';
-
-	if ($context['show_delete'])
-	{
-		if (!empty($context['currently_using_labels']) && $context['folder'] != 'sent')
-		{
-			echo '
-				<select name="pm_action" onchange="if (this.options[this.selectedIndex].value) this.form.submit();" onfocus="loadLabelChoices();">
-					<option value="">', $txt['pm_sel_label_title'], ':</option>
-					<option value="" disabled="disabled">---------------</option>';
-
-			echo '
-									<option value="" disabled="disabled">', $txt['pm_msg_label_apply'], ':</option>';
-			foreach ($context['labels'] as $label)
-				if ($label['id'] != $context['current_label_id'])
-					echo '
-					<option value="add_', $label['id'], '">&nbsp;', $label['name'], '</option>';
-			echo '
-					<option value="" disabled="disabled">', $txt['pm_msg_label_remove'], ':</option>';
-			foreach ($context['labels'] as $label)
-				echo '
-					<option value="rem_', $label['id'], '">&nbsp;', $label['name'], '</option>';
-			echo '
-				</select>
-				<noscript>
-					<input type="submit" value="', $txt['pm_apply'], '" class="button_submit" />
-				</noscript>';
-		}
-
-		echo '
-				<input type="submit" name="del_selected" value="', $txt['quickmod_delete_selected'], '" onclick="if (!confirm(\'', $txt['delete_selected_confirm'], '\')) return false;" class="button_submit" />';
-	}
-
-	echo '
-			</div>
-		</div>';
-}
-
-function template_search()
-{
-	global $context, $settings, $options, $scripturl, $modSettings, $txt;
-
-	echo '
-	<script type="text/javascript"><!-- // --><![CDATA[
-		function expandCollapseLabels()
-		{
-			var current = document.getElementById("searchLabelsExpand").style.display != "none";
-
-			document.getElementById("searchLabelsExpand").style.display = current ? "none" : "";
-			document.getElementById("expandLabelsIcon").src = smf_images_url + (current ? "/expand.gif" : "/collapse.gif");
-		}
-	// ]]></script>
-	<form action="', $scripturl, '?action=pm;sa=search2" method="post" accept-charset="', $context['character_set'], '" name="searchform" id="searchform">
-		<div class="cat_bar">
-			<h3 class="catbg">', $txt['pm_search_title'], '</h3>
-		</div>';
-
-	if (!empty($context['search_errors']))
-	{
-		echo '
-		<div class="errorbox">
-			', implode('<br />', $context['search_errors']['messages']), '
-		</div>';
-	}
-
-	if ($context['simple_search'])
-	{
-		echo '
-		<fieldset id="simple_search">
-			<span class="upperframe"><span></span></span>
-			<div class="roundframe">
-				<div id="search_term_input">
-					<strong>', $txt['pm_search_text'], ':</strong>
-					<input type="text" name="search"', !empty($context['search_params']['search']) ? ' value="' . $context['search_params']['search'] . '"' : '', ' size="40" class="input_text" />
-					<input type="submit" name="pm_search" value="', $txt['pm_search_go'], '" class="button_submit" />
-				</div>
-				<a href="', $scripturl, '?action=pm;sa=search;advanced" onclick="this.href += \';search=\' + escape(document.forms.searchform.search.value);">', $txt['pm_search_advanced'], '</a>
-				<input type="hidden" name="advanced" value="0" />
-			</div>
-			<span class="lowerframe"><span></span></span>
-		</fieldset>';
-	}
-
-	// Advanced search!
-	else
-	{
-		echo '
-		<fieldset id="advanced_search">
-			<span class="upperframe"><span></span></span>
-			<div class="roundframe">
-				<input type="hidden" name="advanced" value="1" />
-				<span class="enhanced">
-					<strong>', $txt['pm_search_text'], ':</strong>
-					<input type="text" name="search"', !empty($context['search_params']['search']) ? ' value="' . $context['search_params']['search'] . '"' : '', ' size="40" class="input_text" />
-					<script type="text/javascript"><!-- // --><![CDATA[
-						function initSearch()
-						{
-							if (document.forms.searchform.search.value.indexOf("%u") != -1)
-								document.forms.searchform.search.value = unescape(document.forms.searchform.search.value);
-						}
-						createEventListener(window);
-						window.addEventListener("load", initSearch, false);
-					// ]]></script>
-					<select name="searchtype">
-						<option value="1"', empty($context['search_params']['searchtype']) ? ' selected="selected"' : '', '>', $txt['pm_search_match_all'], '</option>
-						<option value="2"', !empty($context['search_params']['searchtype']) ? ' selected="selected"' : '', '>', $txt['pm_search_match_any'], '</option>
-					</select>
-				</span>
-				<dl id="search_options">
-					<dt>', $txt['pm_search_user'], ':</dt>
-					<dd><input type="text" name="userspec" value="', empty($context['search_params']['userspec']) ? '*' : $context['search_params']['userspec'], '" size="40" class="input_text" /></dd>
-					<dt>', $txt['pm_search_order'], ':</dt>
-					<dd>
-						<select name="sort">
-							<option value="relevance|desc">', $txt['pm_search_orderby_relevant_first'], '</option>
-							<option value="id_pm|desc">', $txt['pm_search_orderby_recent_first'], '</option>
-							<option value="id_pm|asc">', $txt['pm_search_orderby_old_first'], '</option>
-						</select>
-					</dd>
-					<dt class="options">', $txt['pm_search_options'], ':</dt>
-					<dd class="options">
-						<label for="show_complete"><input type="checkbox" name="show_complete" id="show_complete" value="1"', !empty($context['search_params']['show_complete']) ? ' checked="checked"' : '', ' class="input_check" /> ', $txt['pm_search_show_complete'], '</label><br />
-						<label for="subject_only"><input type="checkbox" name="subject_only" id="subject_only" value="1"', !empty($context['search_params']['subject_only']) ? ' checked="checked"' : '', ' class="input_check" /> ', $txt['pm_search_subject_only'], '</label>
-					</dd>
-					<dt class="between">', $txt['pm_search_post_age'], ':</dt>
-					<dd>', $txt['pm_search_between'], ' <input type="text" name="minage" value="', empty($context['search_params']['minage']) ? '0' : $context['search_params']['minage'], '" size="5" maxlength="5" class="input_text" />&nbsp;', $txt['pm_search_between_and'], '&nbsp;<input type="text" name="maxage" value="', empty($context['search_params']['maxage']) ? '9999' : $context['search_params']['maxage'], '" size="5" maxlength="5" class="input_text" /> ', $txt['pm_search_between_days'], '</dd>
-				</dl>
-			</div>
-			<span class="lowerframe"><span></span></span>
-		</fieldset>';
-
-		// Do we have some labels setup? If so offer to search by them!
-		if ($context['currently_using_labels'])
-		{
-			echo '
-		<fieldset class="labels">
-			<span class="upperframe"><span></span></span>
-			<div class="roundframe">
-				<div class="title_bar">
-					<h4 class="titlebg">
-						<span class="ie6_header floatleft"><a href="javascript:void(0);" onclick="expandCollapseLabels(); return false;"><img src="', $settings['images_url'], '/expand.gif" id="expandLabelsIcon" alt="" /></a> <a href="javascript:void(0);" onclick="expandCollapseLabels(); return false;"><strong>', $txt['pm_search_choose_label'], '</strong></a></span>
-					</h4>
-				</div>
-				<ul id="searchLabelsExpand" class="reset" ', $context['check_all'] ? 'style="display: none;"' : '', '>';
-
-			foreach ($context['search_labels'] as $label)
-				echo '
-					<li>
-						<label for="searchlabel_', $label['id'], '"><input type="checkbox" id="searchlabel_', $label['id'], '" name="searchlabel[', $label['id'], ']" value="', $label['id'], '" ', $label['checked'] ? 'checked="checked"' : '', ' class="input_check" />
-						', $label['name'], '</label>
-					</li>';
-
-			echo '
-				</ul>
-				<p>
-					<input type="checkbox" name="all" id="check_all" value="" ', $context['check_all'] ? 'checked="checked"' : '', ' onclick="invertAll(this, this.form, \'searchlabel\');" class="input_check" /><em> <label for="check_all">', $txt['check_all'], '</label></em>
-				</p>
-			</div>
-			<span class="lowerframe"><span></span></span>
-		</fieldset>';
-		}
-
-		echo '
-		<div class="righttext padding">
-			<input type="submit" name="pm_search" value="', $txt['pm_search_go'], '" class="button_submit" />
-		</div>';
-	}
-
-	echo '
-		</table>
-	</form>';
-}
-
-function template_search_results()
-{
-	global $context, $settings, $options, $scripturl, $modSettings, $txt;
-
-	// This splits broadly into two types of template... complete results first.
-	if (!empty($context['search_params']['show_complete']))
-	{
-		echo '
-		<table border="0" width="100%" align="center" cellpadding="3" cellspacing="1" class="bordercolor">
-			<tr class="titlebg">
-				<td colspan="3">', $txt['pm_search_results'], '</td>
-			</tr>
-			<tr class="catbg" height="30">
-				<td colspan="3"><strong>', $txt['pages'], ':</strong> ', $context['page_index'], '</td>
-			</tr>
-		</table>';
-	}
-	else
-	{
-		echo '
-		<table border="0" width="100%" align="center" cellpadding="3" cellspacing="1" class="bordercolor">
-			<tr class="titlebg">
-				<td colspan="3">', $txt['pm_search_results'], '</td>
-			</tr>
-			<tr class="catbg">
-				<td colspan="3"><strong>', $txt['pages'], ':</strong> ', $context['page_index'], '</td>
-			</tr>
-			<tr class="titlebg">
-				<td width="30%">', $txt['date'], '</td>
-				<td width="50%">', $txt['subject'], '</td>
-				<td width="20%">', $txt['from'], '</td>
-			</tr>';
-	}
-
-	$alternate = true;
-	// Print each message out...
-	foreach ($context['personal_messages'] as $message)
-	{
-		// We showing it all?
-		if (!empty($context['search_params']['show_complete']))
-		{
-			// @todo This still needs to be made pretty.
-			echo '
-		<br />
-		<table width="100%" align="center" cellpadding="3" cellspacing="1" border="0" class="bordercolor">
-			<tr class="titlebg">
-				<td align="left">
-					<div class="floatleft">
-					', $message['counter'], '&nbsp;&nbsp;<a href="', $message['href'], '">', $message['subject'], '</a>
-					</div>
-					<div class="floatright">
-						', $txt['search_on'], ': ', $message['time'], '
-					</div>
-				</td>
-			</tr>
-			<tr class="catbg">
-				<td>', $txt['from'], ': ', $message['member']['link'], ', ', $txt['to'], ': ';
-
-			// Show the recipients.
-			// @todo This doesn't deal with the sent item searching quite right for bcc.
-			if (!empty($message['recipients']['to']))
-				echo implode(', ', $message['recipients']['to']);
-			// Otherwise, we're just going to say "some people"...
-			elseif ($context['folder'] != 'sent')
-				echo '(', $txt['pm_undisclosed_recipients'], ')';
-
-			echo '
-				</td>
-			</tr>
-			<tr class="windowbg2" valign="top">
-				<td>', $message['body'], '</td>
-			</tr>
-			<tr class="windowbg">
-				<td align="right" class="middletext">';
-
-			if ($context['can_send_pm'])
-			{
-				$quote_button = create_button('quote.gif', 'reply_quote', 'reply_quote', 'align="middle"');
-				$reply_button = create_button('im_reply.gif', 'reply', 'reply', 'align="middle"');
-
-				// You can only reply if they are not a guest...
-				if (!$message['member']['is_guest'])
-					echo '
-							<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'sent' ? '' : $message['member']['id'], '">', $quote_button , '</a>', $context['menu_separator'], '
-							<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';u=', $message['member']['id'], '">', $reply_button , '</a> ', $context['menu_separator'];
-				// This is for "forwarding" - even if the member is gone.
-				else
-					echo '
-							<a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote">', $quote_button , '</a>', $context['menu_separator'];
-			}
-
-			echo '
-				</td>
-			</tr>
-		</table>';
-		}
-		// Otherwise just a simple list!
-		else
-		{
-			// @todo No context at all of the search?
-			echo '
-			<tr class="', $alternate ? 'windowbg' : 'windowbg2', '" valign="top">
-				<td>', $message['time'], '</td>
-				<td>', $message['link'], '</td>
-				<td>', $message['member']['link'], '</td>
-			</tr>';
-		}
-
-		$alternate = !$alternate;
-	}
-
-	// Finish off the page...
-	if (!empty($context['search_params']['show_complete']))
-	{
-		// No results?
-		if (empty($context['personal_messages']))
-			echo '
-		<table width="100%" align="center" cellpadding="3" cellspacing="0" border="0" class="tborder" style="border-width: 0 1px 1px 1px;">
-			<tr class="windowbg">
-				<td align="center">', $txt['pm_search_none_found'], '</td>
-			</tr>
-		</table>';
-		else
-			echo '
-		<br />';
-
-		echo '
-		<table width="100%" align="center" cellpadding="3" cellspacing="0" border="0" class="tborder" style="border-width: 0 1px 1px 1px;">
-			<tr class="catbg" height="30">
-				<td colspan="3"><strong>', $txt['pages'], ':</strong> ', $context['page_index'], '</td>
-			</tr>
-		</table>';
-	}
-	else
-	{
-		if (empty($context['personal_messages']))
-			echo '
-			<tr class="windowbg2">
-				<td colspan="3" align="center">', $txt['pm_search_none_found'], '</td>
-			</tr>';
-
-		echo '
-			<tr class="catbg">
-				<td colspan="3"><strong>', $txt['pages'], ':</strong> ', $context['page_index'], '</td>
-			</tr>
-		</table>';
-	}
-}
-
-function template_send()
-{
-	global $context, $settings, $options, $scripturl, $modSettings, $txt;
-
-	// Show which messages were sent successfully and which failed.
-	if (!empty($context['send_log']))
-	{
-		echo '
-			<div class="cat_bar">
-				<h3 class="catbg">', $txt['pm_send_report'], '</h3>
-			</div>
-			<div class="windowbg">
-			<span class="topslice"><span></span></span>
-				<div class="content">';
-				if (!empty($context['send_log']['sent']))
-					foreach ($context['send_log']['sent'] as $log_entry)
-						echo '<span class="error">', $log_entry, '</span><br />';
-				if (!empty($context['send_log']['failed']))
-					foreach ($context['send_log']['failed'] as $log_entry)
-						echo '<span class="error">', $log_entry, '</span><br />';
-				echo '
-				</div>
-			<span class="botslice"><span></span></span>
-			</div>
-			<br />';
-	}
-
-	// Show the preview of the personal message.
-	if (isset($context['preview_message']))
-	echo '
-		<div class="cat_bar">
-			<h3 class="catbg">', $context['preview_subject'], '</h3>
-		</div>
-		<div class="windowbg">
-		<span class="topslice"><span></span></span>
-			<div class="content">
-				', $context['preview_message'], '
-			</div>
-		<span class="botslice"><span></span></span>
-		</div>
-		<br />';
-
-	// Main message editing box.
-	echo '
-		<div class="cat_bar">
-			<h3 class="catbg">
-					<span class="ie6_header floatleft"><img class="icon" src="', $settings['images_url'], '/icons/im_newmsg.gif" alt="', $txt['new_message'], '" title="', $txt['new_message'], '" />&nbsp;', $txt['new_message'], '</span>
-			</h3>
-		</div>';
-
-	echo '
-	<form action="', $scripturl, '?action=pm;sa=send2" method="post" accept-charset="', $context['character_set'], '" name="postmodify" id="postmodify" onsubmit="submitonce(this);smc_saveEntities(\'postmodify\', [\'subject\', \'message\']);">
-		<div>
-			<span class="upperframe"><span></span></span>
-			<div class="roundframe">';
-
-	// If there were errors for sending the PM, show them.
-	if (!empty($context['post_error']['messages']))
-	{
-		echo '
-				<div class="errorbox">
-					<strong>', $txt['error_while_submitting'], '</strong>
-					<ul>';
-
-		foreach ($context['post_error']['messages'] as $error)
-			echo '
-						<li class="error">', $error, '</li>';
-
-		echo '
-					</ul>
-				</div>';
-	}
-
-	echo '
-				<dl id="post_header">';
-
-	// To and bcc. Include a button to search for members.
-	echo '
-					<dt>
-						<span', (isset($context['post_error']['no_to']) || isset($context['post_error']['bad_to']) ? ' class="error"' : ''), '>', $txt['pm_to'], ':</span>
-					</dt>';
-
-	// Autosuggest will be added by the JavaScript later on.
-	echo '
-					<dd>
-						<input type="text" name="to" id="to_control" value="', $context['to_value'], '" tabindex="', $context['tabindex']++, '" size="40" style="width: 130px;" class="input_text" />';
-
-	// A link to add BCC, only visible with JavaScript enabled.
-	echo '
-						<span class="smalltext" id="bcc_link_container" style="display: none;"></span>';
-
-	// A div that'll contain the items found by the autosuggest.
-	echo '
-						<div id="to_item_list_container"></div>';
-
-	echo '
-					</dd>';
-
-	// This BCC row will be hidden by default if JavaScript is enabled.
-	echo '
-					<dt id="bcc_div">
-						<span', (isset($context['post_error']['no_to']) || isset($context['post_error']['bad_bcc']) ? ' class="error"' : ''), '>', $txt['pm_bcc'], ':</span>
-					</dt>
-					<dd id="bcc_div2">
-						<input type="text" name="bcc" id="bcc_control" value="', $context['bcc_value'], '" tabindex="', $context['tabindex']++, '" size="40" style="width: 130px;" class="input_text" />
-						<div id="bcc_item_list_container"></div>
-					</dd>';
-
-	// The subject of the PM.
-	echo '
-					<dt>
-						<span', (isset($context['post_error']['no_subject']) ? ' class="error"' : ''), '>', $txt['subject'], ':</span>
-					</dt>
-					<dd>
-						<input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="40" maxlength="50" />
-					</dd>
-				</dl>';
-
-	// Showing BBC?
-	if ($context['show_bbc'])
-	{
-		echo '
-				<div id="bbcBox_message"></div>';
-	}
-
-	// What about smileys?
-	if (!empty($context['smileys']['postform']) || !empty($context['smileys']['popup']))
-		echo '
-				<div id="smileyBox_message"></div>';
-
-	// Show BBC buttons, smileys and textbox.
-	echo '
-				', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message');
-
-	// Require an image to be typed to save spamming?
-	if ($context['require_verification'])
-	{
-		echo '
-				<div class="post_verification">
-					<strong>', $txt['pm_visual_verification_label'], ':</strong>
-					', template_control_verification($context['visual_verification_id'], 'all'), '
-				</div>';
-	}
-
-	// Send, Preview, spellcheck buttons.
-	echo '
-				<p><label for="outbox"><input type="checkbox" name="outbox" id="outbox" value="1" tabindex="', $context['tabindex']++, '"', $context['copy_to_outbox'] ? ' checked="checked"' : '', ' class="input_check" /> ', $txt['pm_save_outbox'], '</label></p>
-				<p id="shortcuts" class="smalltext">
-					', isBrowser('is_firefox') ? $txt['shortcuts_firefox'] : $txt['shortcuts'], '
-				</p>
-				<p id="post_confirm_strip" class="righttext">
-					', template_control_richedit_buttons($context['post_box_name']), '
-				</p>
-				<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
-				<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />
-				<input type="hidden" name="replied_to" value="', !empty($context['quoted_message']['id']) ? $context['quoted_message']['id'] : 0, '" />
-				<input type="hidden" name="pm_head" value="', !empty($context['quoted_message']['pm_head']) ? $context['quoted_message']['pm_head'] : 0, '" />
-				<input type="hidden" name="f" value="', isset($context['folder']) ? $context['folder'] : '', '" />
-				<input type="hidden" name="l" value="', isset($context['current_label_id']) ? $context['current_label_id'] : -1, '" />
-			</div>
-			<span class="lowerframe"><span></span></span>
-		</div>
-	</form>';
-
-	// Show the message you're replying to.
-	if ($context['reply'])
-		echo '
-	<br />
-	<br />
-	<div class="cat_bar">
-		<h3 class="catbg">', $txt['subject'], ': ', $context['quoted_message']['subject'], '</h3>
-	</div>
-	<div class="title_bar">
-		<h3 class="titlebg">
-			<span class="floatleft">', $txt['from'], ': ', $context['quoted_message']['member']['name'], '</span>
-			<span class="floatright">', $txt['on'], ': ', $context['quoted_message']['time'], '</span>
-		</h3>
-	</div>
-	<div class="windowbg2">
-		<span class="topslice"><span></span></span>
-		<div class="content">
-			', $context['quoted_message']['body'], '
-		</div>
-		<span class="botslice"><span></span></span>
-	</div>';
-
-	echo '
-		<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/PersonalMessage.js?fin20"></script>
-		<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/suggest.js?fin20"></script>
-		<script type="text/javascript"><!-- // --><![CDATA[
-			var oPersonalMessageSend = new smf_PersonalMessageSend({
-				sSelf: \'oPersonalMessageSend\',
-				sSessionId: \'', $context['session_id'], '\',
-				sSessionVar: \'', $context['session_var'], '\',
-				sTextDeleteItem: \'', $txt['autosuggest_delete_item'], '\',
-				sToControlId: \'to_control\',
-				aToRecipients: [';
-	foreach ($context['recipients']['to'] as $i => $member)
-		echo '
-					{
-						sItemId: ', JavaScriptEscape($member['id']), ',
-						sItemName: ', JavaScriptEscape($member['name']), '
-					}', $i == count($context['recipients']['to']) - 1 ? '' : ',';
-
-	echo '
-				],
-				aBccRecipients: [';
-	foreach ($context['recipients']['bcc'] as $i => $member)
-		echo '
-					{
-						sItemId: ', JavaScriptEscape($member['id']), ',
-						sItemName: ', JavaScriptEscape($member['name']), '
-					}', $i == count($context['recipients']['bcc']) - 1 ? '' : ',';
-
-	echo '
-				],
-				sBccControlId: \'bcc_control\',
-				sBccDivId: \'bcc_div\',
-				sBccDivId2: \'bcc_div2\',
-				sBccLinkId: \'bcc_link\',
-				sBccLinkContainerId: \'bcc_link_container\',
-				bBccShowByDefault: ', empty($context['recipients']['bcc']) && empty($context['bcc_value']) ? 'false' : 'true', ',
-				sShowBccLinkTemplate: ', JavaScriptEscape('
-					<a href="#" id="bcc_link">' . $txt['make_bcc'] . '</a> <a href="' . $scripturl . '?action=helpadmin;help=pm_bcc" onclick="return reqWin(this.href);">(?)</a>'
-				), '
-			});
-		';
-
-	echo '
-		// ]]></script>';
-}
-
-// This template asks the user whether they wish to empty out their folder/messages.
-function template_ask_delete()
-{
-	global $context, $settings, $options, $scripturl, $modSettings, $txt;
-
-	echo '
-		<div class="cat_bar">
-			<h3 class="catbg">', ($context['delete_all'] ? $txt['delete_message'] : $txt['delete_all']), '</h3>
-		</div>
-		<div class="windowbg">
-		<span class="topslice"><span></span></span>
-			<div class="content">
-				<p>', $txt['delete_all_confirm'], '</p><br />
-				<strong><a href="', $scripturl, '?action=pm;sa=removeall2;f=', $context['folder'], ';', $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';', $context['session_var'], '=', $context['session_id'], '">', $txt['yes'], '</a> - <a href="javascript:history.go(-1);">', $txt['no'], '</a></strong>
-			</div>
-		<span class="botslice"><span></span></span>
-		</div>';
-}
-
-// This template asks the user what messages they want to prune.
-function template_prune()
-{
-	global $context, $settings, $options, $scripturl, $txt;
-
-	echo '
-	<form action="', $scripturl, '?action=pm;sa=prune" method="post" accept-charset="', $context['character_set'], '" onsubmit="return confirm(\'', $txt['pm_prune_warning'], '\');">
-		<div class="cat_bar">
-			<h3 class="catbg">', $txt['pm_prune'], '</h3>
-		</div>
-		<div class="windowbg">
-			<span class="topslice"><span></span></span>
-			<div class="content">
-				<p>', $txt['pm_prune_desc1'], ' <input type="text" name="age" size="3" value="14" class="input_text" /> ', $txt['pm_prune_desc2'], '</p>
-				<div class="righttext">
-					<input type="submit" value="', $txt['delete'], '" class="button_submit" />
-				</div>
-			</div>
-			<span class="botslice"><span></span></span>
-		</div>
-		<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
-	</form>';
-}
-
-// Here we allow the user to setup labels, remove labels and change rules for labels (i.e, do quite a bit)
-function template_labels()
-{
-	global $context, $settings, $options, $scripturl, $txt;
-
-	echo '
-	<form action="', $scripturl, '?action=pm;sa=manlabels" method="post" accept-charset="', $context['character_set'], '">
-		<div class="title_bar">
-			<h3 class="titlebg">', $txt['pm_manage_labels'], '</h3>
-		</div>
-		<div class="description">
-			', $txt['pm_labels_desc'], '
-		</div>
-		<table width="100%" class="table_grid">
-		<thead>
-			<tr class="catbg">
-				<th class="smalltext" colspan="2">
-					<div class="floatright centertext" style="width: 4%;"><input type="checkbox" class="input_check" onclick="invertAll(this, this.form);" /></div>
-					', $txt['pm_label_name'], '
-				</th>
-			</tr>
-		</thead>
-		<tbody>';
-	if (count($context['labels']) < 2)
-		echo '
-			<tr class="windowbg2">
-				<td colspan="2" align="center">', $txt['pm_labels_no_exist'], '</td>
-			</tr>';
-	else
-	{
-		$alternate = true;
-		foreach ($context['labels'] as $label)
-		{
-			if ($label['id'] == -1)
-				continue;
-
-				echo '
-			<tr class="', $alternate ? 'windowbg2' : 'windowbg', '">
-				<td>
-					<input type="text" name="label_name[', $label['id'], ']" value="', $label['name'], '" size="30" maxlength="30" class="input_text" />
-				</td>
-				<td width="4%" align="center"><input type="checkbox" class="input_check" name="delete_label[', $label['id'], ']" /></td>
-			</tr>';
-
-			$alternate = !$alternate;
-		}
-	}
-	echo '
-		</tbody>
-		</table>';
-
-	if (!count($context['labels']) < 2)
-		echo '
-		<div class="padding righttext">
-			<input type="submit" name="save" value="', $txt['save'], '" class="button_submit" />
-			<input type="submit" name="delete" value="', $txt['quickmod_delete_selected'], '" onclick="return confirm(\'', $txt['pm_labels_delete'], '\');" class="button_submit" />
-		</div>';
-
-	echo '
-		<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
-	</form>
-	<form action="', $scripturl, '?action=pm;sa=manlabels" method="post" accept-charset="', $context['character_set'], '" style="margin-top: 1ex;">
-		<div class="cat_bar">
-			<h3 class="catbg">', $txt['pm_label_add_new'], '</h3>
-		</div>
-		<div class="windowbg">
-			<span class="topslice"><span></span></span>
-			<div class="content">
-				<dl class="settings">
-					<dt>
-						<strong><label for="add_label">', $txt['pm_label_name'], '</label>:</strong>
-					</dt>
-					<dd>
-						<input type="text" id="add_label" name="label" value="" size="30" maxlength="30" class="input_text" />
-					</dd>
-				</dl>
-				<div class="righttext">
-					<input type="submit" name="add" value="', $txt['pm_label_add_new'], '" class="button_submit" />
-				</div>
-			</div>
-			<span class="botslice"><span></span></span>
-		</div>
-		<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
-	</form>';
-}
-
-// Template for reporting a personal message.
-function template_report_message()
-{
-	global $context, $settings, $options, $txt, $scripturl;
-
-	echo '
-	<form action="', $scripturl, '?action=pm;sa=report;l=', $context['current_label_id'], '" method="post" accept-charset="', $context['character_set'], '">
-		<input type="hidden" name="pmsg" value="', $context['pm_id'], '" />
-		<div class="cat_bar">
-			<h3 class="catbg">', $txt['pm_report_title'], '</h3>
-		</div>
-		<div class="description">
-			', $txt['pm_report_desc'], '
-		</div>
-		<div class="windowbg">
-			<span class="topslice"><span></span></span>
-			<div class="content">
-				<dl class="settings">';
-
-	// If there is more than one admin on the forum, allow the user to choose the one they want to direct to.
-	// @todo Why?
-	if ($context['admin_count'] > 1)
-	{
-		echo '
-					<dt>
-						<strong>', $txt['pm_report_admins'], ':</strong>
-					</dt>
-					<dd>
-						<select name="ID_ADMIN">
-							<option value="0">', $txt['pm_report_all_admins'], '</option>';
-		foreach ($context['admins'] as $id => $name)
-			echo '
-							<option value="', $id, '">', $name, '</option>';
-		echo '
-						</select>
-					</dd>';
-	}
-
-	echo '
-					<dt>
-						<strong>', $txt['pm_report_reason'], ':</strong>
-					</dt>
-					<dd>
-						<textarea name="reason" rows="4" cols="70" style="' . (isBrowser('is_ie8') ? 'width: 635px; max-width: 80%; min-width: 80%' : 'width: 80%') . ';"></textarea>
-					</dd>
-				</dl>
-				<input type="submit" name="report" value="', $txt['pm_report_message'], '" class="button_submit" />
-			</div>
-			<span class="botslice"><span></span></span>
-		</div>
-		<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
-	</form>';
-}
-
-// Little template just to say "Yep, it's been submitted"
-function template_report_message_complete()
-{
-	global $context, $settings, $options, $txt, $scripturl;
-
-	echo '
-		<div class="cat_bar">
-			<h3 class="catbg">', $txt['pm_report_title'], '</h3>
-		</div>
-		<div class="windowbg">
-			<span class="topslice"><span></span></span>
-			<div class="content">
-				<p>', $txt['pm_report_done'], '</p>
-				<a href="', $scripturl, '?action=pm;l=', $context['current_label_id'], '">', $txt['pm_report_return'], '</a>
-			</div>
-			<span class="botslice"><span></span></span>
-		</div>';
-}
-
-// Manage rules.
-function template_rules()
-{
-	global $context, $settings, $options, $txt, $scripturl;
-
-	echo '
-	<form action="', $scripturl, '?action=pm;sa=manrules" method="post" accept-charset="', $context['character_set'], '" name="manRules">
-		<div class="title_bar">
-			<h3 class="titlebg">', $txt['pm_manage_rules'], '</h3>
-		</div>
-		<div class="description">
-			', $txt['pm_manage_rules_desc'], '
-		</div>
-		<table width="100%" class="table_grid">
-		<thead>
-			<tr class="catbg">
-				<th class="smalltext">
-					', $txt['pm_rule_title'], '
-				</th>
-				<th width="4%" align="center">';
-
-	if (!empty($context['rules']))
-		echo '
-					<input type="checkbox" onclick="invertAll(this, this.form);" class="input_check" />';
-
-	echo '
-				</th>
-			</tr>
-		</thead>
-		<tbody>';
-
-	if (empty($context['rules']))
-		echo '
-			<tr class="windowbg2">
-				<td colspan="2" align="center">
-					', $txt['pm_rules_none'], '
-				</td>
-			</tr>';
-
-	$alternate = false;
-	foreach ($context['rules'] as $rule)
-	{
-		echo '
-			<tr class="', $alternate ? 'windowbg' : 'windowbg2', '">
-				<td>
-					<a href="', $scripturl, '?action=pm;sa=manrules;add;rid=', $rule['id'], '">', $rule['name'], '</a>
-				</td>
-				<td width="4%" align="center">
-					<input type="checkbox" name="delrule[', $rule['id'], ']" class="input_check" />
-				</td>
-			</tr>';
-		$alternate = !$alternate;
-	}
-
-	echo '
-		</tbody>
-		</table>
-		<div class="righttext">
-			[<a href="', $scripturl, '?action=pm;sa=manrules;add;rid=0">', $txt['pm_add_rule'], '</a>]';
-
-	if (!empty($context['rules']))
-		echo '
-			[<a href="', $scripturl, '?action=pm;sa=manrules;apply;', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['pm_js_apply_rules_confirm'], '\');">', $txt['pm_apply_rules'], '</a>]';
-
-	if (!empty($context['rules']))
-		echo '
-			<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
-			<input type="submit" name="delselected" value="', $txt['pm_delete_selected_rule'], '" onclick="return confirm(\'', $txt['pm_js_delete_rule_confirm'], '\');" class="button_submit" />';
-
-	echo '
-			</div>
-	</form>';
-
-}
-
-// Template for adding/editing a rule.
-function template_add_rule()
-{
-	global $context, $settings, $options, $txt, $scripturl;
-
-	echo '
-	<script type="text/javascript"><!-- // --><![CDATA[
-			var criteriaNum = 0;
-			var actionNum = 0;
-			var groups = new Array()
-			var labels = new Array()';
-
-	foreach ($context['groups'] as $id => $title)
-		echo '
-			groups[', $id, '] = "', addslashes($title), '";';
-
-	foreach ($context['labels'] as $label)
-		if ($label['id'] != -1)
-			echo '
-			labels[', ($label['id'] + 1), '] = "', addslashes($label['name']), '";';
-
-	echo '
-			function addCriteriaOption()
-			{
-				if (criteriaNum == 0)
-				{
-					for (var i = 0; i < document.forms.addrule.elements.length; i++)
-						if (document.forms.addrule.elements[i].id.substr(0, 8) == "ruletype")
-							criteriaNum++;
-				}
-				criteriaNum++
-
-				setOuterHTML(document.getElementById("criteriaAddHere"), \'<br /><select name="ruletype[\' + criteriaNum + \']" id="ruletype\' + criteriaNum + \'" onchange="updateRuleDef(\' + criteriaNum + \'); rebuildRuleDesc();"><option value="">', addslashes($txt['pm_rule_criteria_pick']), ':<\' + \'/option><option value="mid">', addslashes($txt['pm_rule_mid']), '<\' + \'/option><option value="gid">', addslashes($txt['pm_rule_gid']), '<\' + \'/option><option value="sub">', addslashes($txt['pm_rule_sub']), '<\' + \'/option><option value="msg">', addslashes($txt['pm_rule_msg']), '<\' + \'/option><option value="bud">', addslashes($txt['pm_rule_bud']), '<\' + \'/option><\' + \'/select>&nbsp;<span id="defdiv\' + criteriaNum + \'" style="display: none;"><input type="text" name="ruledef[\' + criteriaNum + \']" id="ruledef\' + criteriaNum + \'" onkeyup="rebuildRuleDesc();" value="" class="input_text" /><\' + \'/span><span id="defseldiv\' + criteriaNum + \'" style="display: none;"><select name="ruledefgroup[\' + criteriaNum + \']" id="ruledefgroup\' + criteriaNum + \'" onchange="rebuildRuleDesc();"><option value="">', addslashes($txt['pm_rule_sel_group']), '<\' + \'/option>';
-
-	foreach ($context['groups'] as $id => $group)
-		echo '<option value="', $id, '">', strtr($group, array("'" => "\'")), '<\' + \'/option>';
-
-	echo '<\' + \'/select><\' + \'/span><span id="criteriaAddHere"><\' + \'/span>\');
-			}
-
-			function addActionOption()
-			{
-				if (actionNum == 0)
-				{
-					for (var i = 0; i < document.forms.addrule.elements.length; i++)
-						if (document.forms.addrule.elements[i].id.substr(0, 7) == "acttype")
-							actionNum++;
-				}
-				actionNum++
-
-				setOuterHTML(document.getElementById("actionAddHere"), \'<br /><select name="acttype[\' + actionNum + \']" id="acttype\' + actionNum + \'" onchange="updateActionDef(\' + actionNum + \'); rebuildRuleDesc();"><option value="">', addslashes($txt['pm_rule_sel_action']), ':<\' + \'/option><option value="lab">', addslashes($txt['pm_rule_label']), '<\' + \'/option><option value="del">', addslashes($txt['pm_rule_delete']), '<\' + \'/option><\' + \'/select>&nbsp;<span id="labdiv\' + actionNum + \'" style="display: none;"><select name="labdef[\' + actionNum + \']" id="labdef\' + actionNum + \'" onchange="rebuildRuleDesc();"><option value="">', addslashes($txt['pm_rule_sel_label']), '<\' + \'/option>';
-
-	foreach ($context['labels'] as $label)
-		if ($label['id'] != -1)
-			echo '<option value="', ($label['id'] + 1), '">', addslashes($label['name']), '<\' + \'/option>';
-
-	echo '<\' + \'/select><\' + \'/span><span id="actionAddHere"><\' + \'/span>\');
-			}
-
-			function updateRuleDef(optNum)
-			{
-				if (document.getElementById("ruletype" + optNum).value == "gid")
-				{
-					document.getElementById("defdiv" + optNum).style.display = "none";
-					document.getElementById("defseldiv" + optNum).style.display = "";
-				}
-				else if (document.getElementById("ruletype" + optNum).value == "bud" || document.getElementById("ruletype" + optNum).value == "")
-				{
-					document.getElementById("defdiv" + optNum).style.display = "none";
-					document.getElementById("defseldiv" + optNum).style.display = "none";
-				}
-				else
-				{
-					document.getElementById("defdiv" + optNum).style.display = "";
-					document.getElementById("defseldiv" + optNum).style.display = "none";
-				}
-			}
-
-			function updateActionDef(optNum)
-			{
-				if (document.getElementById("acttype" + optNum).value == "lab")
-				{
-					document.getElementById("labdiv" + optNum).style.display = "";
-				}
-				else
-				{
-					document.getElementById("labdiv" + optNum).style.display = "none";
-				}
-			}
-
-			// Rebuild the rule description!
-			function rebuildRuleDesc()
-			{
-				// Start with nothing.
-				text = "";
-				joinText = "";
-				actionText = "";
-				hadBuddy = false;
-				foundCriteria = false;
-				foundAction = false;
-
-				for (var i = 0; i < document.forms.addrule.elements.length; i++)
-				{
-					if (document.forms.addrule.elements[i].id.substr(0, 8) == "ruletype")
-					{
-						if (foundCriteria)
-							joinText = document.getElementById("logic").value == \'and\' ? ', JavaScriptEscape(' ' . $txt['pm_readable_and'] . ' '), ' : ', JavaScriptEscape(' ' . $txt['pm_readable_or'] . ' '), ';
-						else
-							joinText = \'\';
-						foundCriteria = true;
-
-						curNum = document.forms.addrule.elements[i].id.match(/\d+/);
-						curVal = document.forms.addrule.elements[i].value;
-						if (curVal == "gid")
-							curDef = document.getElementById("ruledefgroup" + curNum).value.php_htmlspecialchars();
-						else if (curVal != "bud")
-							curDef = document.getElementById("ruledef" + curNum).value.php_htmlspecialchars();
-						else
-							curDef = "";
-
-						// What type of test is this?
-						if (curVal == "mid" && curDef)
-							text += joinText + ', JavaScriptEscape($txt['pm_readable_member']), '.replace("{MEMBER}", curDef);
-						else if (curVal == "gid" && curDef && groups[curDef])
-							text += joinText + ', JavaScriptEscape($txt['pm_readable_group']), '.replace("{GROUP}", groups[curDef]);
-						else if (curVal == "sub" && curDef)
-							text += joinText + ', JavaScriptEscape($txt['pm_readable_subject']), '.replace("{SUBJECT}", curDef);
-						else if (curVal == "msg" && curDef)
-							text += joinText + ', JavaScriptEscape($txt['pm_readable_body']), '.replace("{BODY}", curDef);
-						else if (curVal == "bud" && !hadBuddy)
-						{
-							text += joinText + ', JavaScriptEscape($txt['pm_readable_buddy']), ';
-							hadBuddy = true;
-						}
-					}
-					if (document.forms.addrule.elements[i].id.substr(0, 7) == "acttype")
-					{
-						if (foundAction)
-							joinText = ', JavaScriptEscape(' ' . $txt['pm_readable_and'] . ' '), ';
-						else
-							joinText = "";
-						foundAction = true;
-
-						curNum = document.forms.addrule.elements[i].id.match(/\d+/);
-						curVal = document.forms.addrule.elements[i].value;
-						if (curVal == "lab")
-							curDef = document.getElementById("labdef" + curNum).value.php_htmlspecialchars();
-						else
-							curDef = "";
-
-						// Now pick the actions.
-						if (curVal == "lab" && curDef && labels[curDef])
-							actionText += joinText + ', JavaScriptEscape($txt['pm_readable_label']), '.replace("{LABEL}", labels[curDef]);
-						else if (curVal == "del")
-							actionText += joinText + ', JavaScriptEscape($txt['pm_readable_delete']), ';
-					}
-				}
-
-				// If still nothing make it default!
-				if (text == "" || !foundCriteria)
-					text = "', $txt['pm_rule_not_defined'], '";
-				else
-				{
-					if (actionText != "")
-						text += ', JavaScriptEscape(' ' . $txt['pm_readable_then'] . ' '), ' + actionText;
-					text = ', JavaScriptEscape($txt['pm_readable_start']), ' + text + ', JavaScriptEscape($txt['pm_readable_end']), ';
-				}
-
-				// Set the actual HTML!
-				setInnerHTML(document.getElementById("ruletext"), text);
-			}
-	// ]]></script>';
-
-	echo '
-	<form action="', $scripturl, '?action=pm;sa=manrules;save;rid=', $context['rid'], '" method="post" accept-charset="', $context['character_set'], '" name="addrule" id="addrule">
-		<div class="cat_bar">
-			<h3 class="catbg">', $context['rid'] == 0 ? $txt['pm_add_rule'] : $txt['pm_edit_rule'], '</h3>
-		</div>
-		<div class="windowbg">
-			<span class="topslice"><span></span></span>
-			<div class="content">
-				<dl class="settings">
-					<dt>
-						<strong>', $txt['pm_rule_name'], ':</strong><br />
-						<span class="smalltext">', $txt['pm_rule_name_desc'], '</span>
-					</dt>
-					<dd>
-						<input type="text" name="rule_name" value="', empty($context['rule']['name']) ? $txt['pm_rule_name_default'] : $context['rule']['name'], '" class="input_text" style="width: 100%" />
-					</dd>
-				</dl>
-				<fieldset>
-					<legend>', $txt['pm_rule_criteria'], '</legend>';
-
-	// Add a dummy criteria to allow expansion for none js users.
-	$context['rule']['criteria'][] = array('t' => '', 'v' => '');
-
-	// For each criteria print it out.
-	$isFirst = true;
-	foreach ($context['rule']['criteria'] as $k => $criteria)
-	{
-		if (!$isFirst && $criteria['t'] == '')
-			echo '<div id="removeonjs1">';
-		else
-			echo '<br />';
-
-		echo '
-					<select name="ruletype[', $k, ']" id="ruletype', $k, '" onchange="updateRuleDef(', $k, '); rebuildRuleDesc();">
-						<option value="">', $txt['pm_rule_criteria_pick'], ':</option>
-						<option value="mid" ', $criteria['t'] == 'mid' ? 'selected="selected"' : '', '>', $txt['pm_rule_mid'], '</option>
-						<option value="gid" ', $criteria['t'] == 'gid' ? 'selected="selected"' : '', '>', $txt['pm_rule_gid'], '</option>
-						<option value="sub" ', $criteria['t'] == 'sub' ? 'selected="selected"' : '', '>', $txt['pm_rule_sub'], '</option>
-						<option value="msg" ', $criteria['t'] == 'msg' ? 'selected="selected"' : '', '>', $txt['pm_rule_msg'], '</option>
-						<option value="bud" ', $criteria['t'] == 'bud' ? 'selected="selected"' : '', '>', $txt['pm_rule_bud'], '</option>
-					</select>
-					<span id="defdiv', $k, '" ', !in_array($criteria['t'], array('gid', 'bud')) ? '' : 'style="display: none;"', '>
-						<input type="text" name="ruledef[', $k, ']" id="ruledef', $k, '" onkeyup="rebuildRuleDesc();" value="', in_array($criteria['t'], array('mid', 'sub', 'msg')) ? $criteria['v'] : '', '" class="input_text" />
-					</span>
-					<span id="defseldiv', $k, '" ', $criteria['t'] == 'gid' ? '' : 'style="display: none;"', '>
-						<select name="ruledefgroup[', $k, ']" id="ruledefgroup', $k, '" onchange="rebuildRuleDesc();">
-							<option value="">', $txt['pm_rule_sel_group'], '</option>';
-
-		foreach ($context['groups'] as $id => $group)
-			echo '
-							<option value="', $id, '" ', $criteria['t'] == 'gid' && $criteria['v'] == $id ? 'selected="selected"' : '', '>', $group, '</option>';
-		echo '
-						</select>
-					</span>';
-
-		// If this is the dummy we add a means to hide for non js users.
-		if ($isFirst)
-			$isFirst = false;
-		elseif ($criteria['t'] == '')
-			echo '</div>';
-	}
-
-	echo '
-					<span id="criteriaAddHere"></span><br />
-					<a href="#" onclick="addCriteriaOption(); return false;" id="addonjs1" style="display: none;">(', $txt['pm_rule_criteria_add'], ')</a>
-					<br /><br />
-					', $txt['pm_rule_logic'], ':
-					<select name="rule_logic" id="logic" onchange="rebuildRuleDesc();">
-						<option value="and" ', $context['rule']['logic'] == 'and' ? 'selected="selected"' : '', '>', $txt['pm_rule_logic_and'], '</option>
-						<option value="or" ', $context['rule']['logic'] == 'or' ? 'selected="selected"' : '', '>', $txt['pm_rule_logic_or'], '</option>
-					</select>
-				</fieldset>
-				<fieldset>
-					<legend>', $txt['pm_rule_actions'], '</legend>';
-
-	// As with criteria - add a dummy action for "expansion".
-	$context['rule']['actions'][] = array('t' => '', 'v' => '');
-
-	// Print each action.
-	$isFirst = true;
-	foreach ($context['rule']['actions'] as $k => $action)
-	{
-		if (!$isFirst && $action['t'] == '')
-			echo '<div id="removeonjs2">';
-		else
-			echo '<br />';
-
-		echo '
-					<select name="acttype[', $k, ']" id="acttype', $k, '" onchange="updateActionDef(', $k, '); rebuildRuleDesc();">
-						<option value="">', $txt['pm_rule_sel_action'] , ':</option>
-						<option value="lab" ', $action['t'] == 'lab' ? 'selected="selected"' : '', '>', $txt['pm_rule_label'] , '</option>
-						<option value="del" ', $action['t'] == 'del' ? 'selected="selected"' : '', '>', $txt['pm_rule_delete'] , '</option>
-					</select>
-					<span id="labdiv', $k, '">
-						<select name="labdef[', $k, ']" id="labdef', $k, '" onchange="rebuildRuleDesc();">
-							<option value="">', $txt['pm_rule_sel_label'], '</option>';
-		foreach ($context['labels'] as $label)
-			if ($label['id'] != -1)
-				echo '
-							<option value="', ($label['id'] + 1), '" ', $action['t'] == 'lab' && $action['v'] == $label['id'] ? 'selected="selected"' : '', '>', $label['name'], '</option>';
-
-		echo '
-						</select>
-					</span>';
-
-		if ($isFirst)
-			$isFirst = false;
-		elseif ($action['t'] == '')
-			echo '
-				</div>';
-	}
-
-	echo '
-					<span id="actionAddHere"></span><br />
-					<a href="#" onclick="addActionOption(); return false;" id="addonjs2" style="display: none;">(', $txt['pm_rule_add_action'], ')</a>
-				</fieldset>
-			</div>
-			<span class="botslice"><span></span></span>
-		</div>
-		<div class="cat_bar">
-			<h3 class="catbg">', $txt['pm_rule_description'], '</h3>
-		</div>
-		<div class="information">
-			<div id="ruletext" class="smalltext">', $txt['pm_rule_js_disabled'], '</div>
-		</div>
-		<div class="righttext">
-			<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
-			<input type="submit" name="save" value="', $txt['pm_rule_save'], '" class="button_submit" />
-		</div>
-	</form>';
-
-	// Now setup all the bits!
-		echo '
-	<script type="text/javascript"><!-- // --><![CDATA[';
-
-	foreach ($context['rule']['criteria'] as $k => $c)
-		echo '
-			updateRuleDef(', $k, ');';
-
-	foreach ($context['rule']['actions'] as $k => $c)
-		echo '
-			updateActionDef(', $k, ');';
-
-	echo '
-			rebuildRuleDesc();';
-
-	// If this isn't a new rule and we have JS enabled remove the JS compatibility stuff.
-	if ($context['rid'])
-		echo '
-			document.getElementById("removeonjs1").style.display = "none";
-			document.getElementById("removeonjs2").style.display = "none";';
-
-	echo '
-			document.getElementById("addonjs1").style.display = "";
-			document.getElementById("addonjs2").style.display = "";';
-
-	echo '
-		// ]]></script>';
-}
-
-?>

+ 0 - 423
Themes/core/Recent.template.php

@@ -1,423 +0,0 @@
-<?php
-/**
- * Simple Machines Forum (SMF)
- *
- * @package SMF
- * @author Simple Machines
- * @copyright 2011 Simple Machines
- * @license http://www.simplemachines.org/about/smf/license.php BSD
- *
- * @version 2.1 Alpha 1
- */
-
-function template_main()
-{
-	global $context, $settings, $options, $txt, $scripturl;
-
-	echo '
-	<div id="recent" class="main_section">
-		<div class="pagesection">
-			<div>', $txt['pages'], ': ', $context['page_index'], '</div>
-		</div>';
-
-	foreach ($context['posts'] as $post)
-	{
-		// This is far from ideal, but oh well - create buttons for the post.
-		$button_set = array();
-
-		if ($post['can_delete'])
-			$button_set['delete'] = array('text' => 'remove', 'image' => 'delete.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['remove_message'] . '?\');"', 'url' => $scripturl . '?action=deletemsg;msg=' . $post['id'] . ';topic=' . $post['topic'] . ';recent;' . $context['session_var'] . '=' . $context['session_id']);
-		if ($post['can_reply'])
-			$button_set['reply'] = array('text' => 'reply', 'image' => 'reply_sm.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $post['topic'] . '.' . $post['start']);
-		if ($post['can_quote'])
-			$button_set['quote'] = array('text' => 'reply_quote', 'image' => 'quote.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $post['topic'] . '.' . $post['start'] . ';quote=' . $post['id']);
-		if ($post['can_mark_notify'])
-			$button_set['notify'] = array('text' => 'notify_replies', 'image' => 'notify_sm.gif', 'lang' => true, 'url' => $scripturl . '?action=notify;topic=' . $post['topic'] . '.' . $post['start']);
-
-		echo '
-			<table width="100%" cellpadding="4" cellspacing="1" border="0" class="bordercolor">
-				<tr class="titlebg2">
-					<td class="middletext">
-						<div class="floatleft" style="width: 3ex;">&nbsp;', $post['counter'], '&nbsp;</div>
-							<div class="floatleft">&nbsp;', $post['category']['link'], ' / ', $post['board']['link'], ' / <strong>', $post['link'], '</strong></div>
-							<div class="righttext">&nbsp;', $txt['on'], ': ', $post['time'], '&nbsp;</div>
-					</td>
-				</tr>
-				<tr>
-					<td class="catbg" colspan="3">
-						<span class="middletext"> ', $txt['started_by'], ' ' . $post['first_poster']['link'] . ' - ' . $txt['last_post'] . ' ' . $txt['by'] . ' ' . $post['poster']['link'] . ' </span>
-					</td>
-				</tr>
-				<tr>
-					<td class="windowbg2" colspan="3" valign="top" height="80">
-						<div class="post">' . $post['message'] . '</div>
-					</td>
-				</tr>';
-
-		// Are we using tabs?
-		if (!empty($settings['use_tabs']))
-		{
-			echo '
-			</table>';
-
-			if (!empty($button_set))
-				echo '
-			<div class="readbuttons clearfix marginbottom">
-				', template_button_strip($button_set, 'top'), '
-			</div>';
-		}
-		else
-		{
-			if (!empty($button_set))
-				echo '
-				<tr>
-					<td class="catbg" colspan="3" align="right">
-						<table><tr><td>
-						', template_button_strip($button_set, 'top'), '
-						</td></tr></table>
-					</td>
-				</tr>';
-
-			echo '
-			</table>';
-		}
-
-		echo '
-			<br />';
-	}
-
-	echo '
-		<div class="pagesection">
-			<div class="floatleft">', $txt['pages'], ': ', $context['page_index'], '</div>
-		</div>
-	</div>';
-}
-
-function template_unread()
-{
-	global $context, $settings, $options, $txt, $scripturl, $modSettings;
-
-	$showCheckboxes = !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $settings['show_mark_read'];
-
-	if ($showCheckboxes)
-		echo '
-	<div id="recent" class="main_content">
-		<form action="', $scripturl, '?action=quickmod" method="post" accept-charset="', $context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;">
-			<input type="hidden" name="' . $context['session_var'] . '" value="' . $context['session_id'] . '" />
-			<input type="hidden" name="qaction" value="markread" />
-			<input type="hidden" name="redirect_url" value="action=unread', (!empty($context['showing_all_topics']) ? ';all' : ''), $context['querystring_board_limits'], '" />';
-
-	if ($settings['show_mark_read'])
-	{
-		// Generate the button strip.
-		$mark_read = array(
-			'markread' => array('text' => !empty($context['no_board_limits']) ? 'mark_as_read' : 'mark_read_short', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=' . (!empty($context['no_board_limits']) ? 'all' : 'board' . $context['querystring_board_limits']) . ';' . $context['session_var'] . '=' . $context['session_id']),
-		);
-
-		if ($showCheckboxes)
-			$mark_read['markselectread'] = array(
-				'text' => 'quick_mod_markread',
-				'image' => 'markselectedread.gif',
-				'lang' => true,
-				'url' => 'javascript:document.quickModForm.submit();',
-			);
-	}
-
-	echo '
-	<div id="readbuttons_top" class="readbuttons clearfix margintop">
-		<div class="floatleft middletext">', $txt['pages'], ': ', $context['page_index'], '</div>';
-
-	if (!empty($mark_read) && !empty($settings['use_tabs']))
-		template_button_strip($mark_read, 'bottom');
-
-	echo '
-	</div>';
-
-	echo '
-	<table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor">
-		<tr><td>
-			<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
-				<tr class="titlebg">';
-	if (!empty($context['topics']))
-	{
-		echo '
-					<td width="10%" colspan="2">&nbsp;</td>
-					<td>
-						<a href="', $scripturl, '?action=unread', $context['showing_all_topics'] ? ';all' : '', $context['querystring_board_limits'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a>
-					</td><td width="14%">
-						<a href="', $scripturl, '?action=unread', $context['showing_all_topics'] ? ';all' : '', $context['querystring_board_limits'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['started_by'], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a>
-					</td><td width="4%" align="center">
-						<a href="', $scripturl, '?action=unread', $context['showing_all_topics'] ? ';all' : '', $context['querystring_board_limits'], ';sort=replies', $context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['replies'], $context['sort_by'] == 'replies' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a>
-					</td><td width="4%" align="center">
-						<a href="', $scripturl, '?action=unread', $context['showing_all_topics'] ? ';all' : '', $context['querystring_board_limits'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['views'], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a>
-					</td><td width="24%">
-						<a href="', $scripturl, '?action=unread', $context['showing_all_topics'] ? ';all' : '', $context['querystring_board_limits'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['last_post'], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a>
-					</td>';
-		if ($showCheckboxes)
-			echo '
-					<td>
-						<input type="checkbox" onclick="invertAll(this, this.form, \'topics[]\');" class="input_check" />
-					</td>';
-	}
-	else
-		echo '
-					<td width="100%" colspan="7">', $context['showing_all_topics'] ? $txt['msg_alert_none'] : $txt['unread_topics_visit_none'], '</td>';
-	echo '
-				</tr>';
-
-	foreach ($context['topics'] as $topic)
-	{
-		// Do we want to separate the sticky and lock status out?
-		if (!empty($settings['separate_sticky_lock']) && strpos($topic['class'], 'sticky') !== false)
-			$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_sticky'));
-		if (!empty($settings['separate_sticky_lock']) && strpos($topic['class'], 'locked') !== false)
-			$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_locked'));
-
-		echo '
-				<tr>
-					<td class="windowbg2" valign="middle" align="center" width="6%">
-						<img src="' . $settings['images_url'] . '/topic/' . $topic['class'] . '.gif" alt="" />
-					</td><td class="windowbg2" valign="middle" align="center" width="4%">
-						<img src="' . $topic['first_post']['icon_url'] . '" alt="" align="middle" />
-					</td><td class="windowbg', $topic['is_sticky'] && !empty($settings['separate_sticky_lock']) ? '3' : '', '" width="48%" valign="middle">', $topic['is_locked'] && !empty($settings['separate_sticky_lock']) ? '
-						<img src="' . $settings['images_url'] . '/icons/quick_lock.gif" align="right" alt="" style="margin: 0;" />' : '', $topic['is_sticky'] && !empty($settings['separate_sticky_lock']) ? '
-						<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" style="margin: 0;" />' : '', $topic['first_post']['link'], ' <a href="', $topic['new_href'], '"><span class="new_posts">' . $txt['new'] . '</span></a> <span class="smalltext">', $topic['pages'], ' ', $txt['in'], ' ', $topic['board']['link'], '</span></td>
-					<td class="windowbg2" valign="middle" width="14%">
-						', $topic['first_post']['member']['link'], '</td>
-					<td class="windowbg" valign="middle" width="4%" align="center">
-						', $topic['replies'], '</td>
-					<td class="windowbg" valign="middle" width="4%" align="center">
-						', $topic['views'], '</td>
-					<td class="windowbg2" valign="middle" width="22%">
-						<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" style="float: right;" /></a>
-						<span class="smalltext">
-							', $topic['last_post']['time'], '<br />
-							', $txt['by'], ' ', $topic['last_post']['member']['link'], '
-						</span>
-					</td>';
-			if ($showCheckboxes)
-				echo '
-					<td class="windowbg2" valign="middle" align="center">
-						<input type="checkbox" name="topics[]" value="', $topic['id'], '" class="input_check" />
-					</td>';
-
-			echo '
-				</tr>';
-	}
-
-	if (!empty($context['topics']) && !$context['showing_all_topics'])
-		echo '
-				<tr class="titlebg">
-					<td colspan="', $showCheckboxes ? '8' : '7', '" align="right" class="middletext"><a href="', $scripturl, '?action=unread;all', $context['querystring_board_limits'], '">', $txt['unread_topics_all'], '</a></td>
-				</tr>';
-
-	if (empty($settings['use_tabs']) && !empty($mark_read))
-		echo '
-				<tr>
-					<td class="catbg" colspan="', $showCheckboxes ? '8' : '7', '" align="right">
-						<table><tr><td>
-						', template_button_strip($mark_read, 'top'), '
-						</td></tr></table>
-					</td>
-				</tr>';
-
-	echo '
-			</table>
-		</td></tr>
-	</table>
-	<div class="readbuttons clearfix marginbottom">
-		<div class="floatleft middletext">', $txt['pages'], ': ', $context['page_index'], '</div>';
-
-	if (!empty($settings['use_tabs']) && !empty($mark_read))
-		template_button_strip($mark_read, 'top');
-
-	echo '
-	</div>
-	<br />';
-
-	if ($showCheckboxes)
-		echo '
-		</form>';
-
-	echo '
-		<div class="tborder clearfix" id="topic_icons">
-			<div class="titlebg2 clearfix">
-				<div class="floatleft smalltext">
-			<ul class="reset">
-				', !empty($modSettings['enableParticipation']) && $context['user']['is_logged'] ? '
-				<li><img src="' . $settings['images_url'] . '/topic/my_normal_post.gif" alt="" align="middle" /> ' . $txt['participation_caption'] . '</li>' : '', '
-				<li><img src="' . $settings['images_url'] . '/topic/normal_post.gif" alt="" align="middle" /> ' . $txt['normal_topic'] . '</li>
-				<li><img src="' . $settings['images_url'] . '/topic/hot_post.gif" alt="" align="middle" /> ' . sprintf($txt['hot_topics'], $modSettings['hotTopicPosts']) . '</li>
-				<li><img src="' . $settings['images_url'] . '/topic/veryhot_post.gif" alt="" align="middle" /> ' . sprintf($txt['very_hot_topics'], $modSettings['hotTopicVeryPosts']) . '</li>
-			</ul>
-			</div>
-			<div class="floatleft smalltext">
-			<ul class="reset">
-				<li><img src="' . $settings['images_url'] . '/icons/quick_lock.gif" alt="" align="middle" /> ' . $txt['locked_topic'] . '</li>' . ($modSettings['enableStickyTopics'] == '1' ? '
-				<li><img src="' . $settings['images_url'] . '/icons/quick_sticky.gif" alt="" align="middle" /> ' . $txt['sticky_topic'] . '</li>' : '') . ($modSettings['pollMode'] == '1' ? '
-				<li><img src="' . $settings['images_url'] . '/topic/normal_poll.gif" alt="" align="middle" /> ' . $txt['poll'] : '') . '</li>
-			</ul>
-			</div>
-			</div>
-	</div>';
-}
-
-function template_replies()
-{
-	global $context, $settings, $options, $txt, $scripturl, $modSettings;
-
-	$showCheckboxes = !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $settings['show_mark_read'];
-
-	if ($showCheckboxes)
-		echo '
-	<div id="recent">
-		<form action="', $scripturl, '?action=quickmod" method="post" accept-charset="', $context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;">
-			<input type="hidden" name="' . $context['session_var'] . '" value="' . $context['session_id'] . '" />
-			<input type="hidden" name="qaction" value="markread" />
-			<input type="hidden" name="redirect_url" value="action=unreadreplies', (!empty($context['showing_all_topics']) ? ';all' : ''), $context['querystring_board_limits'], '" />';
-
-	if (isset($context['topics_to_mark']) && !empty($settings['show_mark_read']))
-	{
-		// Generate the button strip.
-		$mark_read = array(
-			'markread' => array('text' => 'mark_as_read', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=unreadreplies;topics=' . $context['topics_to_mark'] . ';' . $context['session_var'] . '=' . $context['session_id']),
-		);
-
-		if ($showCheckboxes)
-			$mark_read['markselectread'] = array(
-				'text' => 'quick_mod_markread',
-				'image' => 'markselectedread.gif',
-				'lang' => true,
-				'url' => 'javascript:document.quickModForm.submit();',
-			);
-	}
-	if (!empty($settings['use_tabs']))
-	{
-		echo '
-	<div id="readbuttons_top" class="readbuttons clearfix margintop">
-		<div class="floatleft middletext">', $txt['pages'], ': ', $context['page_index'], '</div>';
-		if (!empty($mark_read))
-			template_button_strip($mark_read, 'bottom');
-
-		echo '
-	</div>';
-	}
-
-	echo '
-	<table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor">
-		<tr><td>
-			<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
-				<tr class="titlebg">';
-	if (!empty($context['topics']))
-	{
-			echo '
-					<td width="10%" colspan="2">&nbsp;</td>
-					<td><a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
-					<td width="14%"><a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['started_by'], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
-					<td width="4%" align="center"><a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=replies', $context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['replies'], $context['sort_by'] == 'replies' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
-					<td width="4%" align="center"><a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['views'], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
-					<td width="24%"><a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['last_post'], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>';
-		if ($showCheckboxes)
-			echo '
-					<td>
-						<input type="checkbox" onclick="invertAll(this, this.form, \'topics[]\');" class="input_check" />
-					</td>';
-	}
-	else
-		echo '
-					<td width="100%" colspan="7">' . $txt['msg_alert_none'] . '</td>';
-	echo '
-				</tr>';
-
-	foreach ($context['topics'] as $topic)
-	{
-		// separate lock and sticky again?
-		if (!empty($settings['separate_sticky_lock']) && strpos($topic['class'], 'sticky') !== false)
-			$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_sticky'));
-		if (!empty($settings['separate_sticky_lock']) && strpos($topic['class'], 'locked') !== false)
-			$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_locked'));
-
-		echo '
-				<tr>
-					<td class="windowbg2" valign="middle" align="center" width="6%">
-						<img src="', $settings['images_url'], '/topic/', $topic['class'], '.gif" alt="" /></td>
-					<td class="windowbg2" valign="middle" align="center" width="4%">
-						<img src="', $topic['first_post']['icon_url'], '" alt="" align="middle" /></td>
-					<td class="windowbg', $topic['is_sticky'] && !empty($settings['separate_sticky_lock']) ? '3' : '', '" width="48%" valign="middle">
-						', $topic['is_locked'] && !empty($settings['separate_sticky_lock']) ? '<img src="' . $settings['images_url'] . '/icons/quick_lock.gif" align="right" alt="" style="margin: 0;" />' : '', '
-						', $topic['is_sticky'] && !empty($settings['separate_sticky_lock']) ? '<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" style="margin: 0;" />' : '', ' ', $topic['first_post']['link'], ' <a href="', $topic['new_href'], '"><span class="new_posts">' . $txt['new'] . '</span></a> <span class="smalltext">', $topic['pages'], '
-						', $txt['in'], ' ', $topic['board']['link'], '</span></td>
-					<td class="windowbg2" valign="middle" width="14%">
-						', $topic['first_post']['member']['link'], '</td>
-					<td class="windowbg" valign="middle" width="4%" align="center">
-						', $topic['replies'], '</td>
-					<td class="windowbg" valign="middle" width="4%" align="center">
-						', $topic['views'], '</td>
-					<td class="windowbg2" valign="middle" width="22%">
-						<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" style="float: right;" /></a>
-						<span class="smalltext">
-								', $topic['last_post']['time'], '<br />
-								', $txt['by'], ' ', $topic['last_post']['member']['link'], '
-						</span>
-					</td>';
-		if ($showCheckboxes)
-			echo '
-					<td class="windowbg2" valign="middle" align="center">
-						<input type="checkbox" name="topics[]" value="', $topic['id'], '" class="input_check" />
-					</td>';
-
-		echo '
-				</tr>';
-	}
-	if (empty($settings['use_tabs']) && !empty($mark_read))
-		echo '
-				<tr>
-					<td class="catbg" colspan="', $showCheckboxes ? '8' : '7', '" align="right">
-						<table><tr><td>
-							', template_button_strip($mark_read, 'top'), '
-						</td></tr></table>
-					</td>
-				</tr>';
-
-	echo '
-			</table>
-		</td></tr>
-	</table>
-	<div class="readbuttons clearfix marginbottom">
-		<div class="floatleft middletext">', $txt['pages'], ': ', $context['page_index'], '</div>';
-
-	if (!empty($settings['use_tabs']) && !empty($mark_read))
-		template_button_strip($mark_read, 'top');
-
-	echo '
-	</div>
-	<br />';
-
-	if ($showCheckboxes)
-		echo '
-		</form>';
-
-	echo '
-		<div class="tborder clearfix" id="topic_icons">
-			<div class="titlebg2 clearfix">
-				<div class="floatleft smalltext">
-			<ul class="reset">
-				', !empty($modSettings['enableParticipation']) && $context['user']['is_logged'] ? '
-				<li><img src="' . $settings['images_url'] . '/topic/my_normal_post.gif" alt="" align="middle" /> ' . $txt['participation_caption'] . '</li>' : '', '
-				<li><img src="' . $settings['images_url'] . '/topic/normal_post.gif" alt="" align="middle" /> ' . $txt['normal_topic'] . '</li>
-				<li><img src="' . $settings['images_url'] . '/topic/hot_post.gif" alt="" align="middle" /> ' . sprintf($txt['hot_topics'], $modSettings['hotTopicPosts']) . '</li>
-				<li><img src="' . $settings['images_url'] . '/topic/veryhot_post.gif" alt="" align="middle" /> ' . sprintf($txt['very_hot_topics'], $modSettings['hotTopicVeryPosts']) . '</li>
-			</ul>
-			</div>
-			<div class="floatleft smalltext">
-			<ul class="reset">
-				<li><img src="' . $settings['images_url'] . '/icons/quick_lock.gif" alt="" align="middle" /> ' . $txt['locked_topic'] . '</li>' . ($modSettings['enableStickyTopics'] == '1' ? '
-				<li><img src="' . $settings['images_url'] . '/icons/quick_sticky.gif" alt="" align="middle" /> ' . $txt['sticky_topic'] . '</li>' : '') . ($modSettings['pollMode'] == '1' ? '
-				<li><img src="' . $settings['images_url'] . '/topic/normal_poll.gif" alt="" align="middle" /> ' . $txt['poll'] : '') . '</li>
-			</ul>
-			</div>
-			</div>
-	</div>';
-}
-
-?>

+ 0 - 263
Themes/core/Settings.template.php

@@ -1,263 +0,0 @@
-<?php
-/**
- * Simple Machines Forum (SMF)
- *
- * @package SMF
- * @author Simple Machines
- * @copyright 2011 Simple Machines
- * @license http://www.simplemachines.org/about/smf/license.php BSD
- *
- * @version 2.1 Alpha 1
- */
-
-function template_options()
-{
-	global $context, $settings, $options, $scripturl, $txt;
-
-	$context['theme_options'] = array(
-		array(
-			'id' => 'show_board_desc',
-			'label' => $txt['board_desc_inside'],
-			'default' => true,
-		),
-		array(
-			'id' => 'show_children',
-			'label' => $txt['show_children'],
-			'default' => true,
-		),
-		array(
-			'id' => 'use_sidebar_menu',
-			'label' => $txt['use_sidebar_menu'],
-			'default' => true,
-		),
-		array(
-			'id' => 'show_no_avatars',
-			'label' => $txt['show_no_avatars'],
-			'default' => true,
-		),
-		array(
-			'id' => 'show_no_signatures',
-			'label' => $txt['show_no_signatures'],
-			'default' => true,
-		),
-		array(
-			'id' => 'return_to_post',
-			'label' => $txt['return_to_post'],
-			'default' => true,
-		),
-		array(
-			'id' => 'no_new_reply_warning',
-			'label' => $txt['no_new_reply_warning'],
-			'default' => true,
-		),
-		array(
-			'id' => 'view_newest_first',
-			'label' => $txt['recent_posts_at_top'],
-			'default' => true,
-		),
-		array(
-			'id' => 'view_newest_pm_first',
-			'label' => $txt['recent_pms_at_top'],
-			'default' => true,
-		),
-		array(
-			'id' => 'posts_apply_ignore_list',
-			'label' => $txt['posts_apply_ignore_list'],
-			'default' => false,
-		),
-		array(
-			'id' => 'wysiwyg_default',
-			'label' => $txt['wysiwyg_default'],
-			'default' => false,
-		),
-		array(
-			'id' => 'popup_messages',
-			'label' => $txt['popup_messages'],
-			'default' => true,
-		),
-		array(
-			'id' => 'copy_to_outbox',
-			'label' => $txt['copy_to_outbox'],
-			'default' => true,
-		),
-		array(
-			'id' => 'pm_remove_inbox_label',
-			'label' => $txt['pm_remove_inbox_label'],
-			'default' => true,
-		),
-		array(
-			'id' => 'auto_notify',
-			'label' => $txt['auto_notify'],
-			'default' => true,
-		),
-		array(
-			'id' => 'topics_per_page',
-			'label' => $txt['topics_per_page'],
-			'options' => array(
-				0 => $txt['per_page_default'],
-				5 => 5,
-				10 => 10,
-				25 => 25,
-				50 => 50,
-			),
-			'default' => true,
-		),
-		array(
-			'id' => 'messages_per_page',
-			'label' => $txt['messages_per_page'],
-			'options' => array(
-				0 => $txt['per_page_default'],
-				5 => 5,
-				10 => 10,
-				25 => 25,
-				50 => 50,
-			),
-			'default' => true,
-		),
-		array(
-			'id' => 'calendar_start_day',
-			'label' => $txt['calendar_start_day'],
-			'options' => array(
-				0 => $txt['days'][0],
-				1 => $txt['days'][1],
-				6 => $txt['days'][6],
-			),
-			'default' => true,
-		),
-		array(
-			'id' => 'display_quick_reply',
-			'label' => $txt['display_quick_reply'],
-			'options' => array(
-				0 => $txt['display_quick_reply1'],
-				1 => $txt['display_quick_reply2'],
-				2 => $txt['display_quick_reply3']
-			),
-			'default' => true,
-		),
-		array(
-			'id' => 'display_quick_mod',
-			'label' => $txt['display_quick_mod'],
-			'options' => array(
-				0 => $txt['display_quick_mod_none'],
-				1 => $txt['display_quick_mod_check'],
-				2 => $txt['display_quick_mod_image'],
-			),
-			'default' => true,
-		),
-	);
-}
-
-function template_settings()
-{
-	global $context, $settings, $options, $scripturl, $txt;
-
-	$context['theme_settings'] = array(
-		array(
-			'id' => 'header_logo_url',
-			'label' => $txt['header_logo_url'],
-			'description' => $txt['header_logo_url_desc'],
-			'type' => 'text',
-		),
-		array(
-			'id' => 'smiley_sets_default',
-			'label' => $txt['smileys_default_set_for_theme'],
-			'options' => $context['smiley_sets'],
-			'type' => 'text',
-		),
-		array(
-			'id' => 'forum_width',
-			'label' => $txt['forum_width'],
-			'description' => $txt['forum_width_desc'],
-			'type' => 'text',
-			'size' => 8,
-		),
-	'',
-		array(
-			'id' => 'show_mark_read',
-			'label' => $txt['enable_mark_as_read'],
-		),
-		array(
-			'id' => 'enable_news',
-			'label' => $txt['enable_random_news'],
-		),
-		array(
-			'id' => 'use_image_buttons',
-			'label' => $txt['admin_image_text'],
-		),
-	'',
-		array(
-			'id' => 'show_newsfader',
-			'label' => $txt['news_fader'],
-		),
-		array(
-			'id' => 'newsfader_time',
-			'label' => $txt['admin_fader_delay'],
-			'type' => 'number',
-		),
-		array(
-			'id' => 'number_recent_posts',
-			'label' => $txt['number_recent_posts'],
-			'description' => $txt['number_recent_posts_desc'],
-			'type' => 'number',
-		),
-		array(
-			'id' => 'show_stats_index',
-			'label' => $txt['show_stats_index'],
-		),
-		array(
-			'id' => 'show_latest_member',
-			'label' => $txt['latest_members'],
-		),
-		array(
-			'id' => 'show_group_key',
-			'label' => $txt['show_group_key'],
-		),
-		array(
-			'id' => 'display_who_viewing',
-			'label' => $txt['who_display_viewing'],
-			'options' => array(
-				0 => $txt['who_display_viewing_off'],
-				1 => $txt['who_display_viewing_numbers'],
-				2 => $txt['who_display_viewing_names'],
-			),
-			'type' => 'number',
-		),
-	'',
-		array(
-			'id' => 'show_modify',
-			'label' => $txt['last_modification'],
-		),
-		array(
-			'id' => 'show_profile_buttons',
-			'label' => $txt['show_view_profile_button'],
-		),
-		array(
-			'id' => 'show_user_images',
-			'label' => $txt['user_avatars'],
-		),
-		array(
-			'id' => 'show_blurb',
-			'label' => $txt['user_text'],
-		),
-		array(
-			'id' => 'show_gender',
-			'label' => $txt['gender_images'],
-		),
-		array(
-			'id' => 'hide_post_group',
-			'label' => $txt['hide_post_group'],
-			'description' => $txt['hide_post_group_desc'],
-		),
-	'',
-		array(
-			'id' => 'show_bbc',
-			'label' => $txt['admin_bbc'],
-		),
-		array(
-			'id' => 'additional_options_collapsable',
-			'label' => $txt['additional_options_collapsable'],
-		),
-	);
-}
-
-?>

+ 0 - 306
Themes/core/Stats.template.php

@@ -1,306 +0,0 @@
-<?php
-/**
- * Simple Machines Forum (SMF)
- *
- * @package SMF
- * @author Simple Machines
- * @copyright 2011 Simple Machines
- * @license http://www.simplemachines.org/about/smf/license.php BSD
- *
- * @version 2.1 Alpha 1
- */
-
-function template_main()
-{
-	global $context, $settings, $options, $txt, $scripturl, $modSettings;
-
-	echo '
-		<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
-			<tr class="titlebg">
-				<td align="center" colspan="4">', $context['page_title'], '</td>
-			</tr>
-			<tr>
-				<td class="catbg" colspan="4"><strong>', $txt['general_stats'], '</strong></td>
-			</tr><tr>
-				<td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_info.gif" width="20" height="20" alt="" /></td>
-				<td class="windowbg2" valign="top">
-					<table border="0" cellpadding="1" cellspacing="0" width="100%">
-						<tr>
-							<td nowrap="nowrap">', $txt['total_members'], ':</td>
-							<td align="right">', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' . $context['num_members'] . '</a>' : $context['num_members'], '</td>
-						</tr><tr>
-							<td nowrap="nowrap">', $txt['total_posts'], ':</td>
-							<td align="right">', $context['num_posts'], '</td>
-						</tr><tr>
-							<td nowrap="nowrap">', $txt['total_topics'], ':</td>
-							<td align="right">', $context['num_topics'], '</td>
-						</tr><tr>
-							<td nowrap="nowrap">', $txt['total_cats'], ':</td>
-							<td align="right">', $context['num_categories'], '</td>
-						</tr><tr>
-							<td nowrap="nowrap">', $txt['users_online'], ':</td>
-							<td align="right">', $context['users_online'], '</td>
-						</tr><tr>
-							<td nowrap="nowrap" valign="top">', $txt['most_online'], ':</td>
-							<td align="right">', $context['most_members_online']['number'], ' - ', $context['most_members_online']['date'], '</td>
-						</tr><tr>
-							<td nowrap="nowrap">', $txt['users_online_today'], ':</td>
-							<td align="right">', $context['online_today'], '</td>';
-	if (!empty($modSettings['hitStats']))
-		echo '
-						</tr><tr>
-							<td nowrap="nowrap">', $txt['num_hits'], ':</td>
-							<td align="right">', $context['num_hits'], '</td>';
-	echo '
-						</tr>
-					</table>
-				</td>
-				<td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_info.gif" width="20" height="20" alt="" /></td>
-				<td class="windowbg2" valign="top">
-					<table border="0" cellpadding="1" cellspacing="0" width="100%">
-						<tr>
-							<td nowrap="nowrap">', $txt['average_members'], ':</td>
-							<td align="right">', $context['average_members'], '</td>
-						</tr><tr>
-							<td nowrap="nowrap">', $txt['average_posts'], ':</td>
-							<td align="right">', $context['average_posts'], '</td>
-						</tr><tr>
-							<td nowrap="nowrap">', $txt['average_topics'], ':</td>
-							<td align="right">', $context['average_topics'], '</td>
-						</tr><tr>
-							<td nowrap="nowrap">', $txt['total_boards'], ':</td>
-							<td align="right">', $context['num_boards'], '</td>
-						</tr><tr>
-							<td nowrap="nowrap">', $txt['latest_member'], ':</td>
-							<td align="right">', $context['common_stats']['latest_member']['link'], '</td>
-						</tr><tr>
-							<td nowrap="nowrap">', $txt['average_online'], ':</td>
-							<td align="right">', $context['average_online'], '</td>
-						</tr><tr>
-							<td nowrap="nowrap">', $txt['gender_ratio'], ':</td>
-							<td align="right">', $context['gender']['ratio'], '</td>';
-	if (!empty($modSettings['hitStats']))
-		echo '
-						</tr><tr>
-							<td nowrap="nowrap">', $txt['average_hits'], ':</td>
-							<td align="right">', $context['average_hits'], '</td>';
-	echo '
-						</tr>
-					</table>
-				</td>
-			</tr><tr>
-				<td class="catbg" colspan="2" width="50%"><strong>', $txt['top_posters'], '</strong></td>
-				<td class="catbg" colspan="2" width="50%"><strong>', $txt['top_boards'], '</strong></td>
-			</tr><tr>
-				<td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_posters.gif" width="20" height="20" alt="" /></td>
-				<td class="windowbg2" width="50%" valign="top">
-					<table border="0" cellpadding="1" cellspacing="0" width="100%">';
-	foreach ($context['top_posters'] as $poster)
-		echo '
-						<tr>
-							<td width="60%" valign="top">', $poster['link'], '</td>
-							<td width="20%" align="', $context['right_to_left'] ? 'right' : 'left', '" valign="top">', $poster['num_posts'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $poster['post_percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
-							<td width="20%" align="right" valign="top">', $poster['num_posts'], '</td>
-						</tr>';
-	echo '
-					</table>
-				</td>
-				<td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_board.gif" width="20" height="20" alt="" /></td>
-				<td class="windowbg2" width="50%" valign="top">
-					<table border="0" cellpadding="1" cellspacing="0" width="100%">';
-	foreach ($context['top_boards'] as $board)
-		echo '
-						<tr>
-							<td width="60%" valign="top">', $board['link'], '</td>
-							<td width="20%" align="', $context['right_to_left'] ? 'right' : 'left', '" valign="top">', $board['num_posts'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $board['post_percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
-							<td width="20%" align="right" valign="top">', $board['num_posts'], '</td>
-						</tr>';
-	echo '
-					</table>
-				</td>
-			</tr><tr>
-				<td class="catbg" colspan="2" width="50%"><strong>', $txt['top_topics_replies'], '</strong></td>
-				<td class="catbg" colspan="2" width="50%"><strong>', $txt['top_topics_views'], '</strong></td>
-			</tr><tr>
-				<td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_replies.gif" width="20" height="20" alt="" /></td>
-				<td class="windowbg2" width="50%" valign="top">
-					<table border="0" cellpadding="1" cellspacing="0" width="100%">';
-	foreach ($context['top_topics_replies'] as $topic)
-		echo '
-						<tr>
-							<td width="60%" valign="top">', $topic['link'], '</td>
-							<td width="20%" align="', $context['right_to_left'] ? 'right' : 'left', '" valign="top">', $topic['num_replies'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $topic['post_percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
-							<td width="20%" align="right" valign="top">', $topic['num_replies'], '</td>
-						</tr>';
-	echo '
-					</table>
-				</td>
-				<td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_views.gif" width="20" height="20" alt="" /></td>
-				<td class="windowbg2" width="50%" valign="top">
-					<table border="0" cellpadding="1" cellspacing="0" width="100%">';
-	foreach ($context['top_topics_views'] as $topic)
-		echo '
-						<tr>
-							<td width="60%" valign="top">', $topic['link'], '</td>
-							<td width="20%" align="', $context['right_to_left'] ? 'right' : 'left', '" valign="top">', $topic['num_views'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $topic['post_percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
-							<td width="20%" align="right" valign="top">', $topic['num_views'], '</td>
-						</tr>';
-	echo '
-					</table>
-				</td>
-			</tr><tr>
-				<td class="catbg" colspan="2" width="50%"><strong>', $txt['top_starters'], '</strong></td>
-				<td class="catbg" colspan="2" width="50%"><strong>', $txt['most_time_online'], '</strong></td>
-			</tr><tr>
-				<td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_replies.gif" width="20" height="20" alt="" /></td>
-				<td class="windowbg2" width="50%" valign="top">
-					<table border="0" cellpadding="1" cellspacing="0" width="100%">';
-	foreach ($context['top_starters'] as $poster)
-		echo '
-						<tr>
-							<td width="60%" valign="top">', $poster['link'], '</td>
-							<td width="20%" align="', $context['right_to_left'] ? 'right' : 'left', '" valign="top">', $poster['num_topics'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $poster['post_percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
-							<td width="20%" align="right" valign="top">', $poster['num_topics'], '</td>
-						</tr>';
-	echo '
-					</table>
-				</td>
-				<td class="windowbg" width="20" valign="middle" align="center" nowrap="nowrap"><img src="', $settings['images_url'], '/stats_views.gif" width="20" height="20" alt="" /></td>
-				<td class="windowbg2" width="50%" valign="top">
-					<table border="0" cellpadding="1" cellspacing="0" width="100%">';
-	foreach ($context['top_time_online'] as $poster)
-		echo '
-						<tr>
-							<td width="60%" valign="top">', $poster['link'], '</td>
-							<td width="20%" align="', $context['right_to_left'] ? 'right' : 'left', '" valign="top">', $poster['time_online'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $poster['time_percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
-							<td width="20%" align="right" valign="top" nowrap="nowrap">', $poster['time_online'], '</td>
-						</tr>';
-	echo '
-					</table>
-				</td>
-			</tr><tr>
-				<td class="catbg" colspan="4"><strong>', $txt['forum_history'], '</strong></td>
-			</tr><tr>
-				<td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_history.gif" width="20" height="20" alt="" /></td>
-				<td class="windowbg2" colspan="4">';
-
-	if (!empty($context['yearly']))
-	{
-			echo '
-					<table border="0" width="100%" cellspacing="1" cellpadding="4" class="tborder" style="margin-bottom: 1ex;" id="stats">
-						<tr class="titlebg" valign="middle" align="center">
-							<td width="25%">', $txt['yearly_summary'], '</td>
-							<td width="15%">', $txt['stats_new_topics'], '</td>
-							<td width="15%">', $txt['stats_new_posts'], '</td>
-							<td width="15%">', $txt['stats_new_members'], '</td>
-							<td width="15%">', $txt['most_online'], '</td>';
-
-		if (!empty($modSettings['hitStats']))
-			echo '
-							<td>', $txt['page_views'], '</td>';
-		echo '
-						</tr>';
-
-		foreach ($context['yearly'] as $id => $year)
-		{
-			echo '
-						<tr class="windowbg2" valign="middle" id="year_', $id, '">
-							<th class="lefttext" width="25%">
-								<img id="year_img_', $id, '" src="', $settings['images_url'], '/collapse.gif" alt="*" /> <a href="#year_', $id, '" id="year_link_', $id, '">', $year['year'], '</a>
-							</th>
-							<th align="center" width="15%">', $year['new_topics'], '</th>
-							<th align="center" width="15%">', $year['new_posts'], '</th>
-							<th align="center" width="15%">', $year['new_members'], '</th>
-							<th align="center" width="15%">', $year['most_members_online'], '</th>';
-			if (!empty($modSettings['hitStats']))
-				echo '
-							<th align="center">', $year['hits'], '</th>';
-			echo '
-						</tr>';
-
-			foreach ($year['months'] as $month)
-			{
-				echo '
-							<tr class="windowbg2" valign="middle" id="tr_month_', $month['id'], '">
-								<th class="lefttext" width="25%" style="padding-', ($context['right_to_left'] ? 'right' : 'left'), ': 3ex;">
-									<img src="', $settings['images_url'], '/', $month['expanded'] ? 'collapse.gif' : 'expand.gif', '" alt="" id="img_', $month['id'], '" /> <a id="m', $month['id'], '" href="', $month['href'], '" onclick="return doingExpandCollapse;">', $month['month'], ' ', $month['year'], '</a>
-								</th>
-								<th align="center" width="15%">', $month['new_topics'], '</th>
-								<th align="center" width="15%">', $month['new_posts'], '</th>
-								<th align="center" width="15%">', $month['new_members'], '</th>
-								<th align="center" width="15%">', $month['most_members_online'], '</th>';
-				if (!empty($modSettings['hitStats']))
-					echo '
-								<th align="center">', $month['hits'], '</th>';
-				echo '
-							</tr>';
-
-				if ($month['expanded'])
-				{
-					foreach ($month['days'] as $day)
-					{
-						echo '
-							<tr class="windowbg2" valign="middle" align="left" id="tr_day_', $day['year'], '-', $day['month'], '-', $day['day'], '">
-								<td class="lefttext" style="padding-', ($context['right_to_left'] ? 'right' : 'left'), ': 6ex;">', $day['year'], '-', $day['month'], '-', $day['day'], '</td>
-								<td align="center">', $day['new_topics'], '</td>
-								<td align="center">', $day['new_posts'], '</td>
-								<td align="center">', $day['new_members'], '</td>
-								<td align="center">', $day['most_members_online'], '</td>';
-						if (!empty($modSettings['hitStats']))
-							echo '
-								<td align="center">', $day['hits'], '</td>';
-						echo '
-							</tr>';
-					}
-				}
-			}
-		}
-
-		echo '
-					</table>
-				</td></tr>
-			</table>
-	<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/stats.js"></script>
-	<script type="text/javascript"><!-- // --><![CDATA[
-		var oStatsCenter = new smf_StatsCenter({
-			sTableId: \'stats\',
-
-			reYearPattern: /year_(\d+)/,
-			sYearImageCollapsed: \'expand.gif\',
-			sYearImageExpanded: \'collapse.gif\',
-			sYearImageIdPrefix: \'year_img_\',
-			sYearLinkIdPrefix: \'year_link_\',
-
-			reMonthPattern: /tr_month_(\d+)/,
-			sMonthImageCollapsed: \'expand.gif\',
-			sMonthImageExpanded: \'collapse.gif\',
-			sMonthImageIdPrefix: \'img_\',
-			sMonthLinkIdPrefix: \'m\',
-
-			reDayPattern: /tr_day_(\d+-\d+-\d+)/,
-			sDayRowClassname: \'windowbg2\',
-			sDayRowIdPrefix: \'tr_day_\',
-
-			aCollapsedYears: [';
-
-		foreach ($context['collapsed_years'] as $id => $year)
-		{
-			echo '
-				\'', $year, '\'', $id != count($context['collapsed_years']) - 1 ? ',' : '';
-		}
-
-		echo '
-			],
-
-			aDataCells: [
-				\'date\',
-				\'new_topics\',
-				\'new_posts\',
-				\'new_members\',
-				\'most_members_online\'', empty($modSettings['hitStats']) ? '' :',
-				\'hits\'', '
-			]
-		});
-	// ]]></script>';
-	}
-}

+ 0 - 63
Themes/core/css/ie6.css

@@ -1,63 +0,0 @@
-/* special styles for IE6 */
-
-.main_menu li.active a
-{
-	background: none;
-	padding-right: 0;
-}
-.main_menu li.active
-{
-	background: url(../images/maintab_active_last.gif) no-repeat bottom right;
-	padding-right: 8px;
-}
-
-* html #poll_options ul.horizlist dl.options dd, * html #poll_options ul.horizlist dl.options dt
-{
-	margin: 0;
-	padding: 0;
-}
-/* the tabled definition lists */
-dl.settings dd, #creator dd, dl.stats dd, dl.register_form dd, #poll_options dl.options dd
-{
-	float: none;
-	width: auto;
-}
-
-.modbuttons .buttonlist_bottom ul, .modbuttons .buttonlist ul, .floatright .buttonlist ul, .floatright .buttonlist_bottom ul, .readbuttons .buttonlist ul, .readbuttons .buttonlist_bottom ul
-{
-	float: right;
-}
-
-/* Profile template */
-#detailedinfo div.content dl
-{
-	height: 0.1%;
-}
-.infocenter_section div.sectionbody
-{
-	height: 30px;
-}
-
-#forumposts .postarea
-{
-	margin-left: 0;
-	margin-right: 0;
-	float: right;
-}
-.signature
-{
-	padding: 0 0 0.8em 0;
-}
-#quickReplyOptions form textarea
-{
-	width: 98%;
-}
-code.bbc_code
-{
-	white-space: normal;
-}
-
-#ip_list li.header
-{
-	height: .1%;
-}

+ 0 - 22
Themes/core/css/ie7.css

@@ -1,22 +0,0 @@
-/* special styles for IE7 */
-/* the tabled definition lists */
-dl.settings dd, dl.stats dd, dl.register_form dd, #poll_options dl.options dd
-{
-	float: none;
-	width: auto;
-}
-
-.signature
-{
-	padding: 0 0 0.8em 0;
-}
-
-#quickReplyOptions form textarea
-{
-	width: 98%;
-}
-
-code.bbc_code
-{
-	white-space: normal;
-}

+ 0 - 3537
Themes/core/css/index.css

@@ -1,3537 +0,0 @@
-/* Styles for the general looks for the Core theme.
-------------------------------------------------------- */
-
-/* Normal, standard links. */
-a:link, a:visited
-{
-	color: #476c8e;
-	text-decoration: none;
-}
-a:hover
-{
-	text-decoration: underline;
-}
-
-/* Tables should show empty cells. */
-table
-{
-	empty-cells: show;
-}
-
-/* Set a fontsize that will look the same in all browsers. */
-body
-{
-	background: #e5e5e8;
-	font: 95%/90% Verdana, Helvetica, sans-serif;
-	margin: 0;
-	padding: 12px 0 4px 0;
-}
-
-/* Help popups require a different styling of the body element. */
-body#help_popup
-{
-	width: auto;
-	padding: 1em;
-	min-width: 0;
-}
-
-/* use dark grey for the text, leaving #000 for headers etc */
-body, td, th, tr
-{
-	color: #444;
-}
-
-/* lets give all forms zero padding/margins */
-form
-{
-	padding: 0;
-	margin: 0;
-}
-
-/* We can style the different types of input buttons to be uniform throughout different browsers and their color themes.
-	.button_submit - covers input[type=submit], input[type=button], button[type=submit] and button[type=button] in all browsers
-	.button_reset  - covers input[type=reset] and button[type=reset] throughout all browsers
-	.input_check   - covers input[type=checkbox] throughout all browsers
-	.input_radio   - covers input[type=radio] throughout all browsers
-	.input_text    - covers input[type=text] throughout all browsers
-	.input_file    - covers input[type=file] throughout all browsers
-*/
-
-input, button, select, textarea
-{
-	font: 90%/105% verdana, Helvetica, sans-serif;
-	color: #000;
-}
-
-/* the new "button" */
-a.new_posts:hover
-{
-	text-decoration: none;
-}
-span.new_posts
-{
-	padding: 0 4px 1px 4px;
-	background-color: #ff8300;
-	color: #fff;
-	font-size: .7em;
-	font-weight: bold;
-}
-
-/* The font size of textareas should be just a little bit larger. */
-textarea
-{
-	font: 100%/130% verdana, Helvetica, sans-serif;
-}
-
-/* All input elements that are checkboxes or radio buttons shouldn't have a border around them. */
-input.input_check, input.input_radio
-{
-	border: none;
-	background: none;
-}
-
-/* Standard horizontal rule.. ([hr], etc.) */
-hr, .hrcolor
-{
-	height: 1px;
-	border: 0;
-	color: #666;
-	background-color: #666;
-}
-
-/* By default set the color on these tags as #000. */
-h1, h2, h3, h4, h5, h6
-{
-	color: #000;
-	font-size: 1em;
-	margin: 0;
-	padding: 0;
-}
-.content fieldset
-{
-	border: 2px groove #fff;
-	padding: 1em;
-	margin: 0 0 0.3em 0;
-}
-/* No image should have a border when linked. */
-a img
-{
-	border: 0;
-}
-
-/* Define strong as bold, and em as italics */
-strong
-{
-	font-weight: bold;
-}
-
-em
-{
-	font-style: italic;
-}
-/* Alternative for u tag */
-.underline
-{
-	text-decoration: underline;
-}
-
-/* Common classes for easy styling.
-------------------------------------------------------- */
-
-.floatright
-{
-	float: right;
-}
-.floatleft
-{
-	float: left;
-}
-
-.flow_auto
-{
-	overflow: auto;
-}
-.flow_hidden
-{
-	overflow: hidden;
-}
-.clear
-{
-	clear: both;
-}
-.clear_left
-{
-	clear: left;
-}
-.clear_right
-{
-	clear: right;
-}
-
-/* Default font sizes: small (8pt), normal (10pt), and large (14pt). */
-.smalltext, tr.smalltext th
-{
-	font-size: 0.85em;
-	font-family: verdana, sans-serif;
-}
-.middletext
-{
-	font-size: 0.9em;
-	font-family: verdana, sans-serif;
-}
-.normaltext
-{
-	font-size: 1em;
-	line-height: 1.2em;
-}
-.largetext
-{
-	font-size: 1.4em;
-}
-.centertext
-{
-	margin: 0 auto;
-	text-align: center;
-}
-.righttext
-{
-	margin-left: auto;
-	margin-right: 0;
-	text-align: right;
-}
-.lefttext
-{
-	margin-left: 0;
-	margin-right: auto;
-	text-align: left;
-}
-/* some common padding styles */
-.padding
-{
-	padding: 0.7em;
-}
-.main_section, .lower_padding
-{
-	padding-bottom: 0.5em;
-}
-/* a quick reset list class. */
-ul.reset, ul.reset li
-{
-	padding: 0;
-	margin: 0;
-	list-style: none;
-}
-
-/* Some BBC related styles.
-------------------------------------------------------- */
-
-/* A quote, perhaps from another post. */
-blockquote.bbc_standard_quote, blockquote.bbc_alternate_quote
-{
-	color: #000;
-	border: 1px solid #000;
-	margin: 1px;
-	padding: 1px;
-	font-size: x-small;
-	line-height: 1.4em;
-	overflow: auto;
-}
-
-/* Alterate block quote stylings */
-blockquote.bbc_standard_quote
-{
-	background-color: #d7daec;
-}
-blockquote.bbc_alternate_quote
-{
-	background-color: #e7eafc;
-}
-
-/* A code block - maybe even PHP ;). */
-code.bbc_code
-{
-	display: block;
-	font-family: "dejavu sans mono", "monaco", "lucida console", "courier new", monospace;
-	font-size: x-small;
-	background: #eef;
-	border: 1px solid #000;
-	line-height: 1.3em;
-	padding: 1px;
-	overflow: auto;
-	white-space: nowrap;
-	/* Show a scrollbar after about 24 lines. */
-	max-height: 24em;
-}
-
-/* The "Quote:" and "Code:" header parts... */
-.codeheader, .quoteheader
-{
-	color: #000;
-	text-decoration: none;
-	font-style: normal;
-	font-weight: bold;
-	font-size: x-small;
-	line-height: 1.2em;
-	padding: 0 0.3em;
-}
-
-/* For links to change the code stuff... */
-.codeoperation
-{
-	font-weight: normal;
-}
-
-/* Styling for BBC tags */
-.bbc_size
-{
-	line-height: 1.4em;
-}
-.bbc_color a
-{
-	color: inherit;
-}
-.bbc_img
-{
-	border: 0;
-}
-.bbc_table
-{
-	font: inherit;
-	color: inherit;
-}
-.bbc_table td
-{
-	font: inherit;
-	color: inherit;
-	vertical-align: top;
-}
-.bbc_u
-{
-	text-decoration: underline;
-}
-.bbc_tt
-{
-	font-family: "dejavu sans mono", "monaco", "lucida console", "courier new", monospace;
-}
-
-/* Generally, those [?] icons.  This makes your cursor a help icon. */
-.help
-{
-	cursor: help;
-}
-
-/* /me uses this a lot. (emote, try typing /me in a post.) */
-.meaction
-{
-	color: red;
-}
-
-/* Highlighted text - such as search results. */
-.highlight
-{
-	background-color: #ff0;
-	font-weight: bold;
-	color: #000;
-}
-
-/* A more discreet highlight color, for selected membergroups etc. */
-.highlight2
-{
-	background-color: #D1E1EF;
-	color: #000;
-}
-
-/* Generic, mostly color-related, classes.
-------------------------------------------------------- */
-
-.titlebg, .titlebg2, tr.titlebg td, tr.titlebg2 td
-{
-	color: #000;
-	font-family: Verdana, Helvetica, sans-serif;
-	font-weight: bold;
-	background: url(../images/titlebg.jpg) #E9F0F6 repeat-x;
-}
-.catbg, .catbg2, tr.catbg td, tr.catbg2 td, tr.catbg th, tr.catbg2 th
-{
-	color: #fff;
-	font-family: Verdana, Helvetica, sans-serif;
-	font-weight: bold;
-	background: url(../images/catbg.jpg) #88A6C0 repeat-x;
-}
-.catbg, .catbg2, tr.catbg td, tr.catbg2 td, tr.catbg th, tr.catbg2 th
-{
-	background: url(../images/catbg2.jpg) #A1BFD9 repeat-x;
-}
-
-/* adjust the table versions of headers */
-tr.titlebg td, tr.titlebg2 td
-{
-	padding: 6px;
-}
-tr.catbg td, tr.catbg2 td, td.catbg, td.catbg2, tr.catbg th, tr.catbg2 th, th.catbg, th.catbg2
-{
-	padding: 6px;
-}
-tr.titlebg td a, tr.titlebg2 td a
-{
-	color: #000;
-}
-tr.catbg td a, tr.catbg2 td a, .catbg a
-{
-	color: #fff;
-}
-tr.catbg th.smalltext
-{
-	font-size: 0.9em;
-}
-/* Alternating backgrounds for posts, and several other sections of the forum. */
-.windowbg, #preview_body, .content, .roundframe
-{
-	color: #000;
-	background-color: #ecedf3;
-}
-.windowbg2
-{
-	color: #000;
-	background-color: #f6f6f6;
-}
-.windowbg3
-{
-	color: #000;
-	background-color: #e0e1e8;
-}
-
-/* the page navigation area */
-.pagesection
-{
-	font-size: 0.85em;
-	padding: 0.5em 0.2em;
-	overflow: hidden;
-}
-.pagesection .pagelinks
-{
-	padding: 0.5em 0;
-}
-
-/* GenericList */
-table.table_grid thead tr.catbg th.smalltext
-{
-	white-space: nowrap;
-}
-
-/* Color for background of posts requiring approval */
-.approvebg
-{
-	color: #000;
-	background-color: #f6e0d4;
-}
-/* Color for background of *topics* requiring approval */
-.approvetbg
-{
-	color: #000;
-	background-color: #e4a17c;
-}
-/* sticky posts have a different background */
-.stickybg
-{
-	background: #e8d8cf;
-}
-.stickybg2
-{
-	background: #f2e3d9;
-}
-/* locked posts too! */
-.lockedbg
-{
-	background: #d4dce2;
-	font-style: italic;
-}
-.lockedbg2
-{
-	background: #d8e1e7;
-	font-style: italic;
-}
-
-/* Posts and personal messages displayed throughout the forum. */
-.post, .personalmessage
-{
-	width: 100%;
-	overflow: auto;
-	line-height: 1.4em;
-}
-
-/* All the signatures used in the forum.  If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
-.signature
-{
-	clear: right;
-	padding: 1em 0 3px 0;
-	width: 98%;
-	border-top: 1px solid #666;
-	line-height: 1.4em;
-	font-size: 0.85em;
-}
-.custom_fields_above_signature
-{
-	clear: right;
-	padding: 1em 0 3px 0;
-	width: 98%;
-	border-top: 1px solid #666;
-	line-height: 1.4em;
-	font-size: 0.85em;
-}
-
-/* Sometimes there will be an error when you post */
-.error
-{
-	color: red;
-}
-
-/* Messages that somehow need to attract the attention. */
-.alert
-{
-	color: red;
-}
-
-/* Calendar colors for birthdays, events and holidays */
-.birthday
-{
-	color: #920ac4;
-}
-
-.event
-{
-	color: #078907;
-}
-
-.holiday
-{
-	color: #000080;
-}
-
-/* Colors for warnings */
-.warn_mute
-{
-	color: red;
-}
-
-.warn_moderate
-{
-	color: #ffa500;
-}
-
-.warn_watch, .success
-{
-	color: green;
-}
-
-a.moderation_link, a.moderation_link:visited
-{
-	color: red;
-	font-weight: bold;
-}
-
-.openid_login
-{
-	background: white url(../images/openid.gif) no-repeat;
-	padding-left: 18px;
-}
-
-/* a descriptive style */
-.description
-{
-	padding: 1em;
-	font-size: 0.9em;
-	line-height: 1.5em;
-	border: 1px solid #bbb;
-	background: #f5f5f0;
-	margin: 0 0 1em 0;
-}
-/* an informative style */
-.information
-{
-	padding: 1em;
-	font-size: 0.9em;
-	line-height: 1.5em;
-	border: 1px solid #bbb;
-	background: #f0f6f0;
-	margin: 0 0 1em 0;
-}
-.information p
-{
-	padding: 1em;
-	margin: 0;
-}
-/* AJAX notification bar
-------------------------------------------------------- */
-#ajax_in_progress
-{
-	background: #32cd32;
-	color: #fff;
-	text-align: center;
-	font-weight: bold;
-	font-size: 18pt;
-	padding: 0.4em;
-	width: 100%;
-	position: fixed;
-	top: 0;
-	left: 0;
-}
-
-#ajax_in_progress a
-{
-	color: #fff;
-	text-decoration: underline;
-	font-size: smaller;
-	float: right;
-}
-
-/* a general table class */
-table.table_grid
-{
-	border-collapse: collapse;
-	border: 1px solid #adadad;
-}
-table.table_grid td
-{
-	padding: 3px;
-	border: 1px solid #adadad;
-}
-
-/* Lists with settings use these a lot.
-------------------------------------------------------- */
-dl.settings
-{
-	clear: right;
-	overflow: auto;
-	margin: 0 0 10px 0;
-	padding: 0;
-}
-dl.settings dt
-{
-	width: 48%;
-	float: left;
-	margin: 0 0 10px 0;
-	padding: 0;
-	clear: both;
-}
-dl.settings dt.settings_title
-{
-	width: 100%;
-	float: none;
-	margin: 0 0 10px 0;
-	padding: 5px 0 0 0;
-	font-weight: bold;
-	clear: both;
-}
-dl.settings dt.windowbg
-{
-	width: 98%;
-	float: left;
-	margin: 0 0 3px 0;
-	padding: 0 0 5px 0;
-	clear: both;
-}
-dl.settings dd
-{
-	width: 48%;
-	float: left;
-	overflow: auto;
-	margin: 0 0 3px 0;
-	padding: 0;
-}
-dl.settings img
-{
-	margin: 0 10px 0 0;
-}
-
-/* The main content area.
-------------------------------------------------------- */
-.content, .roundframe
-{
-	padding: 0.5em 1.2em;
-	margin: 0;
-	border: none;
-	border: 1px solid #adadad;
-}
-.content p, .roundframe p
-{
-	margin: 0 0 0.5em 0;
-}
-
-/* Styles used by the auto suggest control.
-------------------------------------------------------- */
-.auto_suggest_div
-{
-	border: 1px solid #000;
-	position: absolute;
-	visibility: hidden;
-}
-.auto_suggest_item
-{
-	background-color: #ddd;
-}
-.auto_suggest_item_hover
-{
-	background-color: #888;
-	cursor: pointer;
-	color: #eee;
-}
-
-/* Styles for the standard dropdown menus.
-------------------------------------------------------- */
-/* Container for the new admin menu */
-#adm_container
-{
-	float: left;
-	margin-left: 10px;
-	padding: 0 5px 0 5px;
-	background: url(../images/admintab_left.gif) no-repeat;
-}
-
-ul.admin_menu, ul.admin_menu li ul
-{
-	margin: 0;
-	padding: 0;
-	list-style: none;
-}
-
-ul.admin_menu
-{
-	background: url(../images/admintab_right.gif) top right no-repeat;
-}
-
-ul.admin_menu a
-{
-	text-decoration: none;
-}
-
-/* First layer of menu items */
-ul.admin_menu li
-{
-	position: relative;
-	float: left;
-	background: url(../images/admintab_back.gif) top right repeat-x;
-	padding-right: 4px;
-}
-
-ul.admin_menu li.last
-{
-	background: url(../images/admintab_right.gif) top right repeat-x;
-}
-
-ul.admin_menu li.chosen
-{
-	background: url(../images/admintab_active_left.gif) no-repeat;
-	padding: 0 0 0 6px;
-}
-
-ul.admin_menu li h4
-{
-	margin: 0;
-	padding: 7px 5px 3px 5px;
-	cursor: pointer;
-	font-weight: normal;
-	font-size: x-small;
-	text-transform: uppercase;
-	color: #fff;
-}
-
-ul.admin_menu li.last.chosen h4
-{
-	background: url(../images/admintab_active_last.gif) top right no-repeat;
-	padding-right: 17px;
-}
-/* IE6 does't support multiple class selectors */
-ul.admin_menu li.last_chosen h4
-{
-	background: url(../images/admintab_active_last.gif) top right no-repeat;
-	padding-right: 17px;
-}
-
-ul.admin_menu li.chosen h4
-{
-	background: url(../images/admintab_active_right.gif) top right no-repeat;
-	padding-right: 10px;
-}
-
-/* Second layer of menu items */
-
-ul.admin_menu li ul
-{
-	z-index: 90;
-	display: none;
-	position: absolute;
-	/* IE6 needs a fixed width to prevent the menu from going haywire */
-	width: 19em;
-	border: 1px solid #808080;
-	border-left: 2px solid #6888a7;
-	background: #f8f8fb;
-}
-
-ul.admin_menu li.chosen ul
-{
-	margin: 0 0 0 -6px;
-}
-
-ul.admin_menu li ul li
-{
-	background: none;
-	width: 19em;
-	padding: 0;
-}
-
-ul.admin_menu li ul li a
-{
-	display: block;
-	padding: 0.5em 2em 0.5em 0.5em;
-	font-size: 90%;
-	text-decoration: none;
-	background: none;
-	color: #000 !important;
-}
-
-ul.admin_menu li ul li a.subsection
-{
-	background: url(../images/admin/subsection.gif) no-repeat 98% 50%;
-}
-
-ul.admin_menu li ul li a.chosen
-{
-	font-weight: bold;
-}
-
-ul.admin_menu li ul li a:hover
-{
-	background-color: #c8e2fb;
-	text-decoration: none;
-}
-
-ul.admin_menu li:hover ul, ul.admin_menu li.over ul
-{
-	display: block;
-}
-
-/* Third layer of menu items */
-ul.admin_menu li ul li ul, ul.admin_menu li ul li.over ul
-{
-	display: none;
-	position: absolute;
-	top: -999em;
-	border: 1px solid #a0a0a0;
-	border-left: 2px solid #6888a7;
-	background: #fff;
-}
-
-ul.admin_menu li ul li:hover ul, ul.admin_menu li ul li.over ul
-{
-	display: block;
-	left: 18em;
-	top: auto;
-	margin: -2em 0 0 1em;
-}
-#adm_submenus
-{
-	padding: 0 0 0 2em;
-}
-#adm_submenus, #adm_submenus ul
-{
-	height: 3em;
-	overflow: auto;
-}
-
-/* The dropdown menu toggle image */
-div#menu_toggle
-{
-	float: right;
-	margin: 0 10px 0 0;
-	background: url(../images/mirrortab_first.gif) top left no-repeat;
-	padding: 0 0 0 7px;
-}
-div#menu_toggle a
-{
-	display: block;
-	background: #e5e5e8 url(../images/mirrortab_last.gif) top right no-repeat;
-	padding: 8px 12px 3px 6px;
-}
-
-/* Styles for the standard button lists.
-------------------------------------------------------- */
-
-.buttonlist ul
-{
-	background: url(../images/maintab_first.gif) no-repeat scroll left bottom;
-	padding: 0 0 0 10px;
-}
-.buttonlist ul li, .buttonlist_bottom ul li
-{
-	display: inline;
-}
-.buttonlist ul li a, .buttonlist_bottom ul li a
-{
-	float: left;
-	display: block;
-	color: #fff;
-	font-size: 0.8em;
-	font-family: tahoma, sans-serif;
-	text-transform: uppercase;
-	text-decoration: none;
-}
-.buttonlist ul li a:hover, .buttonlist_bottom ul li a:hover
-{
-	color: #e0e0ff;
-}
-.buttonlist ul li a span
-{
-	background: url(../images/maintab_back.gif) repeat-x bottom left;
-	display: block;
-	padding: 0.1em 0.5em 0.5em 0.5em;
-}
-.buttonlist ul li.last a span
-{
-	background: url(../images/maintab_last.gif) no-repeat bottom right;
-	padding: 0.1em 1em 0.5em 0.5em;
-}
-.buttonlist ul li.active a span em
-{
-	padding: 0.1em 0.5em 0.5em 0.5em;
-	display: block;
-	font-style: normal;
-	background: url(../images/maintab_active_back.gif) repeat-x bottom right;
-}
-.buttonlist ul li.active a span
-{
-	background: url(../images/maintab_active_first.gif) no-repeat bottom left;
-	padding: 0 0 0 8px;
-}
-.buttonlist ul li.lastactive
-{
-	float: left;
-	background: url(../images/maintab_last.gif) no-repeat bottom right;
-	padding: 0 8px 0 0;
-}
-.buttonlist ul li.active a
-{
-	background: url(../images/maintab_active_last.gif) no-repeat bottom right;
-	padding-right: 8px;
-}
-/* For links that are basically submit buttons. */
-.buttonlist_submit
-{
-	background: transparent;
-	color: #fff;
-	text-transform: uppercase;
-	vertical-align: top;
-	text-decoration: none;
-	font-size: 9px;
-	font-family: tahoma, sans-serif;
-	border: 0;
-}
-.buttonlist_submit:hover
-{
-	color: #e0e0ff;
-}
-/* ..for the "bottom" menu */
-.buttonlist_bottom ul
-{
-	background: url(../images/mirrortab_first.gif) no-repeat scroll left top;
-	padding: 0 0 0 10px;
-}
-.buttonlist_bottom ul li a span
-{
-	background: url(../images/mirrortab_back.gif) repeat-x top left;
-	display: block;
-	padding: 0.4em 0.5em 0.2em 0.5em;
-}
-.buttonlist_bottom ul li.last a span
-{
-	background: url(../images/mirrortab_last.gif) no-repeat top right;
-	padding: 0.4em 1em 0.2em 0.5em;
-}
-.buttonlist_bottom ul li.active a span em
-{
-	padding: 0.4em 0.5em 0.2em 0.5em;
-	display: block;
-	font-style: normal;
-	background: url(../images/mirrortab_active_back.gif) repeat-x top right;
-}
-.buttonlist_bottom ul li.active a span
-{
-	background: url(../images/mirrortab_active_first.gif) no-repeat top left;
-	padding: 0 0 0 8px;
-}
-.buttonlist_bottom ul li.lastactive
-{
-	float: left;
-	background: url(../images/mirrortab_last.gif) no-repeat top right;
-	padding: 0 8px 0 0;
-}
-.buttonlist_bottom ul li.active a
-{
-	background: url(../images/mirrortab_active_last.gif) no-repeat top right;
-	padding-right: 8px;
-}
-
-/* The old-style button strips, with images */
-.oldbuttonlist
-{
-	text-align: right;
-	padding: 0.5em;
-}
-
-/* a smaller quick-button list */
-ul.quickbuttons
-{
-	margin: 0.9em 11px 0 0;
-	clear: right;
-	float: right;
-	text-align: right;
-}
-ul.quickbuttons li
-{
-	float: left;
-	display: inline;
-	margin: 0 0 0 11px;
-}
-ul.quickbuttons li a
-{
-	padding: 0 0 0.7em 20px;
-	display: block;
-	height: 20px;
-	font: bold 0.85em/18px arial, sans-serif;
-	float: left;
-}
-ul.quickbuttons li.quote_button
-{
-	background: url(../images/buttons/quote.gif) no-repeat 0 0;
-}
-ul.quickbuttons li.remove_button
-{
-	background: url(../images/buttons/delete.gif) no-repeat 0 0;
-}
-ul.quickbuttons li.modify_button
-{
-	background: url(../images/buttons/modify.gif) no-repeat 0 0;
-}
-ul.quickbuttons li.approve_button
-{
-	background: url(../images/buttons/approve.gif) no-repeat 0 0;
-}
-ul.quickbuttons li.restore_button
-{
-	background: url(../images/buttons/restore_topic.gif) no-repeat 0 0;
-}
-ul.quickbuttons li.split_button
-{
-	background: url(../images/buttons/split.gif) no-repeat 0 0;
-}
-ul.quickbuttons li.reply_button
-{
-	background: url(../images/buttons/reply.gif) no-repeat 0 0;
-}
-ul.quickbuttons li.reply_all_button
-{
-	background: url(../images/buttons/reply.gif) no-repeat 0 0;
-}
-ul.quickbuttons li.notify_button
-{
-	background: url(../images/buttons/notify_sm.gif) no-repeat 0 0;
-}
-ul.quickbuttons li.inline_mod_check
-{
-	margin: 0 0 0 5px;
-}
-
-.generic_tab_strip
-{
-	margin: 0 1em 2em;
-}
-.generic_tab_strip .buttonlist
-{
-	float: left !important;
-}
-
-/* the navigation list */
-ul#navigation
-{
-	margin: 0;
-	font-size: 0.9em;
-	padding: 1em 0.4em;
-}
-ul#navigation li
-{
-	float: none;
-	font-size: 0.95em;
-	display: inline;
-}
-
-/* Styles for the general looks for the Core theme.
-------------------------------------------------------- */
-
-/* this is the main container surrounding everything, use this to set forum width, font-size  etc. */
-#mainframe
-{
-	font-size: 85%;
-	width: 95%;
-	margin: auto;
-}
-/* the forum name or logo */
-h1#forum_name
-{
-	padding: 0.6em 0 0.6em 0;
-	margin: 0;
-	font-family: Verdana, helvetica, sans-serif;
-	font-size: 135%;
-	color: #fff;
-}
-
-/* The greeting section */
-#greeting_section
-{
-	padding: 0.7em 0.4em 0.7em 0.4em;
-	clear: both;
-}
-#greeting_section li
-{
-	font-weight: normal;
-}
-#greeting_section li#name
-{
-	padding-left: 0.5em;
-}
-#greeting_section li em
-{
-	font-style: normal;
-	font-weight: bold;
-}
-
-/* user section with all relevant links */
-#user_section
-{
-	padding: 1px;
-	margin: 1px 0 0 0;
-	font-size: 90%;
-}
-#user_section ul, #user_section form
-{
-	padding: 0.5em 0.7em 0.5em 0.7em;
-}
-
-/* the avatar, located to the left */
-#user_section #myavatar
-{
-	padding: 0.7em;
-	border-right: 1px solid #adadad;
-	margin: 0 0.5em 0 0;
-	float: left;
-}
-/* the news and search areas */
-#news_section
-{
-	clear: both;
-	font-size: 0.8em;
-	padding: 0.5em 1em 0.5em 1em;
-}
-#random_news h3
-{
-	margin-right: 1em;
-	font-size: 0.85em;
-	display: inline;
-}
-#random_news p
-{
-	margin: 0;
-	padding: 0;
-	display: inline;
-}
-
-/* The main menu. */
-.main_menu
-{
-	padding-left: 1em;
-}
-.main_menu ul
-{
-	list-style: none;
-	padding: 0;
-	margin: 0;
-	background: url(../images/maintab_first.gif) no-repeat bottom left;
-	padding-left: 10px;
-}
-.main_menu li
-{
-	margin: 0;
-	padding: 0;
-	display: inline;
-}
-.main_menu li a:link, .main_menu li a:visited
-{
-	float: left;
-	display: block;
-	color: #fff;
-	font-size: 0.8em;
-	font-family: tahoma, sans-serif;
-	text-transform: uppercase;
-}
-.main_menu li a:hover
-{
-	color: #e0e0ff;
-	text-decoration: none;
-}
-.main_menu li a span
-{
-	background: url(../images/maintab_back.gif) repeat-x bottom left;
-	display: block;
-	padding: 0.1em 0.5em 0.5em 0.5em;
-}
-.main_menu li.last a span
-{
-	background: url(../images/maintab_last.gif) no-repeat bottom right;
-	padding: 0.1em 1em 0.5em 0.5em;
-}
-.main_menu li.active a span em
-{
-	padding: 0.1em 0.5em 0.5em 0.5em;
-	display: block;
-	font-style: normal;
-	background: url(../images/maintab_active_back.gif) repeat-x bottom right;
-}
-.main_menu li.active a span
-{
-	background: url(../images/maintab_active_first.gif) no-repeat bottom left;
-	padding: 0 0 0 8px;
-}
-.main_menu li.last.active
-{
-	float: left;
-	background: url(../images/maintab_last.gif) no-repeat bottom right;
-	padding: 0 8px 0 0;
-}
-/* IE6 doesn't support multiple class selectors */
-.main_menu li.lastactive
-{
-	float: left;
-	padding: 0 8px 0 0;
-	background: url(../images/maintab_last.gif) no-repeat bottom right;
-}
-.main_menu li.active a
-{
-	background: url(../images/maintab_active_last.gif) no-repeat bottom right;
-	padding-right: 8px;
-}
-
-/* the linktree */
-ul.linktree
-{
-	clear: both;
-	width: 100%;
-	list-style: none;
-	margin: 0;
-	padding: 1.5em 0.5em 0.5em 0.5em;
-	overflow: hidden;
-}
-ul.linktree li
-{
-	float: left;
-	padding: 0 0.5em 0 0;
-	font-size: 0.8em;
-}
-ul.linktree li a
-{
-	color: #000;
-}
-ul.linktree li a:hover
-{
-	color: #cc3333;
-}
-ul.linktree li span
-{
-	font-weight: bold;
-}
-
-/* the footer area */
-#footerarea
-{
-	padding: 1em 0 2em 0;
-	text-align: center;
-}
-#footerarea ul
-{
-	margin: 0 auto 0 auto;
-}
-#footerarea ul li
-{
-	text-align: center;
-	display: inline;
-	border-right: 1px solid #888;
-	margin: 0;
-	padding: 0 4px 0 2px;
-}
-/* Note: It is against the license to remove, alter or otherwise hide the copyright output from SMF so please do not alter the two sections below. */
-#footerarea ul li.copyright
-{
-	display: block;
-	line-height: 0;
-	font-size: small;
-	padding: 1em;
-}
-#footerarea ul li.copyright, #footerarea ul li.last
-{
-	border-right: none;
-}
-/* page created in.. */
-#footerarea p
-{
-	clear: both;
-	text-align: left;
-	padding-left: 0.5em;
-}
-p#show_loadtime
-{
-	display: block;
-	text-align: center;
-}
-/* the upshrink buttons */
-#upshrink, #advsearch
-{
-	margin: 0 1ex;
-}
-
-/* Styles for a typical table.
-------------------------------------------------------- */
-table.table_list
-{
-	width: 100%;
-}
-table.table_list p
-{
-	padding: 0;
-	margin: 0;
-}
-table.table_list td,table.table_list th
-{
-	padding: 5px;
-}
-table.table_list tbody.header td
-{
-	padding: 0;
-}
-table.table_list tbody.content td.stats
-{
-	font-size: 90%;
-	width: 15%;
-	text-align: center;
-}
-table.table_list tbody.content td.lastpost
-{
-	line-height: 1.2em;
-	font-size: 85%;
-	width: 24%;
-}
-table.table_list tbody.content td.icon
-{
-	text-align: center;
-	width: 6%;
-}
-
-/* Styles for headers.
-------------------------------------------------------- */
-/* Styles for headers used in Curve templates. */
-h3.catbg, h3.catbg2, h3.titlebg, h4.titlebg, h4.catbg, div.titlebg, .table_list tbody.header td
-{
-	overflow: hidden;
-	line-height: 2em;
-	font-weight: bold;
-}
-h3.titlebg, h4.titlebg
-{
-	border-left: 1px solid #adadad;
-	border-right: 1px solid #adadad;
-}
-h3.titlebg, h4.catbg
-{
-	padding: 0 0.5em !important;
-}
-h3.catbg img.icon, div.titlebg img.icon, h3.catbg img
-{
-	float: left;
-	margin: 5px 8px 0 0;
-}
-
-/* These are used primarily for titles, but also for headers (the row that says what everything in the table is.) */
-.titlebg, tr.titlebg th, tr.titlebg td, .titlebg2, tr.titlebg2 th, tr.titlebg2 td
-{
-	color: #000;
-	font-style: normal;
-	background: url(../images/titlebg.jpg) #E9F0F6 repeat-x;
-	border-bottom: 1px solid #9baebf;
-	border-top: 1px solid #fff;
-	padding-left: 10px;
-	padding-right: 10px;
-}
-.titlebg, .titlebg a:link, .titlebg a:visited
-{
-	font-weight: bold;
-	color: #000;
-	font-style: normal;
-}
-
-.titlebg a:hover
-{
-	color: #404040;
-}
-/* same as titlebg, but used where bold text is not needed */
-.titlebg2 a:link, .titlebg2 a:visited
-{
-	color: #000;
-	font-style: normal;
-	text-decoration: underline;
-}
-
-.titlebg2 a:hover
-{
-	text-decoration: underline;
-}
-
-/* This is used for categories, page indexes, and several other areas in the forum.
-.catbg and .catbg2 is for boardindex, while .catbg3 is for messageindex and display headers. */
-.catbg, tr.catbg td, .catbg3, tr.catbg3 td
-{
-	background: url(../images/catbg.jpg) #88A6C0 repeat-x;
-	color: #fff;
-	padding-left: 10px;
-	padding-right: 10px;
-}
-.catbg2, tr.catbg2 td
-{
-	background: url(../images/catbg2.jpg) #A1BFD9 repeat-x;
-	color: #fff;
-	padding-left: 10px;
-	padding-right: 10px;
-}
-.catbg, .catbg2, .catbg3
-{
-	border-bottom: 1px solid #375576;
-}
-.catbg, .catbg2
-{
-	font-weight: bold;
-}
-.catbg3, tr.catbg3 td, .catbg3 a:link, .catbg3 a:visited
-{
-	font-size: 95%;
-	color: #fff;
-	text-decoration: none;
-}
-.catbg a:link, .catbg a:visited, .catbg2 a:link, .catbg2 a:visited
-{
-	color: #fff;
-	text-decoration: none;
-}
-.catbg a:hover, .catbg2 a:hover, .catbg3 a:hover
-{
-	color: #e0e0ff;
-}
-
-/* Styles for the board index.
-------------------------------------------------- */
-
-p#stats
-{
-	text-align: right;
-}
-h3#newsfader
-{
-	font-size: 1em;
-}
-#smfNewsFader
-{
-	font-weight: bold;
-	line-height: 1.4em;
-	padding: 1em;
-	font-size: 1em;
-	text-align: center;
-}
-#upshrink_ic
-{
-	margin-right: 2ex;
-	text-align: right;
-}
-.categoryframe
-{
-	margin-top: 0.4em;
-}
-.categoryframe h3
-{
-	margin: 0;
-}
-table.boardsframe
-{
-	width: 100%;
-}
-table.boardsframe td.icon
-{
-	text-align: center;
-	padding: 0.5em;
-	width: 6%;
-}
-table.boardsframe td.info
-{
-	width: 60%;
-	padding: 0;
-}
-table.boardsframe td.info h4
-{
-	padding: 0.4em 0.4em 0 0.4em;
-	margin: 0;
-}
-table.boardsframe td.info p
-{
-	padding: 0 0.4em 0.5em 0.4em;
-	margin: 0;
-}
-table.boardsframe td.info p.moderators
-{
-	font-size: 0.8em;
-	font-family: verdana, sans-serif;
-}
-table.boardsframe td.stats
-{
-	width: 8%;
-	vertical-align: middle;
-	text-align: center;
-}
-table.boardsframe td.lastpost
-{
-	width: 20%;
-	vertical-align: top;
-	padding: 0.5em;
-}
-#posticons
-{
-	clear: both;
-	width: 100%;
-}
-#posticons .buttonlist
-{
-	margin-right: 1em;
-	float: right;
-}
-
-/* the newsfader */
-#smfFadeScroller
-{
-	text-align: center;
-	overflow: auto;
-	color: #000000; /* shouldn't be shorthand style due to JS bug in IE! */
-}
-
-/* Styles for the info center on the board index.
----------------------------------------------------- */
-
-#infocenterframe
-{
-	margin-top: 2em;
-	clear: both;
-}
-/* each section in infocenter has this class */
-.infocenter_section
-{
-	clear: both;
-}
-.infocenter_section p.section
-{
-	display: block;
-	margin: 0;
-	width: 30px;
-	text-align: center;
-	float: left;
-	padding: 0.5em 0 0 0;
-}
-.infocenter_section div.sectionbody
-{
-	margin-left: 30px;
-	padding: 0.3em;
-	border-left: 1px solid #a0a0a0;
-	min-height: 25px;
-	height: auto !important;
-}
-/* recent posts - or just one recent post */
-dl#infocenter_recentposts
-{
-	float: left;
-	width: 100%;
-	padding: 0;
-	margin: 0;
-}
-dl#infocenter_recentposts dt
-{
-	clear: left;
-	float: left;
-	padding: 0.1em;
-	width: 68%;
-	white-space: nowrap;
-	overflow: hidden;
-}
-dl#infocenter_recentposts dd
-{
-	clear: right;
-	float: right;
-	padding: 0.1em;
-	width: 25%;
-	text-align: right;
-	white-space: nowrap;
-	overflow: hidden;
-}
-/* login form */
-form#infocenter_login ul.horizlist label
-{
-	white-space: nowrap;
-	font-size: 90%;
-	font-weight: bold;
-}
-
-/* Styles for the message (topic) index.
----------------------------------------------------- */
-
-#childboards table
-{
-	width: 100%;
-}
-.modbuttons
-{
-	clear: both;
-	width: 100%;
-}
-.buttonlist, .buttonlist_bottom
-{
-	margin-right: 1em;
-	float: right;
-}
-#messageindex td.icon1, #messageindex td.icon2
-{
-	text-align: center;
-	padding: 0.5em;
-	width: 5%;
-}
-#messageindex td.subject
-{
-	padding: 0.5em;
-}
-#messageindex td.starter
-{
-	text-align: center;
-	padding: 0.5em;
-	width: 14%;
-}
-#messageindex td.replies
-{
-	text-align: center;
-	padding: 0.5em;
-	width: 4%;
-}
-#messageindex td.views
-{
-	text-align: center;
-	padding: 0.5em;
-	width: 4%;
-}
-#messageindex td.lastpost
-{
-	padding: 0.5em;
-	width: 22%;
-}
-#messageindex td.moderation
-{
-	text-align: center;
-	padding: 0.5em;
-	width: 4%;
-}
-#topic_icons p
-{
-	display: block;
-	padding: 0.5em 0.5em 0.1em 0.5em;
-	margin: 0;
-	border-bottom: none;
-	font-weight: normal !important;
-}
-#topic_icons ul
-{
-	display: block;
-	padding: 0.5em 1em 0.1em 1em;
-	margin: 0;
-	border-bottom: none;
-	font-weight: normal !important;
-}
-#message_index_jump_to
-{
-	margin: 2em 4em 0 2em;
-}
-.lastpost img
-{
-	float: right;
-}
-
-/* Styles for the display template (topic view).
----------------------------------------------------- */
-
-.linked_events
-{
-	clear: both;
-	margin: 1em 0;
-}
-.linked_events .edit_event
-{
-	color: #f00;
-}
-#moderationbuttons
-{
-	margin-left: 0.5em;
-}
-#postbuttons .nav, #postbuttons_lower .nav
-{
-	margin: 0.5em 0.5em 0 0;
-	text-align: right;
-}
-#postbuttons_lower .nav
-{
-	margin: 0 0.5em 0.5em 0;
-}
-#postbuttons, #postbuttons_lower
-{
-	text-align: right;
-}
-
-/* Poll question */
-h4#pollquestion
-{
-	padding: 1em 0 1em 2em;
-}
-
-/* Poll vote options */
-#poll_options ul.options
-{
-	border-top: 1px solid #696969;
-	padding: 1em 2.5em 0 2em;
-	margin: 0 0 1em 0;
-}
-#poll_options div.submitbutton
-{
-	clear: both;
-	padding: 0 0 1em 2em;
-}
-
-#poll_options div.submitbutton.border
-{
-	border-bottom: 1px solid #696969;
-	margin: 0 0 1em 0;
-}
-
-/* Poll results */
-#poll_options dl.options
-{
-	border: solid #696969;
-	border-width: 1px 0;
-	padding: 1em 2.5em 0 2em;
-	margin: 0 0 1em 0;
-}
-#poll_options dl.options dt.voted
-{
-	font-weight: bold;
-}
-#poll_options dl.options dd
-{
-	margin: 0.5em 0 1em 0;
-}
-
-/* Poll notices */
-#poll_options p
-{
-	margin: 0 1.5em 0.2em 1.5em;
-	padding: 0 0.5em 0.5em 0.5em;
-}
-
-div#pollmoderation
-{
-	margin: -1em 0 0 2em;
-	padding: 0;
-}
-
-.approve_post
-{
-	margin: 2ex;
-	padding: 1ex;
-	border: 2px dashed #cc3344;
-	color: #000;
-	font-weight: bold;
-}
-#forumposts h3.catbg3
-{
-	font-weight: normal;
-	padding: 0.4em;
-	overflow: hidden;
-}
-#forumposts h3.catbg3 img
-{
-	float: left;
-	vertical-align: middle;
-}
-#forumposts h3.catbg3 span
-{
-	float: left;
-	padding-left: 2%;
-}
-#forumposts h3.catbg3 span#top_subject
-{
-	padding-left: 9.5em;
-}
-.poster
-{
-	width: 15em;
-	float: left;
-}
-.post
-{
-	clear: right;
-}
-img.smiley
-{
-	vertical-align: bottom;
-}
-.postarea
-{
-	margin-left: 16em;
-}
-.messageicon
-{
-	float: left;
-	margin: 0 0.5em 0.5em 0;
-}
-.messageicon img
-{
-	padding: 6px 3px;
-}
-.keyinfo
-{
-	float: left;
-	clear: none;
-	width: 50%;
-	min-height: 3em;
-}
-ul.postingbuttons
-{
-	float: right;
-	padding: 0 0.5em 0 0;
-}
-ul.postingbuttons li
-{
-	float: left;
-	margin: 0 0.5em 0 0;
-}
-.modifybutton
-{
-	float: right;
-	margin: 0 0.5em 0.5em 0;
-	font: bold 0.85em arial, sans-serif;
-	color: #476c8e;		
-}
-.attachments
-{
-	padding-top: 1em;
-	overflow: auto;
-}
-.attachments hr
-{
-	clear: both;
-	margin: 1em 0 1em 0;
-}
-.postfooter
-{
-	margin-left: 16em;
-}
-.topborder
-{
-	border-top: 1px solid #bbb;
-}
-.moderatorbar
-{
-	clear: right;
-	margin: 1em 0 0 16em;
-}
-#pollmoderation, #moderationbuttons_strip
-{
-	float: left;
-}
-
-/* Styles for the quick reply area.
----------------------------------------------------- */
-
-#quickReplyOptions #quickReplyWarning
-{
-	border: none;
-	text-align: left;
-	margin: 0;
-	width: 25%;
-	float: left;
-}
-#quickReplyOptions #quickReplyContent
-{
-	text-align: right;
-	float: left;
-	width: 67.5%;
-	padding: 1em;
-	border-left: 1px solid #aaa;
-}
-
-#quickReplyOptions #quickReplyContent textarea, #quickReplyOptions #quickReplyContent input
-{
-	margin-bottom: .5em;
-}
-
-#quickReplyWarning
-{
-	width: 20%;
-	float: left;
-	padding: 0.5em 1em;
-}
-#quickReplyContent
-{
-	width: 75%;
-	float: right;
-	padding: 0.5em 0;
-}
-#quickReplyOptions .roundframe
-{
-	overflow: hidden;
-}
-#quickReplyOptions form textarea
-{
-	height: 100px;
-	width: 635px;
-	max-width: 100%;
-	min-width: 100%;
-}
-
-/* The jump to box */
-#display_jump_to
-{
-	clear: both;
-	padding: 5px;
-}
-
-/* Separator of posts. More useful in the print stylesheet. */
-#forumposts .post_separator
-{
-	display: none;
-}
-
-/* Styles for edit post section
----------------------------------------------------- */
-form#postmodify .roundframe
-{
-	padding: 0 12%;
-}
-#post_header
-{
-	margin-bottom: 0.5em;
-	padding: 0.5em;
-	overflow: hidden;
-}
-#post_header dt
-{
-	float: left;
-	margin: 0;
-	padding: 0;
-	width: 15%;
-	margin: .3em 0;
-	font-weight: bold;
-}
-#post_header dd
-{
-	float: left;
-	margin: 0;
-	padding: 0;
-	width: 83%;
-	margin: .3em 0;
-}
-#post_header img
-{
-	vertical-align: middle;
-}
-ul.post_options
-{
-	margin: 0 0 0 1em;
-	padding: 0;
-	list-style: none;
-	overflow: hidden;
-}
-ul.post_options li
-{
-	margin: 0.2em 0;
-	width: 49%;
-	float: left;
-}
-#postAdditionalOptionsHeader
-{
-	margin-top: 1em;
-}
-#postMoreOptions
-{
-	border-bottom: 1px solid #666;
-	padding: 0.5em;
-}
-#postAttachment, #postAttachment2
-{
-	overflow: hidden;
-	margin: .5em 0;
-	padding: 0;
-	border-bottom: 1px solid #666;
-	padding: 0.5em;
-}
-#postAttachment dd, #postAttachment2 dd
-{
-	margin: .3em 0 .3em 1em;
-}
-#postAttachment dt, #postAttachment2 dt
-{
-	font-weight: bold;
-}
-#postAttachment3
-{
-	margin-left: 1em;
-}
-#post_confirm_strip, #shortcuts
-{
-	padding: 1em 0 0 0;
-}
-.post_verification
-{
-	margin-top: .5em;
-}
-.post_verification #verification_control
-{
-	margin: .3em 0 .3em 1em;
-}
-/* The BBC buttons */
-#bbcBox_message
-{
-	margin: 1em 0 0.5em 0;
-}
-#bbcBox_message div
-{
-	margin: 0.2em 0;
-	vertical-align: top;
-}
-#bbcBox_message div img
-{
-	margin: 0 1px 0 0;
-	vertical-align: top;
-}
-#bbcBox_message select
-{
-	margin: 0 2px;
-}
-/* The smiley strip */
-#smileyBox_message
-{
-	margin: 0.75em 0 0.5em 0;
-}
-
-/* Styles for edit event section
----------------------------------------------------- */
-#post_event .roundframe
-{
-	padding: 1% 12%;
-}
-#post_event fieldset
-{
-	margin-bottom: 0.5em;
-	border: 1px solid #c4c4c4;
-	padding: 0.5em;
-	clear: both;
-}
-#post_event legend
-{
-	font-weight: bold;
-	color: #000;
-}
-#post_event #event_main input
-{
-	margin: 0 0 1em 0;
-	float: left;
-}
-#post_event #event_main div.smalltext
-{
-	width: 33em;
-	float: right;
-}
-#post_event div.event_options
-{
-	float: right;
-}
-#post_event ul.event_main, ul.event_options
-{
-	padding: 0;
-	overflow: hidden;
-}
-#post_event ul.event_main li
-{
-	list-style-type: none;
-	margin: 0.2em 0;
-	width: 49%;
-	float: left;
-}
-#post_event ul.event_options
-{
-	margin: 0;
-	padding: 0 0 .7em .7em;
-}
-#post_event ul.event_options li
-{
-	list-style-type: none;
-	margin: 0;
-	float: left;
-}
-#post_event #event_main select, #post_event ul.event_options li select, #post_event ul.event_options li .input_check
-{
-	margin: 0 1em 0 0;
-}
-
-/* Styles for edit poll section.
----------------------------------------------------- */
-
-#edit_poll
-{
-	overflow: hidden;
-}
-#edit_poll fieldset
-{
-	margin: 0.5em 0;
-	border: 1px solid #c4c4c4;
-	padding: 0.5em;
-	clear: both;
-	overflow: hidden;
-}
-#edit_poll legend
-{
-	font-weight: bold;
-	color: #000;
-}
-#edit_poll fieldset input
-{
-	margin-left: 8.6em;
-}
-#edit_poll ul.poll_main li
-{
-	padding-left: 1em;
-}
-#edit_poll ul.poll_main input
-{
-	margin-left: 1em;
-}
-#edit_poll ul.poll_main, dl.poll_options
-{
-	overflow: hidden;
-	padding: 0 0 .7em .7em;
-	list-style: none;
-}
-#edit_poll ul.poll_main li
-{
-	margin: 0.2em 0;
-}
-#edit_poll dl.poll_options dt
-{
-	width: 33%;
-	padding: 0 0 0 1em;
-}
-#edit_poll dl.poll_options dd
-{
-	width: 65%;
-}
-#edit_poll dl.poll_options dd input
-{
-	margin-left: 0; 
-}
-
-
-/* Styles for the recent messages section.
----------------------------------------------------- */
-
-.readbuttons
-{
-	clear: both;
-	width: 100%;
-}
-.buttonlist, .buttonlist_bottom
-{
-	margin-right: 1em;
-	float: right;
-}
-
-/* Styles for the move topic section.
----------------------------------------------------- */
-
-#move_topic dl
-{
-	margin-bottom: 0;
-}
-.move_topic
-{
-	width: 710px;
-	margin: auto;
-	text-align: left;
-}
-div.move_topic fieldset
-{
-	margin: 0.5em 0;
-	border: 1px solid #cacdd3;
-	padding: 0.5em;
-}
-
-/* Styles for the send topic section.
----------------------------------------------------- */
-
-fieldset.send_topic
-{
-	margin-bottom: 0.5em;
-	border: none;
-	padding: 0.5em;
-}
-dl.send_topic
-{
-	margin-bottom: 0;
-}
-dl.send_mail dt
-{
-	width: 35%;
-}
-dl.send_mail dd
-{
-	width: 64%;
-}
-
-/* Styles for the split topic section.
----------------------------------------------------- */
-
-div#selected, div#not_selected
-{
-	width: 49%;
-}
-ul.split_messages li.windowbg, ul.split_messages li.windowbg2
-{
-	border: 1px solid #adadad;
-	padding: 1em;
-	margin: 1px;
-}
-ul.split_messages li a.split_icon
-{
-	padding: 0 0.5em;
-}
-ul.split_messages div.post
-{
-	padding: 1em 0 0 0;
-	border-top: 1px solid #fff;
-}
-
-/* Styles for the report topic section.
----------------------------------------------------- */
-
-#report_topic dl
-{
-	margin-bottom: 0;
-}
-#report_topic dl.settings dt
-{
-	width: 20%;
-}
-#report_topic dl.settings dd
-{
-	width: 79%;
-}
-
-/* Styles for the merge topic section.
----------------------------------------------------- */
-
-ul.merge_topics li
-{
-	list-style-type: none;
-}
-dl.merge_topic dt
-{
-	width: 25%;
-}
-dl.merge_topic dd
-{
-	width: 74%;
-}
-fieldset.merge_options
-{
-	margin-bottom: 0.5em;
-}
-fieldset.merge_options legend
-{
-	font-weight: bold;
-}
-.custom_subject
-{
-	margin: 0.5em 0;
-}
-
-/* Styles for the login areas.
-------------------------------------------------------- */
-.login
-{
-	width: 540px;
-	margin: 0 auto;
-}
-.login dl
-{
-	overflow: auto;
-	clear: right;
-}
-.login dt, .login dd
-{
-	margin: 0 0 0.4em 0;
-	width: 44%;
-	padding: 0.1em;
-}
-.login dt
-{
-	float: left;
-	clear: both;
-	text-align: right;
-	font-weight: bold;
-}
-.login dd
-{
-	width: 54%;
-	float: right;
-	text-align: left;
-}
-.login p
-{
-	text-align: center;
-}
-.login h3 img
-{
-	float: left;
-	margin: 4px 0.5em 0 0;
-}
-
-/* Styles for the registration section.
-------------------------------------------------------- */
-.register_error
-{
-	border: 1px dashed red;
-	padding: 5px;
-	margin: 0 1ex 1ex 1ex;
-}
-.register_error span
-{
-	text-decoration: underline;
-}
-
-/* Additional profile fields */
-dl.register_form
-{
-	margin: 0;
-	clear: right;
-	overflow: auto;
-}
-
-dl.register_form dt
-{
-	font-weight: normal;
-	float: left;
-	clear: both;
-	width: 50%;
-	margin: 0.5em 0 0 0;
-}
-
-dl.register_form dt strong
-{
-	font-weight: bold;
-}
-
-dl.register_form dt span
-{
-	display: block;
-}
-
-dl.register_form dd
-{
-	float: left;
-	width: 49%;
-	margin: 0.5em 0 0 0;
-}
-
-#confirm_buttons
-{
-	text-align: center;
-	padding: 1em 0;
-}
-
-.coppa_contact
-{
-	padding: 4px;
-	width: 32ex;
-	background-color: #fff;
-	color: #000;
-	margin-left: 5ex;
-	border: 1px solid #000;
-}
-
-.valid_input
-{
-	background-color: #f5fff0;
-}
-.invalid_input
-{
-	background-color: #fff0f0;
-}
-
-/* Styles for maintenance mode.
-------------------------------------------------------- */
-#maintenance_mode
-{
-	width: 75%;
-	min-width: 520px;
-	text-align: left;
-}
-#maintenance_mode img.floatleft
-{
-	margin-right: 1em;
-}
-
-/* common for all admin sections */
-h3.titlebg img
-{
-	vertical-align: middle;
-	margin-right: 0.5em;
-}
-tr.titlebg td
-{
-	padding-left: 0.7em;
-}
-#admin_menu
-{
-	min-height: 2em;
-	padding-left: 0;
-}
-#admin_content
-{
-	clear: left;
-}
-#admin_login .centertext
-{
-	padding: 1em;
-}
-#admin_login .centertext .error
-{
-	padding: 0 0 1em 0;
-}
-
-/* Styles for sidebar menus.
-------------------------------------------------------- */
-.left_admmenu, .left_admmenu ul, .left_admmenu li
-{
-	padding: 0;
-	margin: 0;
-	list-style: none;
-}
-#left_admsection
-{
-	background-color: #ecedf3;
-	padding: 1px;
-	border: 1px solid #ADADAD;
-	width: 160px;
-	float: left;
-	margin-right: 10px;
-}
-.adm_section h4.titlebg
-{
-	font-size: 95%;
-	margin-bottom: 5px;
-}
-#main_container
-{
-	position: relative;
-}
-.left_admmenu li
-{
-	padding: 0 0 0 0.5em;
-}
-.left_admmenu
-{
-	margin-bottom: 1.1em;
-}
-#main_admsection
-{
-	position: relative;
-	left: 0;
-	right: 0;
-	overflow: hidden;
-}
-
-tr.windowbg td, tr.windowbg2 td, tr.approvebg td, tr.highlight2 td
-{
-	padding: 0.3em 0.7em;
-}
-#credits p
-{
-	padding: 0;
-	font-style: italic;
-	margin: 0;
-}
-
-/* Styles for generic tables.
-------------------------------------------------------- */
-.topic_table table
-{
-	width: 100%;
-}
-.topic_table .icon1, .topic_table .icon2, .topic_table .stats
-{
-	text-align: center;
-}
-#topic_icons
-{
-	margin-top: 1em;
-}
-#topic_icons .description
-{
-	margin: 0;
-}
-.topic_table table thead
-{
-	border-bottom: 1px solid #fff;
-}
-/* the subject column */
-.topic_table td
-{
-	font-size: 1em;
-}
-.topic_table td.subject
-{
-	padding: 4px;
-}
-.topic_table td.subject p, .topic_table td.stats, .topic_table td.lastpost
-{
-	font-size: 0.85em;
-	padding: 0;
-	margin: 0;
-}
-.topic_table td.lastpost, .topic_table td.lastpost
-{
-	font-size: 0.9em;
-	line-height: 100%;
-	padding: 4px;
-}
-.topic_table td.stickybg2
-{
-	background-image: url(../images/icons/quick_sticky.gif);
-	background-repeat: no-repeat;
-	background-position: 98% 4px;
-}
-.topic_table td.lockedbg2
-{
-	background-image: url(../images/icons/quick_lock.gif);
-	background-repeat: no-repeat;
-	background-position: 98% 4px;
-}
-.topic_table td.lastpost
-{
-	background-image: none;
-}
-
-/* Styles for (fatal) errors.
-------------------------------------------------- */
-
-#fatal_error
-{
-	border: 1px solid #aaa;
-}
-
-.errorbox
-{
-	padding: 1em;
-	border: 1px solid #cc3344;
-	color: #000;
-	background-color: #ffe4e9;
-	margin: 1em 0;
-}
-.errorbox h3
-{
-	padding: 0;
-	margin: 0;
-	font-size: 1.1em;
-	text-decoration: underline;
-}
-.errorbox p
-{
-	margin: 1em 0 0 0;
-}
-.errorbox p.alert
-{
-	padding: 0;
-	margin: 0;
-	float: left;
-	width: 1em;
-	font-size: 1.5em;
-}
-
-/* Styles for the profile section.
-------------------------------------------------- */
-
-dl
-{
-	overflow: auto;
-	margin: 0;
-	padding: 0;
-}
-
-/* Fixes for the core theme */
-#profileview
-{
-	padding: 1px;
-	border: 1px solid #696969;
-	background-color: #ecedf3;
-}
-#profileview .content
-{
-	border: none;
-}
-#basicinfo .content
-{
-	padding: 1em;
-}
-#detailedinfo .content
-{
-	padding: 0.7em 1.2em;
-	border-left: 1px solid #aaa;
-}
-
-/* The basic user info on the left */
-#basicinfo
-{
-	width: 20%;
-	float: left;
-}
-#detailedinfo
-{
-	width: 78%;
-	float: right;
-}
-#basicinfo h4
-{
-	font-size: 135%;
-	font-weight: 100;
-	line-height: 105%;
-	white-space: pre-wrap; /* css-2.1 */
-	word-wrap: break-word; /* Internet Explorer 5.5+ */
-	overflow: hidden;
-}
-#basicinfo h4 span.position
-{
-	font-size: 80%;
-	font-weight: 100;
-	display: block;
-}
-#basicinfo img.avatar
-{
-	display: block;
-	margin: 10px 0 0 0;
-}
-#basicinfo ul
-{
-	list-style-type: none;
-	margin: 10px 0 0 0;
-}
-#basicinfo ul li
-{
-	display: block;
-	float: left;
-	margin-right: 5px;
-	height: 20px;
-}
-#basicinfo span#userstatus
-{
-	display: block;
-	clear: both;
-}
-#basicinfo span#userstatus img
-{
-	vertical-align: middle;
-}
-#detailedinfo div.content dl, #tracking div.content dl
-{
-	clear: right;
-	overflow: auto;
-	margin: 0 0 18px 0;
-	padding: 0 0 15px 0;
-	border-bottom: 1px solid #ccc;
-}
-#detailedinfo div.content dt, #tracking div.content dt
-{
-	width: 30%;
-	float: left;
-	margin: 0 0 3px 0;
-	padding: 0;
-	font-weight: bold;
-	clear: both;
-}
-#detailedinfo div.content dd, #tracking div.content dd
-{
-	width: 70%;
-	float: left;
-	margin: 0 0 3px 0;
-	padding: 0;
-}
-#detailedinfo div.content dl.noborder
-{
-	border-bottom: 0;
-}
-#detailedinfo div.content dt.clear
-{
-	width: 100%;
-}
-.signature, .custom_fields_above_signature, .attachments
-{
-	width: 98%;
-	overflow: auto;
-	clear: right;
-	border-top: 1px solid #666;
-}
-.signature h5
-{
-	font-size: 100%;
-	margin-bottom: 10px;
-}
-#personal_picture
-{
-	display: block;
-	margin-bottom: 0.3em;
-}
-#avatar_server_stored div
-{
-	float: left;
-}
-
-#main_admsection #basicinfo, #main_admsection #detailedinfo
-{
-	width: 100%;
-}
-#main_admsection #detailedinfo .content
-{
-	border: none !important;
-}
-#main_admsection #basicinfo
-{
-	border-bottom: 1px solid #ccc;
-}
-#main_admsection #basicinfo h4
-{
-	float: left;
-}
-#main_admsection #basicinfo img.avatar
-{
-	float: right;
-	vertical-align: top;
-}
-#main_admsection #basicinfo ul
-{
-	clear: left;
-	padding-top: 10px;
-}
-#main_admsection #basicinfo span#userstatus
-{
-	clear: left;
-}
-#main_admsection #basicinfo p#infolinks
-{
-	display: none;
-	clear: both;
-}
-#main_admsection #basicinfo .botslice
-{
-	clear: both;
-}
-
-/* Simple feedback messages */
-div#profile_error, div#profile_success
-{
-	margin: 0 0 1em 0;
-	padding: 1em 2em;
-	border: 1px solid;
-}
-div#profile_error
-{
-	border-color: red;
-	color: red;
-	background: #fee;
-}
-
-div#profile_error span
-{
-	text-decoration: underline;
-}
-
-div#profile_success
-{
-	border-color: green;
-	color: green;
-	background: #efe;
-}
-
-/* Profile statistics */
-#generalstats div.content dt
-{
-	width: 50%;
-	float: left;
-	margin: 0 0 3px 0;
-	padding: 0;
-	font-weight: bold;
-	clear: both;
-}
-#generalstats div.content dd
-{
-	width: 50%;
-	float: left;
-	margin: 0 0 3px 0;
-	padding: 0;
-}
-
-/* Activity by time */
-.activity_stats
-{
-	margin: 0;
-	padding: 0;
-	list-style: none;
-}
-.activity_stats li
-{
-	width: 4.16%;
-	float: left;
-}
-.activity_stats li span
-{
-	display: block;
-	border: solid #000;
-	border-width: 1px 1px 0 0;
-	text-align: center;
-}
-.activity_stats li.last span
-{
-	border-right: none;
-}
-.activity_stats li div.bar
-{
-	margin: 0 auto;
-	width: 15px;
-}
-.activity_stats li div.bar div
-{
-	background: url('../images/bar.gif');
-}
-.activity_stats li div.bar span
-{
-	position: absolute;
-	top: -1000em;
-	left: -1000em;
-}
-
-/* Most popular boards by posts and activity */
-#popularposts
-{
-	width: 50%;
-	float: left;
-}
-#popularactivity
-{
-	width: 50%;
-	float: right;
-}
-
-#popularposts div.content dt, #popularactivity div.content dt
-{
-	width: 65%;
-	float: left;
-	margin: 0 0 3px 0;
-	padding: 0;
-	font-weight: bold;
-	clear: both;
-}
-#popularposts div.content dd, #popularactivity div.content dd
-{
-	width: 35%;
-	float: left;
-	margin: 0 0 3px 0;
-	padding: 0;
-}
-
-.profile_pie
-{
-	background-image: url(../images/stats_pie.png);
-	float: left;
-	height: 20px;
-	width: 20px;
-	margin: 0 1em 0 0;
-	padding: 0;
-	text-indent: -1000em;
-}
-
-/* View posts */
-.time
-{
-	float: right;
-}
-.counter
-{
-	margin: 0 0 0 0;
-	padding: 0.2em 0.5em 0.1em 0.2em;
-	font-size: 2.2em;
-	font-weight: bold;
-	color: #354c5f;
-	float: left;
-}
-.list_posts
-{
-	border-top: 1px solid #adadad;
-	padding-top: 1em;
-	margin-top: 0.5em;
-}
-div.core_posts
-{
-	border: 1px solid #adadad;
-	margin-bottom: 3px;
-}
-div.core_posts div.content
-{
-	background: none;
-	border: none;
-}
-.topic h4
-{
-	margin: 3px 0;
-}
-
-.mod_icons
-{
-	text-align: right;
-	margin-right: 1em;
-}
-#permissions div.tborder
-{
-	margin-bottom: 2em;
-}
-#permissions ul
-{
-	padding: 0;
-	margin: 1px 0 0 0;
-	border-top: 1px solid #e5e5e8;
-	float: left;
-	width: 100%; 
-}
-#permissions div.permission_name
-{
-	width: 48%;
-	list-style: none;
-	border-right: 1px solid #e5e5e8;
-	background: #ecedf3;
-	margin: 0 1% 0 0;
-	padding: 0.7em 0.7em 0.8em 0.7em;
-	line-height: 1em;
-}
-#permissions li
-{
-	width: 100%;
-	padding: 0;
-	list-style: none;
-	margin: 0 0 1px 0;
-}
-#permissions li span.permission_status, #permissions li span.alert
-{
-	line-height: 2.9em;
-	font-size: 0.85em;
-}
-
-#tracking div.content dl
-{
-	border-bottom: 0;
-	margin: 0;
-	padding: 0;
-}
-
-#creator dl
-{
-	margin: 0;
-}
-#creator dt
-{
-	width: 40%;
-	float: left;
-	clear: both;
-	margin: 0 0 10px 0;
-}
-#creator dd
-{
-	float: left;
-	width: 60%;
-	margin: 0 0 10px 0;
-	overflow: auto;
-}
-
-.ignoreboards
-{
-	margin: 0 2%;
-	padding: 0;
-	width: 45%;
-}
-.ignoreboards a
-{
-	font-weight: bold;
-	text-decoration: none;
-	border-bottom: 1px solid #c4c4c4;
-	padding: 0.1em 0;
-}
-.ignoreboards a:hover
-{
-	text-decoration: none;
-	border-bottom: 1px solid #476c8e;
-}
-.ignoreboards ul
-{
-	margin: 0;
-	padding: 0;
-}
-.ignoreboards li
-{
-	list-style: none;
-	float: left;
-	clear: both;
-}
-.ignoreboards li.category
-{
-	margin: 0.7em 0 0 0;
-	width: 100%;
-}
-.ignoreboards li ul
-{
-	margin: 0.2em 0 0 0;
-}
-.ignoreboards li.category ul li.board
-{
-	width: 93%;
-}
-
-#theme_settings
-{
-	overflow: auto;
-	margin: 0;
-	padding: 0;
-}
-
-#theme_settings li
-{
-	list-style: none;
-	margin: 10px 0;
-	padding: 0;
-}
-/*Paid Subscriptions*/
-#paid_subscription
-{
-	width: 100%;
-}
-#paid_subscription dl.settings
-{
-	margin-bottom: 0;
-}
-#paid_subscription dl.settings dd, #paid_subscription dl.settings dt
-{
-	margin-bottom: 4px;
-}
-/*pick theme*/
-#pick_theme
-{
-	width: 100%;
-	float: left;
-}
-/*Issue a warning*/
-#warn_body{
-	width: 80%;
-	font-size: 0.9em;
-}
-
-/* Styles for the statistics center.
-------------------------------------------------- */
-#statistics
-{
-	padding-bottom: 0.5em;
-}
-#statistics h4.titlebg
-{
-	text-align: center;
-	margin-bottom: 5px;
-}
-#stats_left, #top_posters, #top_topics_replies, #top_topics_starter
-{
-	float: left;
-	width: 49.5%;
-}
-#stats_right, #top_boards, #top_topics_views, #most_online
-{
-	float: right;
-	width: 49.5%;
-}
-dl.stats
-{
-	clear: both;
-	overflow: hidden;
-	margin: 0;
-	padding: 0;
-}
-dl.stats dt
-{
-	width: 49%;
-	float: left;
-	margin: 0 0 4px 0;
-	line-height: 16px;
-	padding: 0;
-	clear: both;
-	font-size: 1em;
-}
-dl.stats dd
-{
-	text-align: right;
-	width: 50%;
-	font-size: 1em;
-	float: right;
-	margin: 0 0 4px 0;
-	line-height: 16px;
-	padding: 0;
-}
-.stats_bar
-{
-	float: left;
-	background-image: url(../images/bar_stats.png);
-	height: 16px;
-	font-size: 0.9em;
-	display: block;
-	text-align: left;
-	color: #fff;
-	font-weight: bold;
-	background-position: top center;
-}
-.stats_bar span
-{
-	padding-left: 2px;
-}
-
-/* Styles for the personal messages section.
-------------------------------------------------- */
-
-#personal_messages
-{
-	padding: 1px;
-}
-#personal_messages #top_subject
-{
-	padding-left: 11.75em !important;
-}
-#personal_messages div.labels
-{
-	padding: 0 1em 0 0;
-}
-#personal_messages .capacity_bar
-{
-	background: #fff;
-	border: 1px solid #000;
-	height: 7px;
-	width: 75%;
-	margin: 0 auto;
-}
-#personal_messages .capacity_bar div
-{
-	border: none;
-	height: 7px;
-}
-#personal_messages .capacity_bar div.empty
-{
-	background: #468008;
-}
-#personal_messages .capacity_bar div.filled
-{
-	background: #EEA800;
-}
-#personal_messages .capacity_bar div.full
-{
-	background: #A53D05;
-}
-#personal_messages .reportlinks
-{
-	padding: 0.5em 1.3em;
-}
-#searchLabelsExpand li
-{
-	padding: 0.3em 0.5em;
-}
-
-/* Styles for the calendar section.
-------------------------------------------------- */
-.calendar_table
-{
-	margin-bottom: 0.7em;
-}
-
-/* Used to indicate the current day in the grid. */
-.calendar_today
-{
-	background-color: #fff;
-}
-
-#month_grid
-{
-	width: 200px;
-	text-align: center;
-	float: left;
-}
-
-#month_grid table
-{
-	width: 200px;
-	border-collapse: collapse;
-	border: 1px solid #adadad;
-}
-
-#month_grid table td, #month_grid table th
-{
-	border: 1px solid #adadad;
-}
-
-#main_grid table
-{
-	width: 100%;
-	padding-bottom: 4px;
-	border-collapse: collapse;
-	border: 1px solid #adadad;
-}
-
-#main_grid table td, #main_grid table th
-{
-	border: 1px solid #adadad;
-}
-
-#main_grid table h3.catbg
-{
-	text-align: center;
-
-	border-top: 1px solid #adadad;
-	border-bottom: none;
-}
-
-#main_grid table h4
-{
-	border: none;
-}
-
-#main_grid table.weeklist td.windowbg
-{
-	text-align: center;
-	height: 49px;
-	width: 25px;
-	font-size: large;
-	padding: 0 7px;
-	border-bottom: 1px solid #adadad;
-}
-
-#main_grid table.weeklist td.weekdays
-{
-	height: 49px;
-	width: 100%;
-	padding: 4px;
-	text-align: left;
-	vertical-align: middle;
-	border-right: 1px solid #adadad;
-	border-bottom: 1px solid #adadad;
-}
-
-#main_grid h3.weekly
-{
-	text-align: center;
-	padding-left: 0;
-	font-size: large;
-	height: 29px;
-}
-
-#main_grid h3 span.floatleft, #main_grid h3 span.floatright
-{
-	display: block;
-
-}
-
-#main_grid table th.days
-{
-	width: 14%;
-}
-
-#main_grid table td.weeks
-{
-	vertical-align: middle;
-	text-align: center;
-}
-
-#main_grid table td.days
-{
-	vertical-align: top;
-
-}
-
-a.modify_event
-{
-	color: red;
-}
-
-span.hidelink
-{
-	font-style: italic;
-}
-
-#calendar_navigation
-{
-	text-align: center;
-}
-
-#calendar .buttonlist_bottom
-{
-	border-bottom: 1px solid #adadad;
-	padding: 0 0 0 1ex;
-	margin: 0 0 1ex 0;
-}
-
-/* Styles for the memberlist section.
-------------------------------------------------- */
-#mlist_search
-{
-	margin: auto;
-	width: 400px;
-}
-
-/* Styles for the basic search section.
-------------------------------------------------- */
-#simple_search p
-{
-	padding: 0.5em;
-}
-#simple_search, #simple_search p, #advanced_search
-{
-	text-align: center !important;
-	margin: 0;
-}
-#search_error
-{
-	font-style: italic;
-	padding: 0.3em 1em;
-}
-#search_term_input
-{
-	font-size: 115%;
-	margin: 0 0 1em;
-}
-
-/* Styles for the advanced search section.
-------------------------------------------------- */
-#searchform fieldset
-{
-	text-align: left;
-	padding: 0;
-	margin: 0;
-	border: none;
-}
-fieldset#advanced_search .roundframe
-{
-	border-bottom: none !important;
-}
-#advanced_search dl#search_options
-{
-	margin: 0 auto;
-	width: 600px;
-	padding-top: 1em;
-	overflow: hidden;
-}
-#advanced_search dt
-{
-	clear: both;
-	float: left;
-	padding: 0.2em;
-	text-align: right;
-	width: 20%;
-}
-#advanced_search dd
-{
-	width: 75%;
-	float: left;
-	padding: 0.2em;
-	margin: 0 0 0 0.5em;
-	text-align: left;
-}
-#searchform p.clear
-{
-	clear: both;
-}
-
-/* Styles for the search results page.
-------------------------------------------------- */
-.pagelinks
-{
-	padding: 0.5em;
-}
-.topic_table td blockquote, .topic_table td .quoteheader
-{
-	margin: 0.5em;
-}
-.search_results_posts
-{
-	overflow: hidden;
-}
-.search_results_posts .inner
-{
-	padding: 0.5em 1em;
-	overflow: hidden;
-}
-.search_results_posts .windowbg2
-{
-	margin-top: 4px;
-}
-.search_results_posts .buttons
-{
-	padding: 5px 1em 0 0;
-}
-
-/* Styles for the help section.
-------------------------------------------------- */
-
-#helpmain
-{
-	padding: 1em;
-	border: 1px solid #696969;
-}
-#helpmain p
-{
-	margin: 0 0 1.5em 0;
-	line-height: 1.5em;
-}
-#helpmain ul
-{
-	line-height: 1.5em;
-}
-
-/* Depreciated stuff from the old days.
-------------------------------------------------- */
-
-/* This style will make sure all headers use the same padding throughout. */
-.headerpadding
-{
-	padding: 0.5em;
-}
-/* smaller padding used in paragraphs, sections etc */
-.smallpadding
-{
-	padding: 0.2em;
-}
-/* larger padding used in paragraphs, sections etc */
-.largepadding
-{
-	padding: 0.7em;
-}
-
-/* A small space to the next section. */
-.marginbottom
-{
-	margin-bottom: 1em;
-}
-/* On the top too. */
-.margintop
-{
-	margin-top: 1em !important;
-}
-/* remove bold/italic styles */
-span.plainstyle
-{
-	font-weight: normal;
-	font-style: normal;
-}
-/* float a list horizontally */
-ul.horizlist
-{
-	width: 100%;
-}
-ul.horizlist li
-{
-	float: left;
-	padding: 0.2em 0.4em 0.2em 0.4em;
-	vertical-align: top;
-}
-/* make a inline-list */
-ul.nolist li
-{
-	display: inline;
-}
-/* Helping style to clear floated items. */
-.clearfix:after
-{
-	content: ".";
-	display: block;
-	height: 0;
-	clear: both;
-	visibility: hidden;
-}
-
-.clearfix
-{
-	display: inline-block;
-}
-
-/* Hides from IE-mac. \*/
-* html .clearfix
-{
-	height: 1%;
-}
-.clearfix
-{
-	display: block;
-}
-/* End hide from IE-mac. */
-
-/* This is used for tables that have a grid/border background color (such as the topic listing.) */
-.bordercolor
-{
-	background-color: #adadad;
-	padding: 0;
-}
-
-/* This is used on tables that should just have a border around them. */
-.tborder
-{
-	padding: 1px;
-	border: 1px solid #696969;
-	background-color: #fff;
-}
-/* If some random peep decides to use a description class within a tborder (happened to me!) */
-.tborder .description
-{
-	margin-bottom: 0;
-}
-
-/* Styles for print media.
-------------------------------------------------------- */
-@media print
-{
-	#headerarea
-	{
-		display: none;
-	}
-
-	.tborder
-	{
-		border: none;
-	}
-}

+ 0 - 9
Themes/core/css/index.php

@@ -1,9 +0,0 @@
-<?php
-
-// Try to handle it with the upper level index.php. (it should know what to do.)
-if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
-	include (dirname(dirname(__FILE__)) . '/index.php');
-else
-	exit;
-
-?>

+ 0 - 1071
Themes/core/css/rtl.css

@@ -1,1071 +0,0 @@
-/* Common classes to ease styling.
-------------------------------------------------------- */
-
-.floatright
-{
-	float: left;
-}
-.floatleft
-{
-	float: right;
-}
-.clear_left
-{
-	clear: right;
-}
-.clear_right
-{
-	clear: left;
-}
-.righttext
-{
-	text-align: left;
-}
-.lefttext
-{
-	text-align: right;
-}
-
-/* GenericList */
-.additional_row input
-{
-	margin-left: 1em;
-}
-
-/* Lists with settings use these a lot.
-------------------------------------------------------- */
-dl.settings dt
-{
-	float: right;
-}
-dl.settings dt.windowbg
-{
-	float: right;
-}
-dl.settings dd
-{
-	float: right;
-}
-dl.settings img
-{
-	margin: 0 0 0 10px;
-}
-
-/* All the signatures used in the forum.  If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
-.signature
-{
-	clear: left;
-}
-.custom_fields_above_signature
-{
-	clear: left;
-}
-
-/* Styles for the standard dropdown menus.
-------------------------------------------------------- */
-/* Container for the new admin menu */
-#adm_container
-{
-	float: right;
-	margin-left: 0;
-	margin-right: 10px;
-}
-.main_menu li
-{
-	float: right;
-}
-
-/* the linktree */
-ul.linktree li
-{
-	float: right;
-	padding: 0 0 0 0.5em;
-}
-
-/* First layer of menu items */
-ul.admin_menu li
-{
-	float: right !important;
-	padding-left: 4px;
-}
-ul.admin_menu li ul
-{
-	right: 0;
-}
-ul.admin_menu li ul li a
-{
-	padding: 0.5em 0.5em 0.5em 2em;
-}
-/* Second layer of menu items */
-ul.admin_menu li ul
-{
-	border-left: 1px solid #808080;
-	border-right: 2px solid #6888a7;
-}
-/* Third layer of menu items */
-ul.admin_menu li ul li:hover ul, ul.admin_menu li ul li.over ul
-{
-	/* now a very tricky stuff, never seen before ;-) */
-	/*IE and Firefox like it right */
-	right: 19em;
-	/*Opera needs left*/
-	left: -19.2em;
-	top: auto;
-	margin: -2em 0 0 0;
-	border-left: 1px solid #808080;
-	border-right: 2px solid #6888a7;
-}
-ul.admin_menu li ul li a.subsection
-{
-	background-image: url(../images/admin/subsection2.gif);
-	background-position: 2% 50%;
-}
-/* The dropdown menu toggle image */
-div#menu_toggle
-{
-	float: left;
-	margin: 0 0 0 10px;
-}
-/* Styles for the standard button lists.
-------------------------------------------------------- */
-/* The old-style button strips, with images */
-.oldbuttonlist
-{
-	text-align: left;
-}
-
-/* Styles for the general looks for the Core theme.
-------------------------------------------------------- */
-#user_section #myavatar
-{
-	margin: 0 0 0 0.5em;
-	border-right: none;
-	border-left: 1px solid #adadad;
-	float: right;
-}
-#footerarea p
-{
-	text-align: right;
-	padding-right: 0.5em;
-}
-
-/* Styles for headers.
-------------------------------------------------------- */
-
-h3.catbg img.icon, div.titlebg img.icon, h3.catbg img
-{
-	float: right;
-	margin: 5px 0 0 8px;
-}
-
-/* Styles for the general looks for the Core theme.
-------------------------------------------------------- */
-
-.main_menu ul
-{
-	padding-right: 1em;
-	float: right;
-}
-.main_menu
-{
-	overflow: hidden;
-}
-
-/* Styles for the board index.
-------------------------------------------------- */
-
-p#stats
-{
-	text-align: left;
-}
-#upshrink_ic
-{
-	margin-right: 0;
-	margin-left: 2ex;
-	text-align: left;
-}
-
-#posticons .buttonlist
-{
-	margin-right: 0;
-	margin-left: 1em;
-	float: left;
-}
-
-/* Styles for the info center on the board index.
----------------------------------------------------- */
-
-#infocenterframe
-{
-	margin-top: 2em;
-	clear: both;
-}
-/* each section in infocenter has this class */
-.infocenter_section p.section
-{
-	float: right;
-}
-.infocenter_section div.sectionbody
-{
-	margin-left: 0;
-	margin-right: 30px;
-	border-left: none;
-	border-right: 1px solid #a0a0a0;
-}
-/* recent posts - or just one recent post */
-dl#infocenter_recentposts
-{
-	float: right;
-}
-dl#infocenter_recentposts dt
-{
-	clear: right;
-	float: right;
-}
-dl#infocenter_recentposts dd
-{
-	clear: left;
-	float: left;
-	text-align: left;
-}
-
-/* Styles for the message (topic) index.
----------------------------------------------------- */
-.buttonlist, .buttonlist_bottom
-{
-	margin-left: 0;
-	margin-right: 1em;
-	float: left;
-}
-#message_index_jump_to
-{
-	margin: 2em 2em 0 4em;
-}
-.lastpost img
-{
-	float: left;
-}
-/* Styles for the display template (topic view).
----------------------------------------------------- */
-/* a smaller quick-button list */
-ul.quickbuttons
-{
-	margin: 0.9em 0 0 11px;
-	clear: left;
-	float: left;
-	text-align: left;
-}
-ul.quickbuttons li
-{
-	float: left;
-	margin: 0 11px 0 0;
-}
-ul.quickbuttons li a
-{
-	padding: 0 20px 0.7em 0;
-	float: left;
-}
-ul.quickbuttons li.quote_button
-{
-	background: url(../images/buttons/quote.gif) no-repeat 100% 0;
-}
-ul.quickbuttons li.remove_button
-{
-	background: url(../images/buttons/delete.gif) no-repeat 100% 0;
-}
-ul.quickbuttons li.modify_button
-{
-	background: url(../images/buttons/modify.gif) no-repeat 100% 0;
-}
-ul.quickbuttons li.approve_button
-{
-	background: url(../images/buttons/approve.gif) no-repeat 100% 0;
-}
-ul.quickbuttons li.restore_button
-{
-	background: url(../images/buttons/restore_topic.gif) no-repeat 100% 0;
-}
-ul.quickbuttons li.split_button
-{
-	background: url(../images/buttons/split.gif) no-repeat 100% 0;
-}
-ul.quickbuttons li.reply_button
-{
-	background: url(../images/buttons/reply.gif) no-repeat 100% 0;
-}
-ul.quickbuttons li.reply_all_button
-{
-	background: url(../images/buttons/reply.gif) no-repeat 100% 0;
-}
-ul.quickbuttons li.notify_button
-{
-	background: url(../images/buttons/notify_sm.gif) no-repeat 100% 0;
-}
-ul.quickbuttons li.inline_mod_check
-{
-	margin: 0 5px 0 0;
-}
-#moderationbuttons
-{
-	margin-left: 0;
-	margin-right: 0.5em;
-}
-#postbuttons .nav, #postbuttons_lower .nav
-{
-	margin: 0.5em 0 0 0.5em;
-	text-align: left;
-}
-#postbuttons_lower .nav
-{
-	margin: 0 0.5em 0.5em 0;
-}
-#postbuttons, #postbuttons_lower
-{
-	text-align: right;
-}
-/* Poll question */
-h4#pollquestion
-{
-	padding: 1em 2em 1em 0;
-}
-#poll_options div.submitbutton
-{
-	clear: both;
-	padding: 0 2em 1em 0;
-}
-/* Poll results */
-#poll_options dl.options
-{
-	padding: 1em 2em 0 2.5em;
-}
-div#pollmoderation
-{
-	margin: -1em 2em 0 0;
-}
-#forumposts h3.catbg3 img
-{
-	float: right;
-}
-#forumposts h3.catbg3 span
-{
-	float: right;
-	padding-left: 0;
-	padding-right: 2%;
-}
-#forumposts h3.catbg3 span#top_subject
-{
-	padding-left: 0;
-	padding-right: 9.5em;
-}
-.poster
-{
-	float: right;
-}
-.post
-{
-	clear: left;
-	float: right;
-}
-.postarea
-{
-	margin-left: 0;
-	margin-right: 16em;
-}
-.messageicon
-{
-	float: right;
-}
-.keyinfo
-{
-	float: right;
-}
-ul.postingbuttons
-{
-	float: left;
-	padding: 0 0 0 0.5em;
-}
-ul.postingbuttons li
-{
-	float: right;
-	margin: 0 0 0 0.5em;
-}
-.modifybutton
-{
-	float: left;
-	margin: 0 0 0.5em 0.5em;
-}
-.postfooter
-{
-	margin-left: 0;
-	margin-right: 16em;
-}
-.moderatorbar
-{
-	clear: left;
-	margin: 1em 16em 0 0;
-}
-#pollmoderation, #moderationbuttons_strip
-{
-	float: right;
-}
-
-/* Styles for the quick reply area.
----------------------------------------------------- */
-
-#quickReplyOptions #quickReplyWarning
-{
-	text-align: right;
-	float: right;
-}
-#quickReplyOptions #quickReplyContent
-{
-	text-align: left;
-	float: left;
-	border-left: none;
-	border-right: 1px solid #aaa;
-}
-#quickReplyWarning
-{
-	float: right;
-}
-
-/* Styles for edit post section
----------------------------------------------------- */
-#post_header dt
-{
-	float: right;
-}
-#post_header dd
-{
-	float: right;
-}
-ul.post_options
-{
-	margin: 0 1em 0 0;
-}
-ul.post_options li
-{
-	float: right;
-}
-#postAttachment dd, #postAttachment2 dd
-{
-	margin: .3em 1em .3em 0;
-}
-#postAttachment dt, #postAttachment2 dt
-{
-	font-weight: bold;
-}
-#postAttachment3
-{
-	margin-left: 0;
-	margin-left: 1em;
-}
-.post_verification #verification_control
-{
-	margin: .3em 1em .3em 0;
-}
-
-/* Styles for edit event section
----------------------------------------------------- */
-#post_event div.event_options
-{
-	float: left;
-}
-#post_event #event_main input
-{
-	margin: 0 0 1em 0;
-	float: right;
-}
-#post_event #event_main div.smalltext
-{
-	float: left;
-}
-#post_event ul.event_main li
-{
-	float: left;
-}
-#post_event ul.event_options
-{
-	padding: 0 .7em .7em 0;
-}
-#post_event #event_main select, #post_event ul.event_options li select, #post_event ul.event_options li .input_check
-{
-	margin: 0 0 0 1em;
-}
-
-/* Styles for edit poll section.
----------------------------------------------------- */
-#edit_poll fieldset input
-{
-	margin-right: 7em;	
-}
-#edit_poll ul.poll_main li
-{
-	padding-right: 1em;
-}
-#edit_poll ul.poll_main input
-{
-	margin-right: 1em;
-}
-#edit_poll div.poll_options
-{
-	float: right;
-}
-#edit_poll ul.poll_main, dl.poll_options
-{
-	padding: 0 .7em 0 0;
-}
-#edit_poll dl.poll_options dt
-{
-	padding: 0 1em 0 0;
-}
-#edit_poll dl.poll_options dd input
-{
-	margin-right: 0; 
-}
-
-/* Styles for the recent messages section.
----------------------------------------------------- */
-.readbuttons .buttonlist, .readbuttons .buttonlist_bottom
-{
-	margin-right: 0;
-	margin-left: 1em;
-	float: left;
-}
-
-/* Styles for the move topic section.
----------------------------------------------------- */
-.move_topic
-{
-	text-align: right;
-}
-
-/* Styles for the login areas.
-------------------------------------------------------- */
-.login dt
-{
-	float: right;
-	text-align: left;
-}
-.login dd
-{
-	float: left;
-	text-align: right;
-}
-.login h3 img
-{
-	float: right;
-	margin: 4px 0 0 0.5em;
-}
-
-/* Styles for the registration section.
-------------------------------------------------------- */
-dl.register_form
-{
-	clear: left;
-}
-
-dl.register_form dt
-{
-	float: right;
-	clear: both;
-}
-dl.register_form dd
-{
-	float: right;
-}
-
-/* Styles for maintenance mode.
-------------------------------------------------------- */
-#maintenance_mode
-{
-	text-align: right;
-}
-#maintenance_mode img.floatleft
-{
-	margin-right: 0;
-	margin-left: 1em;
-}
-
-h3.titlebg img
-{
-	margin-right: 0;
-	margin-left: 0.5em;
-}
-tr.titlebg td
-{
-	padding-left: 0.7em;
-	padding-right: 0.7em;
-}
-#admin_menu
-{
-	padding-right: 0;
-}
-#admin_content
-{
-	clear: right;
-}
-
-/* Styles for sidebar menus.
-------------------------------------------------------- */
-#left_admsection
-{
-	float: right;
-	margin-right: 0;
-	margin-left: 10px;
-}
-.left_admmenu li
-{
-	padding: 0 0.5em 0 0;
-}
-
-/* Styles for generic tables.
-------------------------------------------------------- */
-.topic_table td.stickybg2
-{
-	background-position: 2% 4px;
-}
-.topic_table td.lockedbg2
-{
-	background-position: 2% 4px;
-}
-
-/* Styles for (fatal) errors.
-------------------------------------------------- */
-.errorbox p.alert
-{
-	float: right;
-}
-
-/* Styles for the profile section.
-------------------------------------------------- */
-#profileview #detailedinfo .content
-{
-	border-left: none;
-	border-right: 1px solid #aaa;
-}
-/* The basic user info on the left */
-#basicinfo
-{
-	float: right;
-}
-#profileview #basicinfo .content
-{
-	padding: 1em;
-}
-#detailedinfo
-{
-	float: left;
-}
-#basicinfo ul li
-{
-	float: right;
-	margin-left: 5px;
-	margin-right: 0;
-}
-#detailedinfo div.content dl, #tracking div.content dl
-{
-	clear: left;
-}
-#detailedinfo div.content dt, #tracking div.content dt
-{
-	float: right;
-}
-#detailedinfo div.content dd, #tracking div.content dd
-{
-	float: right;
-}
-.signature, .custom_fields_above_signature, .attachments
-{
-	clear: left;
-}
-#avatar_server_stored div
-{
-	float: right;
-}
-#main_admsection #basicinfo h4
-{
-	float: right;
-}
-#main_admsection #basicinfo img.avatar
-{
-	float: left;
-}
-#main_admsection #basicinfo ul
-{
-	clear: right;
-}
-#main_admsection #basicinfo span#userstatus
-{
-	clear: right;
-}
-
-
-/* Profile statistics */
-#generalstats div.content dt
-{
-	float: right;
-}
-#generalstats div.content dd
-{
-	float: right;
-}
-
-/* Activity by time */
-#activitytime
-{
-	clear: right;
-}
-.activity_stats li
-{
-	float: right;
-}
-.activity_stats li span
-{
-	border-width: 1px 0 0 1px;
-}
-.activity_stats li.last span
-{
-	border-left: none;
-}
-
-/* Most popular boards by posts and activity */
-#popularposts
-{
-	float: right;
-}
-#popularactivity
-{
-	float: left;
-}
-
-#popularposts div.content dt, #popularactivity div.content dt
-{
-	float: right;
-}
-#popularposts div.content dd, #popularactivity div.content dd
-{
-	float: right;
-}
-
-.profile_pie
-{
-	background-image: url(../images/stats_pie_rtl.png);
-	float: right;
-	margin-right: 0;
-	margin-left: 1em;
-}
-
-/* View posts */
-.time
-{
-	float: left;
-}
-.counter
-{
-	padding: 0.2em 0.2em 0.1em 0.5em;
-	float: right;
-}
-.mod_icons
-{
-	text-align: left;
-	margin-right: 0;
-	margin-left: 1em;
-}
-#permissions div.permission_name
-{
-	margin: 0 0 0 1%;
-}
-#ip_list li.header, #ip_list li.ip
-{
-	float: right;
-}
-#creator dt
-{
-	float: right;
-}
-#creator dd
-{
-	float: right;
-}
-
-.ignoreboards ul
-{
-	margin: 0 1em 0 0;
-}
-.ignoreboards li
-{
-	float: right;
-}
-
-#pick_theme
-{
-	float: right;
-}
-
-/* Styles for the statistics center.
-------------------------------------------------- */
-#stats_left, #top_posters, #top_topics_replies, #top_topics_starter
-{
-	float: right;
-}
-#stats_right, #top_boards, #top_topics_views, #most_online
-{
-	float: left;
-}
-dl.stats dt
-{
-	float: right;
-}
-dl.stats dd
-{
-	text-align: left;
-	float: left;
-}
-.stats_bar
-{
-	float: right;
-}
-
-/* Styles for the personal messages section.
-------------------------------------------------- */
-
-#personal_messages #top_subject
-{
-	padding-left: 0 !important;
-	padding-right: 11.75em !important;
-}
-
-/* Styles for the calendar section.
-------------------------------------------------- */
-#month_grid
-{
-	float: right;
-}
-
-#main_grid table.weeklist td.weekdays
-{
-	text-align: right;
-	border-right: none;
-	border-left: 1px solid #adadad;
-}
-
-#calendar .buttonlist_bottom
-{
-	padding: 0 1ex 0 0;
-}
-
-/* Styles for the advanced search section.
-------------------------------------------------- */
-#searchform fieldset
-{
-	text-align: right;
-}
-#advanced_search dt
-{
-	float: right;
-	text-align: left;
-}
-#advanced_search dd
-{
-	float: right;
-	margin: 0 0.5em 0 0;
-	text-align: right;
-}
-/* Boards picker */
-#searchform fieldset div#searchBoardsExpand ul
-{
-	margin: 0 1em 0 0;
-}
-#searchform fieldset div#searchBoardsExpand li
-{
-	float: right;
-}
-#searchform fieldset p
-{
-	text-align: right;
-}
-
-/* Styles for the search results page.
-------------------------------------------------- */
-.search_results_posts .buttons
-{
-	padding: 5px 0 0 1em;
-}
-
-/* Styles for the help section.
-------------------------------------------------- */
-#helpmain ol.la
-{
-	padding-right: 1.5em;
-	padding-left: 0;
-}
-
-/* The admin menu
-------------------------------------------------- */
-
-ul.admin_menu li
-{
-	position: relative;
-	float: right;
-	background: url(../images/admintab_back.gif) top right repeat-x;
-	padding-right: 4px;
-}
-ul.admin_menu li.last
-{
-	background: url(../images/admintab_back.gif) top right repeat-x;
-}
-ul.admin_menu li.first
-{
-	background: url(../images/admintab_right.gif) top right repeat-x;
-}
-ul.admin_menu li.first.chosen h4
-{
-	background: url(../images/admintab_active_last.gif) top right repeat-x;
-	padding-right: 16px;
-}
-ul.admin_menu li.chosen
-{
-	background: url(../images/admintab_active_left.gif) no-repeat;
-	padding: 0 0 0 6px;
-}
-
-ul.admin_menu li.last.chosen h4
-{
-	background: url(../images/admintab_active_right.gif) top right no-repeat;
-	padding-right: 17px;
-}
-
-ul.admin_menu li.chosen h4
-{
-	background: url(../images/admintab_active_right.gif) top right no-repeat;
-	padding-right: 10px;
-}
-
-.main_menu li.last.active
-{
-	float: right;
-	background: url(../images/maintab_last.gif) no-repeat bottom right;
-	padding: 0 8px 0 0;
-}
-/* IE6 doesn't support multiple class selectors */
-.main_menu li.lastactive
-{
-	padding: 0 8px 0 0;
-	background: url(../images/maintab_last.gif) no-repeat bottom right;
-}
-
-/* float a list horizontally */
-ul.horizlist li
-{
-	float: right;
-}
-.buttonlist, .buttonlist_bottom
-{
-	margin-left: 1.5em !important;
-}
-
-.generic_tab_strip .buttonlist
-{
-	float: left !important;
-}
-
-/* Styles for the admincenter (reverse admin.css).
-------------------------------------------------- */
-#quick_search
-{
-	margin-left: 5px !important;
-}
-.features_image
-{
-	float: right !important;
-	margin: 0 1em 0.5em 2em !important;
-}
-.features_switch
-{
-	float: left !important;
-}
-.features h4
-{
-	padding: 1em 0.5em 0.5em 0 !important;
-}
-/* admin home */
-#live_news div.content dl
-{
-	padding: 0.5em 0.5em 0 0 !important;
-}
-#smfAnnouncements dd
-{
-	padding: 0;
-	margin: 0 1.5em 1em 0 !important;
-}
-#quick_tasks li
-{
-	float: right;
-	list-style-type: none !important;
-}
-.home_image
-{
-	float: right !important;
-}
-/* common admin classes */
-.additional_row input
-{
-	margin-left: 0;
-	margin-right: 2em;
-}
-#error_log td div.marginleft
-{
-	margin: 0 1ex 0 0 !important;
-}
-
-/* Styles for the package manager.
-------------------------------------------------- */
-#package_list .tborder
-{
-	margin: .25em 26px .25em 0 !important;
-}
-#package_list ol, #package_list ol li
-{
-	margin-left: 0 !important;
-	margin-right: 50px !important;
-}
-
-/*ManageBoards*/
-.move_links
-{
-	padding: 0 0 0 13px !important;
-}
-
-span.search_weight
-{
-	text-align: left !important;
-}
-
-/*Manage Bans*/
-.ban_restriction
-{
-	margin: 0.2em 2.2em 0.2em 0 !important;
-}
-/* Themes */
-.is_directory
-{
-	padding-right: 18px !important;
-	background-position: 100% 0 !important;
-}
-
- /* Styles for the moderation center.
-------------------------------------------------- */
-.modblock_left
-{
-	float: right !important;
-	clear: left !important;
-}
-.modblock_right
-{
-	float: left !important;
-}
-ul.moderation_notes li
-{
-	padding: 4px 4px 4px 0 !important;
-}

+ 0 - 8
Themes/core/css/webkit.css

@@ -1,8 +0,0 @@
-/* special styles for Safari (and other Webkit based browsers like Chrome)
-Webkit needs this otherwise the post goes off to the right.
-Causes issues in IE browsers in (and cached search engines pages it breaks them).
-*/
-.postarea .post
-{
-	float: left;
-}

binární
Themes/core/images/Female.gif


binární
Themes/core/images/Male.gif


binární
Themes/core/images/admin/administration.gif


binární
Themes/core/images/admin/attachment.gif


binární
Themes/core/images/admin/ban.gif


binární
Themes/core/images/admin/boards.gif


binární
Themes/core/images/admin/calendar.gif


binární
Themes/core/images/admin/change_menu.png


binární
Themes/core/images/admin/change_menu2.png


binární
Themes/core/images/admin/corefeatures.gif


binární
Themes/core/images/admin/current_theme.gif


binární
Themes/core/images/admin/engines.gif


binární
Themes/core/images/admin/feature_cd.png


binární
Themes/core/images/admin/feature_cp.png


binární
Themes/core/images/admin/feature_k.png


binární
Themes/core/images/admin/feature_ml.png


binární
Themes/core/images/admin/feature_pm.png


binární
Themes/core/images/admin/feature_ps.png


binární
Themes/core/images/admin/feature_rg.png


binární
Themes/core/images/admin/feature_sp.png


binární
Themes/core/images/admin/feature_w.png


binární
Themes/core/images/admin/features.gif


binární
Themes/core/images/admin/features_and_options.png


binární
Themes/core/images/admin/forum_maintenance.png


binární
Themes/core/images/admin/ignore.gif


+ 0 - 9
Themes/core/images/admin/index.php

@@ -1,9 +0,0 @@
-<?php
-
-// Try to handle it with the upper level index.php. (it should know what to do.)
-if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
-	include (dirname(dirname(__FILE__)) . '/index.php');
-else
-	exit;
-
-?>

binární
Themes/core/images/admin/languages.gif


binární
Themes/core/images/admin/logs.gif


binární
Themes/core/images/admin/mail.gif


binární
Themes/core/images/admin/maintain.gif


binární
Themes/core/images/admin/membergroups.gif


binární
Themes/core/images/admin/members.gif


binární
Themes/core/images/admin/members.png


binární
Themes/core/images/admin/modifications.gif


binární
Themes/core/images/admin/news.gif


binární
Themes/core/images/admin/package_ops.gif


binární
Themes/core/images/admin/packages.gif


binární
Themes/core/images/admin/packages.png


binární
Themes/core/images/admin/paid.gif


binární
Themes/core/images/admin/permissions.gif


binární
Themes/core/images/admin/permissions.png


binární
Themes/core/images/admin/post_moderation_allow.gif


binární
Themes/core/images/admin/post_moderation_deny.gif


binární
Themes/core/images/admin/post_moderation_moderate.gif


binární
Themes/core/images/admin/posts.gif


binární
Themes/core/images/admin/regcenter.gif


binární
Themes/core/images/admin/reports.gif


binární
Themes/core/images/admin/scheduled.gif


binární
Themes/core/images/admin/search.gif


binární
Themes/core/images/admin/security.gif


binární
Themes/core/images/admin/server.gif


binární
Themes/core/images/admin/smiley.gif


binární
Themes/core/images/admin/smilies_and_messageicons.png


binární
Themes/core/images/admin/subsection.gif


binární
Themes/core/images/admin/subsection2.gif


binární
Themes/core/images/admin/support.gif


binární
Themes/core/images/admin/support_and_credits.png


binární
Themes/core/images/admin/switch_off.png


binární
Themes/core/images/admin/switch_on.png


binární
Themes/core/images/admin/themes.gif


binární
Themes/core/images/admin/themes_and_layout.png


binární
Themes/core/images/admintab_active_last.gif


binární
Themes/core/images/admintab_active_left.gif


binární
Themes/core/images/admintab_active_right.gif


binární
Themes/core/images/admintab_back.gif


binární
Themes/core/images/admintab_left.gif


binární
Themes/core/images/admintab_right.gif


binární
Themes/core/images/aim.gif


binární
Themes/core/images/bar.gif


binární
Themes/core/images/bar_stats.png


binární
Themes/core/images/bbc/bbc_bg.gif


binární
Themes/core/images/bbc/bbc_hoverbg.gif


binární
Themes/core/images/bbc/bold.gif


binární
Themes/core/images/bbc/center.gif


binární
Themes/core/images/bbc/code.gif


binární
Themes/core/images/bbc/divider.gif


binární
Themes/core/images/bbc/email.gif


binární
Themes/core/images/bbc/flash.gif


binární
Themes/core/images/bbc/ftp.gif


binární
Themes/core/images/bbc/glow.gif


binární
Themes/core/images/bbc/hr.gif


binární
Themes/core/images/bbc/img.gif


+ 0 - 9
Themes/core/images/bbc/index.php

@@ -1,9 +0,0 @@
-<?php
-
-// Try to handle it with the upper level index.php. (it should know what to do.)
-if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
-	include (dirname(dirname(__FILE__)) . '/index.php');
-else
-	exit;
-
-?>

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů