Vergleich showthread.php - 1.8.16 - 1.8.20

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 13Zeile 13

$templatelist = "showthread,postbit,postbit_author_user,postbit_author_guest,showthread_newthread,showthread_newreply,showthread_newreply_closed,postbit_avatar,postbit_find,postbit_pm,postbit_www,postbit_email,postbit_edit,postbit_quote,postbit_report";
$templatelist .= ",multipage,multipage_breadcrumb,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start,showthread_inlinemoderation_softdelete,showthread_poll_editpoll";


$templatelist = "showthread,postbit,postbit_author_user,postbit_author_guest,showthread_newthread,showthread_newreply,showthread_newreply_closed,postbit_avatar,postbit_find,postbit_pm,postbit_www,postbit_email,postbit_edit,postbit_quote,postbit_report";
$templatelist .= ",multipage,multipage_breadcrumb,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start,showthread_inlinemoderation_softdelete,showthread_poll_editpoll";

$templatelist .= ",postbit_editedby,showthread_similarthreads,showthread_similarthreads_bit,postbit_iplogged_show,postbit_iplogged_hiden,postbit_profilefield,showthread_quickreply,showthread_add_poll,showthread_send_thread,showthread_inlinemoderation_restore";

$templatelist .= ",postbit_editedby,showthread_similarthreads,showthread_similarthreads_bit,postbit_iplogged_show,postbit_iplogged_hiden,postbit_profilefield,showthread_quickreply,showthread_printthread,showthread_add_poll,showthread_send_thread,showthread_inlinemoderation_restore";

$templatelist .= ",forumjump_advanced,forumjump_special,forumjump_bit,postbit_attachments,postbit_attachments_attachment,postbit_attachments_thumbnails,postbit_attachments_images_image,postbit_attachments_images,showthread_quickreply_options_stick,postbit_status";
$templatelist .= ",postbit_inlinecheck,showthread_inlinemoderation,postbit_attachments_thumbnails_thumbnail,postbit_ignored,postbit_multiquote,showthread_moderationoptions_custom_tool,showthread_moderationoptions_custom,showthread_inlinemoderation_custom_tool";
$templatelist .= ",showthread_usersbrowsing,showthread_usersbrowsing_user,showthread_poll_option,showthread_poll,showthread_quickreply_options_signature,showthread_threaded_bitactive,showthread_threaded_bit,postbit_attachments_attachment_unapproved";

$templatelist .= ",forumjump_advanced,forumjump_special,forumjump_bit,postbit_attachments,postbit_attachments_attachment,postbit_attachments_thumbnails,postbit_attachments_images_image,postbit_attachments_images,showthread_quickreply_options_stick,postbit_status";
$templatelist .= ",postbit_inlinecheck,showthread_inlinemoderation,postbit_attachments_thumbnails_thumbnail,postbit_ignored,postbit_multiquote,showthread_moderationoptions_custom_tool,showthread_moderationoptions_custom,showthread_inlinemoderation_custom_tool";
$templatelist .= ",showthread_usersbrowsing,showthread_usersbrowsing_user,showthread_poll_option,showthread_poll,showthread_quickreply_options_signature,showthread_threaded_bitactive,showthread_threaded_bit,postbit_attachments_attachment_unapproved";

Zeile 145Zeile 145
// Make sure we are looking at a real thread here.
if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] == 0 && !is_moderator($fid, "canviewunapprove")) || ($thread['visible'] == -1 && !is_moderator($fid, "canviewdeleted")))
{

// Make sure we are looking at a real thread here.
if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] == 0 && !is_moderator($fid, "canviewunapprove")) || ($thread['visible'] == -1 && !is_moderator($fid, "canviewdeleted")))
{

	error($lang->error_invalidthread);
}






	// Allow viewing own unapproved thread
if (!($mybb->user['uid'] && $mybb->settings['showownunapproved'] && $thread['visible'] == 0 && ($thread['uid'] == $mybb->user['uid'])))
{
error($lang->error_invalidthread);
}
}


// Does the user have permission to view this thread?
if($forumpermissions['canview'] != 1 || $forumpermissions['canviewthreads'] != 1)

// Does the user have permission to view this thread?
if($forumpermissions['canview'] != 1 || $forumpermissions['canviewthreads'] != 1)

{
error_no_permission();
}

{
error_no_permission();
}


if(isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] == 1 && $thread['uid'] != $mybb->user['uid'])


if(isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] == 1 && $thread['uid'] != $mybb->user['uid'])

{

{

	error_no_permission();

	error_no_permission();

}


}


$archive_url = build_archive_link("thread", $tid);

// Does the thread belong to a valid forum?

$archive_url = build_archive_link("thread", $tid);

// Does the thread belong to a valid forum?

Zeile 166Zeile 170
if(!$forum || $forum['type'] != "f")
{
error($lang->error_invalidforum);

if(!$forum || $forum['type'] != "f")
{
error($lang->error_invalidforum);

}

}


$threadnoteslink = '';
if(is_moderator($fid, "canmanagethreads") && !empty($thread['notes']))


$threadnoteslink = '';
if(is_moderator($fid, "canmanagethreads") && !empty($thread['notes']))

Zeile 210Zeile 214
	{
$cutoff = TIME_NOW-$mybb->settings['threadreadcut']*60*60*24;
if($thread['lastpost'] > $cutoff)

	{
$cutoff = TIME_NOW-$mybb->settings['threadreadcut']*60*60*24;
if($thread['lastpost'] > $cutoff)

		{

		{

			if($thread_read)
{
$lastread = $thread_read;

			if($thread_read)
{
$lastread = $thread_read;

Zeile 254Zeile 258
	$newpost = $db->fetch_array($query);

if($newpost['pid'] && $lastread)

	$newpost = $db->fetch_array($query);

if($newpost['pid'] && $lastread)

	{

	{

		$highlight = '';
if($mybb->get_input('highlight'))
{

		$highlight = '';
if($mybb->get_input('highlight'))
{

Zeile 321Zeile 325
	if(!$nextthread['tid'])
{
error($lang->error_nonextnewest);

	if(!$nextthread['tid'])
{
error($lang->error_nonextnewest);

	}
$options = array(

	}
$options = array(

		"limit_start" => 0,
"limit" => 1,
"order_by" => "dateline",

		"limit_start" => 0,
"limit" => 1,
"order_by" => "dateline",

Zeile 677Zeile 681
		if($forumpermissions['canpostreplys'] != 0 && $mybb->user['suspendposting'] != 1 && ($thread['closed'] != 1 || is_moderator($fid, "canpostclosedthreads")) && ($thread['uid'] == $mybb->user['uid'] || $forumpermissions['canonlyreplyownthreads'] != 1))
{
eval("\$newreply = \"".$templates->get("showthread_newreply")."\";");

		if($forumpermissions['canpostreplys'] != 0 && $mybb->user['suspendposting'] != 1 && ($thread['closed'] != 1 || is_moderator($fid, "canpostclosedthreads")) && ($thread['uid'] == $mybb->user['uid'] || $forumpermissions['canonlyreplyownthreads'] != 1))
{
eval("\$newreply = \"".$templates->get("showthread_newreply")."\";");

		}

		}

		elseif($thread['closed'] == 1)
{
eval("\$newreply = \"".$templates->get("showthread_newreply_closed")."\";");

		elseif($thread['closed'] == 1)
{
eval("\$newreply = \"".$templates->get("showthread_newreply_closed")."\";");

Zeile 692Zeile 696
		if($thread['closed'] == 1)
{
$closelinkch = ' checked="checked"';

		if($thread['closed'] == 1)
{
$closelinkch = ' checked="checked"';

		}

		}


if($thread['sticky'])
{
$stickch = ' checked="checked"';


if($thread['sticky'])
{
$stickch = ' checked="checked"';

		}


		}


		if(is_moderator($thread['fid'], "canopenclosethreads"))
{
eval("\$closeoption .= \"".$templates->get("showthread_quickreply_options_close")."\";");

		if(is_moderator($thread['fid'], "canopenclosethreads"))
{
eval("\$closeoption .= \"".$templates->get("showthread_quickreply_options_close")."\";");

Zeile 742Zeile 746
			$thread['width'] = 0;
$thread['averagerating'] = 0;
$thread['numratings'] = 0;

			$thread['width'] = 0;
$thread['averagerating'] = 0;
$thread['numratings'] = 0;

		}

		}

		else
{
$thread['averagerating'] = (float)round($thread['totalratings']/$thread['numratings'], 2);

		else
{
$thread['averagerating'] = (float)round($thread['totalratings']/$thread['numratings'], 2);

Zeile 808Zeile 812

// Fetch profile fields to display on postbit
$pfcache = $cache->read('profilefields');


// Fetch profile fields to display on postbit
$pfcache = $cache->read('profilefields');





	if(is_array($pfcache))

	if(is_array($pfcache))

	{

	{

		foreach($pfcache as $profilefield)
{
if($profilefield['postbit'] != 1)

		foreach($pfcache as $profilefield)
{
if($profilefield['postbit'] != 1)

Zeile 824Zeile 828

// Which thread mode is our user using by default?
if(!empty($mybb->user['threadmode']))


// Which thread mode is our user using by default?
if(!empty($mybb->user['threadmode']))

	{

	{

		$defaultmode = $mybb->user['threadmode'];
}
else if($mybb->settings['threadusenetstyle'] == 1)
{
$defaultmode = 'threaded';

		$defaultmode = $mybb->user['threadmode'];
}
else if($mybb->settings['threadusenetstyle'] == 1)
{
$defaultmode = 'threaded';

	}

	}

	else
{
$defaultmode = 'linear';

	else
{
$defaultmode = 'linear';

Zeile 838Zeile 842

// If mode is unset, set the default mode
if(!isset($mybb->input['mode']))


// If mode is unset, set the default mode
if(!isset($mybb->input['mode']))

	{

	{

		$mybb->input['mode'] = $defaultmode;
}

		$mybb->input['mode'] = $defaultmode;
}





	// Threaded or linear display?
$threadexbox = '';
if($mybb->get_input('mode') == 'threaded')

	// Threaded or linear display?
$threadexbox = '';
if($mybb->get_input('mode') == 'threaded')

Zeile 852Zeile 856
		if($mybb->input['pid'])
{
$where = "AND p.pid='".$mybb->input['pid']."'";

		if($mybb->input['pid'])
{
$where = "AND p.pid='".$mybb->input['pid']."'";

		}
else
{

		}
else
{

			$where = " ORDER BY dateline LIMIT 0, 1";
}
$query = $db->query("

			$where = " ORDER BY dateline LIMIT 0, 1";
}
$query = $db->query("

Zeile 866Zeile 870
			WHERE p.tid='$tid' $visible $where
");
$showpost = $db->fetch_array($query);

			WHERE p.tid='$tid' $visible $where
");
$showpost = $db->fetch_array($query);





		// Choose what pid to display.
if(!$mybb->input['pid'])

		// Choose what pid to display.
if(!$mybb->input['pid'])

		{

		{

			$mybb->input['pid'] = $showpost['pid'];
}


			$mybb->input['pid'] = $showpost['pid'];
}


Zeile 877Zeile 881
		if(!$showpost['pid'])
{
error($lang->error_invalidpost);

		if(!$showpost['pid'])
{
error($lang->error_invalidpost);

		}

		}


$attachcache = array();
if($mybb->settings['enableattachments'] == 1 && $thread['attachmentcount'] > 0 || is_moderator($fid, 'caneditposts'))


$attachcache = array();
if($mybb->settings['enableattachments'] == 1 && $thread['attachmentcount'] > 0 || is_moderator($fid, 'caneditposts'))

Zeile 890Zeile 894
			}
}


			}
}


		// Build the threaded post display tree.
$query = $db->query("

        // Build the threaded post display tree.
$query = $db->query("

            SELECT p.username, p.uid, p.pid, p.replyto, p.subject, p.dateline
FROM ".TABLE_PREFIX."posts p
WHERE p.tid='$tid'
$visible
ORDER BY p.dateline
");

            SELECT p.username, p.uid, p.pid, p.replyto, p.subject, p.dateline
FROM ".TABLE_PREFIX."posts p
WHERE p.tid='$tid'
$visible
ORDER BY p.dateline
");

 
        if(!is_array($postsdone))
{
$postsdone = array();
}

        while($post = $db->fetch_array($query))
{
if(!$postsdone[$post['pid']])

        while($post = $db->fetch_array($query))
{
if(!$postsdone[$post['pid']])

Zeile 938Zeile 946
			$post = get_post($mybb->input['pid']);
if(empty($post) || ($post['visible'] == 0 && !is_moderator($post['fid'], 'canviewunapprove')) || ($post['visible'] == -1 && !is_moderator($post['fid'], 'canviewdeleted') && $forumpermissions['canviewdeletionnotice'] == 0))
{

			$post = get_post($mybb->input['pid']);
if(empty($post) || ($post['visible'] == 0 && !is_moderator($post['fid'], 'canviewunapprove')) || ($post['visible'] == -1 && !is_moderator($post['fid'], 'canviewdeleted') && $forumpermissions['canviewdeletionnotice'] == 0))
{

				$footer .= '<script type="text/javascript">$(document).ready(function() { $.jGrowl(\''.$lang->error_invalidpost.'\', {theme: \'jgrowl_error\'}); });</script>';

				$footer .= '<script type="text/javascript">$(function() { $.jGrowl(\''.$lang->error_invalidpost.'\', {theme: \'jgrowl_error\'}); });</script>';

			}
else
{

			}
else
{

Zeile 990Zeile 998
		}

if($page > $pages || $page <= 0)

		}

if($page > $pages || $page <= 0)

		{

		{

			$page = 1;
}


			$page = 1;
}


Zeile 1034Zeile 1042
				if(is_array($mybb->input['highlight']))
{
foreach($mybb->input['highlight'] as $highlight_word)

				if(is_array($mybb->input['highlight']))
{
foreach($mybb->input['highlight'] as $highlight_word)

					{

					{

						$highlight .= "&amp;highlight[]=".urlencode($highlight_word);
}

						$highlight .= "&amp;highlight[]=".urlencode($highlight_word);
}

				}

				}

				else
{
$highlight = "&amp;highlight=".urlencode($mybb->get_input('highlight'));
}
}

				else
{
$highlight = "&amp;highlight=".urlencode($mybb->get_input('highlight'));
}
}





            if($defaultmode != "linear")
{
$threadmode = "&amp;mode=linear";
}
}

            if($defaultmode != "linear")
{
$threadmode = "&amp;mode=linear";
}
}





        $multipage = multipage($postcount, $perpage, $page, str_replace("{tid}", $tid, THREAD_URL_PAGED.$highlight.$threadmode));

        $multipage = multipage($postcount, $perpage, $page, str_replace("{tid}", $tid, THREAD_URL_PAGED.$highlight.$threadmode));

 
		
// Allow originator to see own unapproved posts
if($mybb->user['uid'] && $mybb->settings['showownunapproved'])
{
$visible .= " OR (p.tid='$tid' AND p.visible='0' AND p.uid=".$mybb->user['uid'].")";
}


// Lets get the pids of the posts on this page.
$pids = "";
$comma = '';
$query = $db->simple_select("posts p", "p.pid", "p.tid='$tid' $visible", array('order_by' => 'p.dateline', 'limit_start' => $start, 'limit' => $perpage));
while($getid = $db->fetch_array($query))


// Lets get the pids of the posts on this page.
$pids = "";
$comma = '';
$query = $db->simple_select("posts p", "p.pid", "p.tid='$tid' $visible", array('order_by' => 'p.dateline', 'limit_start' => $start, 'limit' => $perpage));
while($getid = $db->fetch_array($query))

		{

		{

			// Set the ID of the first post on page to $pid if it doesn't hold any value
// to allow this value to be used for Thread Mode/Linear Mode links
// and ensure the user lands on the correct page after changing view mode

			// Set the ID of the first post on page to $pid if it doesn't hold any value
// to allow this value to be used for Thread Mode/Linear Mode links
// and ensure the user lands on the correct page after changing view mode

Zeile 1079Zeile 1093
				// Now lets fetch all of the attachments for these posts.
$query = $db->simple_select("attachments", "*", $pids);
while($attachment = $db->fetch_array($query))

				// Now lets fetch all of the attachments for these posts.
$query = $db->simple_select("attachments", "*", $pids);
while($attachment = $db->fetch_array($query))

				{

				{

					$attachcache[$attachment['pid']][$attachment['aid']] = $attachment;
}
}

					$attachcache[$attachment['pid']][$attachment['aid']] = $attachment;
}
}

Zeile 1144Zeile 1158
					ORDER BY t.lastpost DESC
LIMIT 0, {$mybb->settings['similarlimit']}
");

					ORDER BY t.lastpost DESC
LIMIT 0, {$mybb->settings['similarlimit']}
");

		}


		}


		$count = 0;
$similarthreadbits = '';
$icon_cache = $cache->read("posticons");

		$count = 0;
$similarthreadbits = '';
$icon_cache = $cache->read("posticons");

Zeile 1189Zeile 1203
			$similar_thread['subject'] = htmlspecialchars_uni($similar_thread['subject']);
$similar_thread['threadlink'] = get_thread_link($similar_thread['tid']);
$similar_thread['lastpostlink'] = get_thread_link($similar_thread['tid'], 0, "lastpost");

			$similar_thread['subject'] = htmlspecialchars_uni($similar_thread['subject']);
$similar_thread['threadlink'] = get_thread_link($similar_thread['tid']);
$similar_thread['lastpostlink'] = get_thread_link($similar_thread['tid'], 0, "lastpost");





			$lastpostdate = my_date('relative', $similar_thread['lastpost']);
$lastposter = $similar_thread['lastposter'];
$lastposteruid = $similar_thread['lastposteruid'];

// Don't link to guest's profiles (they have no profile).
if($lastposteruid == 0)

			$lastpostdate = my_date('relative', $similar_thread['lastpost']);
$lastposter = $similar_thread['lastposter'];
$lastposteruid = $similar_thread['lastposteruid'];

// Don't link to guest's profiles (they have no profile).
if($lastposteruid == 0)

			{

			{

				$lastposterlink = $lastposter;
}
else

				$lastposterlink = $lastposter;
}
else

Zeile 1210Zeile 1224
		if($count)
{
eval("\$similarthreads = \"".$templates->get("showthread_similarthreads")."\";");

		if($count)
{
eval("\$similarthreads = \"".$templates->get("showthread_similarthreads")."\";");

		}
}

		}
}


// Decide whether or not to show quick reply.
$quickreply = '';


// Decide whether or not to show quick reply.
$quickreply = '';

Zeile 1230Zeile 1244
			if($post_captcha->html)
{
$captcha = $post_captcha->html;

			if($post_captcha->html)
{
$captcha = $post_captcha->html;

			}
}

			}
}


$postoptionschecked = array('signature' => '', 'emailnotify' => '');
if($mybb->user['signature'])
{
$postoptionschecked['signature'] = 'checked="checked"';


$postoptionschecked = array('signature' => '', 'emailnotify' => '');
if($mybb->user['signature'])
{
$postoptionschecked['signature'] = 'checked="checked"';

		}

		}


// Hide signature option if no permission
$option_signature = '';
if($mybb->usergroup['canusesig'] && !$mybb->user['suspendsignature'])


// Hide signature option if no permission
$option_signature = '';
if($mybb->usergroup['canusesig'] && !$mybb->user['suspendsignature'])

		{

		{

			eval("\$option_signature = \"".$templates->get('showthread_quickreply_options_signature')."\";");

			eval("\$option_signature = \"".$templates->get('showthread_quickreply_options_signature')."\";");

		}


		}


		if(isset($mybb->user['emailnotify']) && $mybb->user['emailnotify'] == 1)
{
$postoptionschecked['emailnotify'] = 'checked="checked"';

		if(isset($mybb->user['emailnotify']) && $mybb->user['emailnotify'] == 1)
{
$postoptionschecked['emailnotify'] = 'checked="checked"';

Zeile 1253Zeile 1267

$trow = alt_trow();
if($thread['closed'] == 1)


$trow = alt_trow();
if($thread['closed'] == 1)

		{

		{

			$trow = 'trow_shaded';
}


			$trow = 'trow_shaded';
}


Zeile 1320Zeile 1334
					foreach($gids as $gid)
{
$gid = (int)$gid;

					foreach($gids as $gid)
{
$gid = (int)$gid;

						$gidswhere .= " OR CONCAT(',',groups,',') LIKE '%,{$gid},%'";

						$gidswhere .= " OR CONCAT(',',`groups`,',') LIKE '%,{$gid},%'";

					}

					}

					$query = $db->simple_select("modtools", 'tid, name, type', "(CONCAT(',',forums,',') LIKE '%,$fid,%' OR CONCAT(',',forums,',') LIKE '%,-1,%' OR forums='') AND (groups='' OR CONCAT(',',groups,',') LIKE '%,-1,%'{$gidswhere})");

					$query = $db->simple_select("modtools", 'tid, name, type', "(CONCAT(',',forums,',') LIKE '%,$fid,%' OR CONCAT(',',forums,',') LIKE '%,-1,%' OR forums='') AND (`groups`='' OR CONCAT(',',`groups`,',') LIKE '%,-1,%'{$gidswhere})");

					break;
}


					break;
}


Zeile 1388Zeile 1402
		if(!empty($customthreadtools))
{
eval("\$customthreadtools = \"".$templates->get("showthread_moderationoptions_custom")."\";");

		if(!empty($customthreadtools))
{
eval("\$customthreadtools = \"".$templates->get("showthread_moderationoptions_custom")."\";");

		}

$openclosethread = $stickunstickthread = $deletethread = $threadnotes = $managethread = $adminpolloptions = $approveunapprovethread = $softdeletethread = '';


		}

$openclosethread = $stickunstickthread = $deletethread = $threadnotes = $managethread = $adminpolloptions = $approveunapprovethread = $softdeletethread = '';


		if(is_moderator($forum['fid'], "canopenclosethreads"))
{
eval("\$openclosethread = \"".$templates->get("showthread_moderationoptions_openclose")."\";");

		if(is_moderator($forum['fid'], "canopenclosethreads"))
{
eval("\$openclosethread = \"".$templates->get("showthread_moderationoptions_openclose")."\";");

Zeile 1400Zeile 1414
		if(is_moderator($forum['fid'], "canstickunstickthreads"))
{
eval("\$stickunstickthread = \"".$templates->get("showthread_moderationoptions_stickunstick")."\";");

		if(is_moderator($forum['fid'], "canstickunstickthreads"))
{
eval("\$stickunstickthread = \"".$templates->get("showthread_moderationoptions_stickunstick")."\";");

		}

		}


if(is_moderator($forum['fid'], "candeletethreads"))


if(is_moderator($forum['fid'], "candeletethreads"))

		{

		{

			eval("\$deletethread = \"".$templates->get("showthread_moderationoptions_delete")."\";");

			eval("\$deletethread = \"".$templates->get("showthread_moderationoptions_delete")."\";");

		}


		}


		if(is_moderator($forum['fid'], "canmanagethreads"))
{
eval("\$threadnotes = \"".$templates->get("showthread_moderationoptions_threadnotes")."\";");

		if(is_moderator($forum['fid'], "canmanagethreads"))
{
eval("\$threadnotes = \"".$templates->get("showthread_moderationoptions_threadnotes")."\";");

Zeile 1414Zeile 1428
		}

if($pollbox && is_moderator($forum['fid'], "canmanagepolls"))

		}

if($pollbox && is_moderator($forum['fid'], "canmanagepolls"))

		{

		{

			eval("\$adminpolloptions = \"".$templates->get("showthread_moderationoptions_deletepoll")."\";");
}


			eval("\$adminpolloptions = \"".$templates->get("showthread_moderationoptions_deletepoll")."\";");
}


Zeile 1450Zeile 1464
			eval("\$moderationoptions = \"".$templates->get("showthread_moderationoptions")."\";");
}
}

			eval("\$moderationoptions = \"".$templates->get("showthread_moderationoptions")."\";");
}
}

 

eval("\$printthread = \"".$templates->get("showthread_printthread")."\";");


// Display 'send thread' link if permissions allow
$sendthread = '';


// Display 'send thread' link if permissions allow
$sendthread = '';

Zeile 1569Zeile 1585
		}

eval("\$usersbrowsing = \"".$templates->get("showthread_usersbrowsing")."\";");

		}

eval("\$usersbrowsing = \"".$templates->get("showthread_usersbrowsing")."\";");

 
	}

if($thread['visible'] == -1 )
{
$thread_deleted = 1;

	}

$plugins->run_hooks("showthread_end");

	}

$plugins->run_hooks("showthread_end");