Vergleich forumdisplay.php - 1.8.25 - 1.8.32

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 11Zeile 11
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'forumdisplay.php');


define("IN_MYBB", 1);
define('THIS_SCRIPT', 'forumdisplay.php');


$templatelist = "forumdisplay,forumdisplay_thread,forumbit_depth1_cat,forumbit_depth2_cat,forumbit_depth2_forum,forumdisplay_subforums,forumdisplay_threadlist,forumdisplay_moderatedby,forumdisplay_searchforum,forumdisplay_thread_rating,forumdisplay_threadlist_rating";

$templatelist = "forumdisplay,forumdisplay_thread,forumbit_depth1_cat,forumbit_depth2_cat,forumbit_depth2_forum,forumdisplay_subforums,forumdisplay_threadlist,forumdisplay_moderatedby,forumdisplay_searchforum,forumdisplay_forumsort,forumdisplay_thread_rating,forumdisplay_threadlist_rating";

$templatelist .= ",forumbit_depth1_forum_lastpost,forumdisplay_thread_multipage_page,forumdisplay_thread_multipage,forumdisplay_thread_multipage_more,forumdisplay_thread_gotounread,forumbit_depth2_forum_lastpost,forumdisplay_rules_link,forumdisplay_orderarrow,forumdisplay_newthread";
$templatelist .= ",multipage,multipage_breadcrumb,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start,forumdisplay_thread_unapproved_posts,forumdisplay_nothreads";
$templatelist .= ",forumjump_advanced,forumjump_special,forumjump_bit,forumdisplay_password_wrongpass,forumdisplay_password,forumdisplay_inlinemoderation_custom_tool,forumbit_subforums,forumbit_moderators,forumbit_depth2_forum_lastpost_never,forumbit_depth2_forum_lastpost_hidden";

$templatelist .= ",forumbit_depth1_forum_lastpost,forumdisplay_thread_multipage_page,forumdisplay_thread_multipage,forumdisplay_thread_multipage_more,forumdisplay_thread_gotounread,forumbit_depth2_forum_lastpost,forumdisplay_rules_link,forumdisplay_orderarrow,forumdisplay_newthread";
$templatelist .= ",multipage,multipage_breadcrumb,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start,forumdisplay_thread_unapproved_posts,forumdisplay_nothreads";
$templatelist .= ",forumjump_advanced,forumjump_special,forumjump_bit,forumdisplay_password_wrongpass,forumdisplay_password,forumdisplay_inlinemoderation_custom_tool,forumbit_subforums,forumbit_moderators,forumbit_depth2_forum_lastpost_never,forumbit_depth2_forum_lastpost_hidden";

Zeile 152Zeile 152

$subforums = '';
$child_forums = build_forumbits($fid, 2);


$subforums = '';
$child_forums = build_forumbits($fid, 2);

$forums = $child_forums['forum_list'];

 




if($forums)

if(!empty($child_forums) && !empty($child_forums['forum_list']))

{

{

 
	$forums = $child_forums['forum_list'];

	$lang->sub_forums_in = $lang->sprintf($lang->sub_forums_in, $foruminfo['name']);
eval("\$subforums = \"".$templates->get("forumdisplay_subforums")."\";");
}

	$lang->sub_forums_in = $lang->sprintf($lang->sub_forums_in, $foruminfo['name']);
eval("\$subforums = \"".$templates->get("forumdisplay_subforums")."\";");
}

Zeile 177Zeile 177
	$forumjump = build_forum_jump("", $fid, 1);
}


	$forumjump = build_forum_jump("", $fid, 1);
}


 
$newthread = '';

if($foruminfo['type'] == "f" && $foruminfo['open'] != 0 && $fpermissions['canpostthreads'] != 0 && $mybb->user['suspendposting'] == 0)
{
eval("\$newthread = \"".$templates->get("forumdisplay_newthread")."\";");
}


if($foruminfo['type'] == "f" && $foruminfo['open'] != 0 && $fpermissions['canpostthreads'] != 0 && $mybb->user['suspendposting'] == 0)
{
eval("\$newthread = \"".$templates->get("forumdisplay_newthread")."\";");
}


 
$searchforum = '';

if($fpermissions['cansearch'] != 0 && $foruminfo['type'] == "f")
{
eval("\$searchforum = \"".$templates->get("forumdisplay_searchforum")."\";");

if($fpermissions['cansearch'] != 0 && $foruminfo['type'] == "f")
{
eval("\$searchforum = \"".$templates->get("forumdisplay_searchforum")."\";");

Zeile 213Zeile 215

$moderators = '';
$parentlistexploded = explode(",", $parentlist);


$moderators = '';
$parentlistexploded = explode(",", $parentlist);

 
$comma = '';


foreach($parentlistexploded as $mfid)
{
// This forum has moderators


foreach($parentlistexploded as $mfid)
{
// This forum has moderators

	if(is_array($moderatorcache[$mfid]))

	if(isset($moderatorcache[$mfid]) && is_array($moderatorcache[$mfid]))

	{
// Fetch each moderator from the cache and format it, appending it to the list
foreach($moderatorcache[$mfid] as $modtype)

	{
// Fetch each moderator from the cache and format it, appending it to the list
foreach($moderatorcache[$mfid] as $modtype)

Zeile 249Zeile 252
					eval("\$moderators .= \"".$templates->get("forumbit_moderators_user", 1, 0)."\";");
$done_moderators['users'][] = $moderator['id'];
}

					eval("\$moderators .= \"".$templates->get("forumbit_moderators_user", 1, 0)."\";");
$done_moderators['users'][] = $moderator['id'];
}

				$comma = $lang->comma;
}
}
}


				$comma = $lang->comma;
}
}
}


	if(!empty($forum_stats[$mfid]['announcements']))
{
$has_announcements = true;
}

	if(!empty($forum_stats[$mfid]['announcements']))
{
$has_announcements = true;
}

}

}

$comma = '';

// If we have a moderators list, load the template
if($moderators)

$comma = '';

// If we have a moderators list, load the template
if($moderators)

{

{

	eval("\$moderatedby = \"".$templates->get("forumdisplay_moderatedby")."\";");
}
else

	eval("\$moderatedby = \"".$templates->get("forumdisplay_moderatedby")."\";");
}
else

Zeile 273Zeile 276

// Get the users browsing this forum.
if($mybb->settings['browsingthisforum'] != 0)


// Get the users browsing this forum.
if($mybb->settings['browsingthisforum'] != 0)

{

{

	$timecut = TIME_NOW - $mybb->settings['wolcutoff'];

$comma = '';

	$timecut = TIME_NOW - $mybb->settings['wolcutoff'];

$comma = '';

Zeile 302Zeile 305
		{
$doneusers[$user['uid']] = $user['time'];
++$membercount;

		{
$doneusers[$user['uid']] = $user['time'];
++$membercount;

			if($user['invisible'] == 1)

			if($user['invisible'] == 1 && $mybb->usergroup['canbeinvisible'] == 1)

			{
$invisiblemark = "*";
++$inviscount;

			{
$invisiblemark = "*";
++$inviscount;

Zeile 354Zeile 357

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


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





// Do we have any forum rules to show for this forum?
$forumrules = '';
if($foruminfo['rulestype'] != 0 && $foruminfo['rules'])

// Do we have any forum rules to show for this forum?
$forumrules = '';
if($foruminfo['rulestype'] != 0 && $foruminfo['rules'])

Zeile 373Zeile 376

$foruminfo['rules'] = $parser->parse_message($foruminfo['rules'], $rules_parser);
if($foruminfo['rulestype'] == 1 || $foruminfo['rulestype'] == 3)


$foruminfo['rules'] = $parser->parse_message($foruminfo['rules'], $rules_parser);
if($foruminfo['rulestype'] == 1 || $foruminfo['rulestype'] == 3)

	{

	{

		eval("\$rules = \"".$templates->get("forumdisplay_rules")."\";");
}
else if($foruminfo['rulestype'] == 2)

		eval("\$rules = \"".$templates->get("forumdisplay_rules")."\";");
}
else if($foruminfo['rulestype'] == 2)

Zeile 430Zeile 433
if(is_moderator($fid, "caneditposts") || $fpermissions['caneditposts'] == 1)
{
$can_edit_titles = 1;

if(is_moderator($fid, "caneditposts") || $fpermissions['caneditposts'] == 1)
{
$can_edit_titles = 1;

}
else

}
else

{
$can_edit_titles = 0;
}

{
$can_edit_titles = 0;
}

Zeile 469Zeile 472
	$checkdate = TIME_NOW - ($datecut * 86400);
$datecutsql = "AND (lastpost >= '$checkdate' OR sticky = '1')";
$datecutsql2 = "AND (t.lastpost >= '$checkdate' OR t.sticky = '1')";

	$checkdate = TIME_NOW - ($datecut * 86400);
$datecutsql = "AND (lastpost >= '$checkdate' OR sticky = '1')";
$datecutsql2 = "AND (t.lastpost >= '$checkdate' OR t.sticky = '1')";

}
else
{

}
else
{

	$datecutsql = '';
$datecutsql2 = '';
}

	$datecutsql = '';
$datecutsql2 = '';
}

Zeile 530Zeile 533
if(!isset($mybb->input['sortby']) && !empty($foruminfo['defaultsortby']))
{
$mybb->input['sortby'] = $foruminfo['defaultsortby'];

if(!isset($mybb->input['sortby']) && !empty($foruminfo['defaultsortby']))
{
$mybb->input['sortby'] = $foruminfo['defaultsortby'];

}
else

}
else

{
$mybb->input['sortby'] = $mybb->get_input('sortby');
}

{
$mybb->input['sortby'] = $mybb->get_input('sortby');
}

Zeile 568Zeile 571
		$sortfield = "lastpost";
$mybb->input['sortby'] = "lastpost";
break;

		$sortfield = "lastpost";
$mybb->input['sortby'] = "lastpost";
break;

}


}


$sortsel['rating'] = ''; // Needs to be initialized in order to speed-up things. Fixes #2031
$sortsel[$mybb->input['sortby']] = ' selected="selected"';


$sortsel['rating'] = ''; // Needs to be initialized in order to speed-up things. Fixes #2031
$sortsel[$mybb->input['sortby']] = ' selected="selected"';


Zeile 577Zeile 580
if($mybb->seo_support == true)
{
$string = "?";

if($mybb->seo_support == true)
{
$string = "?";

}
else

}
else

{
$string = "&";
}

{
$string = "&";
}

Zeile 588Zeile 591
if($mybb->input['page'] > 1)
{
$sorturl = get_forum_link($fid, $mybb->input['page']).$string."datecut=$datecut&prefix=$tprefix";

if($mybb->input['page'] > 1)
{
$sorturl = get_forum_link($fid, $mybb->input['page']).$string."datecut=$datecut&prefix=$tprefix";

}

}

else
{
$sorturl = get_forum_link($fid).$string."datecut=$datecut&prefix=$tprefix";

else
{
$sorturl = get_forum_link($fid).$string."datecut=$datecut&prefix=$tprefix";

Zeile 607Zeile 610
if($fpermissions['canviewthreads'] != 0)
{
// How many threads are there?

if($fpermissions['canviewthreads'] != 0)
{
// How many threads are there?

	$query = $db->simple_select("threads t", "COUNT(tid) AS threads", "fid = '$fid' $tuseronly $tvisibleonly $datecutsql2 $prefixsql2");
$threadcount = $db->fetch_field($query, "threads");
































	if ($useronly === "" && $datecutsql === "" && $prefixsql === "")
{
$threadcount = 0;

$query = $db->simple_select("forums", "threads, unapprovedthreads, deletedthreads", "fid=".(int)$fid);
$forum_threads = $db->fetch_array($query);

if(in_array(1, $visible_states))
{
$threadcount += $forum_threads['threads'];
}

if(in_array(-1, $visible_states))
{
$threadcount += $forum_threads['deletedthreads'];
}

if(in_array(0, $visible_states))
{
$threadcount += $forum_threads['unapprovedthreads'];
}
elseif($mybb->user['uid'] && $mybb->settings['showownunapproved'])
{
$query = $db->simple_select("threads t", "COUNT(tid) AS threads", "fid = '$fid' AND t.visible=0 AND t.uid=".(int)$mybb->user['uid']);
$threadcount += $db->fetch_field($query, "threads");
}
}
else
{
$query = $db->simple_select("threads t", "COUNT(tid) AS threads", "fid = '$fid' $tuseronly $tvisibleonly $datecutsql2 $prefixsql2");

$threadcount = $db->fetch_field($query, "threads");
}

}

// How many pages are there?

}

// How many pages are there?

Zeile 694Zeile 728
}
$multipage = multipage($threadcount, $perpage, $page, $page_url);


}
$multipage = multipage($threadcount, $perpage, $page, $page_url);


 
$ratingcol = $ratingsort = '';

if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0 && $fpermissions['canviewthreads'] != 0)
{
$lang->load("ratethread");

if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0 && $fpermissions['canviewthreads'] != 0)
{
$lang->load("ratethread");

Zeile 954Zeile 989

if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid'])
{


if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid'])
{

 
	$forum_read = 0;

	$query = $db->simple_select("forumsread", "dateline", "fid='{$fid}' AND uid='{$mybb->user['uid']}'");

	$query = $db->simple_select("forumsread", "dateline", "fid='{$fid}' AND uid='{$mybb->user['uid']}'");

	$forum_read = $db->fetch_field($query, "dateline");




	if($db->num_rows($query) > 0)
{
$forum_read = $db->fetch_field($query, "dateline");
}


$read_cutoff = TIME_NOW-$mybb->settings['threadreadcut']*60*60*24;
if($forum_read == 0 || $forum_read < $read_cutoff)
{
$forum_read = $read_cutoff;


$read_cutoff = TIME_NOW-$mybb->settings['threadreadcut']*60*60*24;
if($forum_read == 0 || $forum_read < $read_cutoff)
{
$forum_read = $read_cutoff;

	}
}

	}
}

else
{
$forum_read = my_get_array_cookie("forumread", $fid);

else
{
$forum_read = my_get_array_cookie("forumread", $fid);

Zeile 996Zeile 1035
		if($thread['visible'] == 0)
{
$bgcolor = "trow_shaded";

		if($thread['visible'] == 0)
{
$bgcolor = "trow_shaded";

		}

		}

		elseif($thread['visible'] == -1 && is_moderator($fid, "canviewdeleted"))
{
$bgcolor = "trow_shaded trow_deleted";

		elseif($thread['visible'] == -1 && is_moderator($fid, "canviewdeleted"))
{
$bgcolor = "trow_shaded trow_deleted";

Zeile 1009Zeile 1048
		if($thread['sticky'] == 1)
{
$thread_type_class = " forumdisplay_sticky";

		if($thread['sticky'] == 1)
{
$thread_type_class = " forumdisplay_sticky";

		}

		}

		else
{
$thread_type_class = " forumdisplay_regular";
}

		else
{
$thread_type_class = " forumdisplay_regular";
}





		$folder = '';
$prefix = '';


		$folder = '';
$prefix = '';


Zeile 1028Zeile 1067
			else
{
$thread['username'] = $thread['profilelink'] = htmlspecialchars_uni($thread['threadusername']);

			else
{
$thread['username'] = $thread['profilelink'] = htmlspecialchars_uni($thread['threadusername']);

			}

			}

		}
else
{

		}
else
{

Zeile 1067Zeile 1106
		if($thread['poll'])
{
$prefix = $lang->poll_prefix;

		if($thread['poll'])
{
$prefix = $lang->poll_prefix;

		}


		}


		if($thread['sticky'] == "1" && !isset($donestickysep))
{
eval("\$threads .= \"".$templates->get("forumdisplay_sticky_sep")."\";");

		if($thread['sticky'] == "1" && !isset($donestickysep))
{
eval("\$threads .= \"".$templates->get("forumdisplay_sticky_sep")."\";");

Zeile 1076Zeile 1115
			$donestickysep = true;
}
else if($thread['sticky'] == 0 && !empty($shownormalsep))

			$donestickysep = true;
}
else if($thread['sticky'] == 0 && !empty($shownormalsep))

		{

		{

			eval("\$threads .= \"".$templates->get("forumdisplay_threads_sep")."\";");
$shownormalsep = false;
}

			eval("\$threads .= \"".$templates->get("forumdisplay_threads_sep")."\";");
$shownormalsep = false;
}

Zeile 1087Zeile 1126
			if($moved[0] == "moved" || ($fpermissions['canviewdeletionnotice'] != 0 && $thread['visible'] == -1))
{
eval("\$rating = \"".$templates->get("forumdisplay_thread_rating_moved")."\";");

			if($moved[0] == "moved" || ($fpermissions['canviewdeletionnotice'] != 0 && $thread['visible'] == -1))
{
eval("\$rating = \"".$templates->get("forumdisplay_thread_rating_moved")."\";");

			}

			}

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

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

Zeile 1127Zeile 1166
		}

if($thread['posts'] > $mybb->settings['postsperpage'])

		}

if($thread['posts'] > $mybb->settings['postsperpage'])

		{

		{

			$thread['pages'] = $thread['posts'] / $mybb->settings['postsperpage'];
$thread['pages'] = ceil($thread['pages']);


			$thread['pages'] = $thread['posts'] / $mybb->settings['postsperpage'];
$thread['pages'] = ceil($thread['pages']);


Zeile 1136Zeile 1175
				$pagesstop = $mybb->settings['maxmultipagelinks'] - 1;
$page_link = get_thread_link($thread['tid'], $thread['pages']);
eval("\$morelink = \"".$templates->get("forumdisplay_thread_multipage_more")."\";");

				$pagesstop = $mybb->settings['maxmultipagelinks'] - 1;
$page_link = get_thread_link($thread['tid'], $thread['pages']);
eval("\$morelink = \"".$templates->get("forumdisplay_thread_multipage_more")."\";");

			}

			}

			else

			else

			{

			{

				$pagesstop = $thread['pages'];

				$pagesstop = $thread['pages'];

			}


			}


			for($i = 1; $i <= $pagesstop; ++$i)
{
$page_link = get_thread_link($thread['tid'], $i);
eval("\$threadpages .= \"".$templates->get("forumdisplay_thread_multipage_page")."\";");

			for($i = 1; $i <= $pagesstop; ++$i)
{
$page_link = get_thread_link($thread['tid'], $i);
eval("\$threadpages .= \"".$templates->get("forumdisplay_thread_multipage_page")."\";");

			}


			}


			eval("\$thread['multipage'] = \"".$templates->get("forumdisplay_thread_multipage")."\";");
}
else

			eval("\$thread['multipage'] = \"".$templates->get("forumdisplay_thread_multipage")."\";");
}
else

Zeile 1167Zeile 1206
			else
{
$inlinecheck = '';

			else
{
$inlinecheck = '';

			}


			}


			$multitid = $thread['tid'];
eval("\$modbit = \"".$templates->get("forumdisplay_thread_modbit")."\";");
}

			$multitid = $thread['tid'];
eval("\$modbit = \"".$templates->get("forumdisplay_thread_modbit")."\";");
}

Zeile 1207Zeile 1246
			if(!empty($thread['lastread']))
{
$last_read = $thread['lastread'];

			if(!empty($thread['lastread']))
{
$last_read = $thread['lastread'];

			}
else

			}
else

			{
$last_read = $read_cutoff;
}

			{
$last_read = $read_cutoff;
}

Zeile 1265Zeile 1304
		if(($thread['uid'] == $mybb->user['uid'] && $thread['closed'] != 1 && $mybb->user['uid'] != 0 && $can_edit_titles == 1) || $ismod == true)
{
$inline_edit_class = "subject_editable";

		if(($thread['uid'] == $mybb->user['uid'] && $thread['closed'] != 1 && $mybb->user['uid'] != 0 && $can_edit_titles == 1) || $ismod == true)
{
$inline_edit_class = "subject_editable";

		}



		}



		$lastposteruid = $thread['lastposteruid'];
if(!$lastposteruid && !$thread['lastposter'])

		$lastposteruid = $thread['lastposteruid'];
if(!$lastposteruid && !$thread['lastposter'])

		{

		{

			$lastposter = htmlspecialchars_uni($lang->guest);

			$lastposter = htmlspecialchars_uni($lang->guest);

		}

		}

		else
{
$lastposter = htmlspecialchars_uni($thread['lastposter']);

		else
{
$lastposter = htmlspecialchars_uni($thread['lastposter']);

Zeile 1287Zeile 1326
		else
{
$lastposterlink = build_profile_link($lastposter, $lastposteruid);

		else
{
$lastposterlink = build_profile_link($lastposter, $lastposteruid);

		}

		}


$thread['replies'] = my_number_format($thread['replies']);
$thread['views'] = my_number_format($thread['views']);


$thread['replies'] = my_number_format($thread['replies']);
$thread['views'] = my_number_format($thread['views']);

Zeile 1325Zeile 1364
			}

eval("\$attachment_count = \"".$templates->get("forumdisplay_thread_attachment_count")."\";");

			}

eval("\$attachment_count = \"".$templates->get("forumdisplay_thread_attachment_count")."\";");

		}
else

		}
else

		{
$attachment_count = '';

		{
$attachment_count = '';

		}

$plugins->run_hooks("forumdisplay_thread_end");

		}

$plugins->run_hooks("forumdisplay_thread_end");


if($fpermissions['canviewdeletionnotice'] != 0 && $thread['visible'] == -1 && !is_moderator($fid, "canviewdeleted"))


if($fpermissions['canviewdeletionnotice'] != 0 && $thread['visible'] == -1 && !is_moderator($fid, "canviewdeleted"))

		{

		{

			eval("\$threads .= \"".$templates->get("forumdisplay_thread_deleted")."\";");

			eval("\$threads .= \"".$templates->get("forumdisplay_thread_deleted")."\";");

		}

		}

		else
{
$thread['start_datetime'] = my_date('relative', $thread['dateline']);

		else
{
$thread['start_datetime'] = my_date('relative', $thread['dateline']);

Zeile 1346Zeile 1385

$customthreadtools = $standardthreadtools = '';
if($ismod)


$customthreadtools = $standardthreadtools = '';
if($ismod)

	{

	{

		if(is_moderator($fid, "canusecustomtools") && $has_modtools == true)
{
$gids = explode(',', $mybb->user['additionalgroups']);

		if(is_moderator($fid, "canusecustomtools") && $has_modtools == true)
{
$gids = explode(',', $mybb->user['additionalgroups']);

Zeile 1385Zeile 1424
			{
eval("\$customthreadtools = \"".$templates->get("forumdisplay_inlinemoderation_custom")."\";");
}

			{
eval("\$customthreadtools = \"".$templates->get("forumdisplay_inlinemoderation_custom")."\";");
}

		}


		}


		$inlinemodopenclose = $inlinemodstickunstick = $inlinemodsoftdelete = $inlinemodrestore = $inlinemoddelete = $inlinemodmanage = $inlinemodapproveunapprove = '';

if(is_moderator($fid, "canopenclosethreads"))

		$inlinemodopenclose = $inlinemodstickunstick = $inlinemodsoftdelete = $inlinemodrestore = $inlinemoddelete = $inlinemodmanage = $inlinemodapproveunapprove = '';

if(is_moderator($fid, "canopenclosethreads"))

Zeile 1397Zeile 1436
		if(is_moderator($fid, "canstickunstickthreads"))
{
eval("\$inlinemodstickunstick = \"".$templates->get("forumdisplay_inlinemoderation_stickunstick")."\";");

		if(is_moderator($fid, "canstickunstickthreads"))
{
eval("\$inlinemodstickunstick = \"".$templates->get("forumdisplay_inlinemoderation_stickunstick")."\";");

		}


		}


		if(is_moderator($fid, "cansoftdeletethreads"))
{
eval("\$inlinemodsoftdelete = \"".$templates->get("forumdisplay_inlinemoderation_softdelete")."\";");
}

if(is_moderator($fid, "canrestorethreads"))

		if(is_moderator($fid, "cansoftdeletethreads"))
{
eval("\$inlinemodsoftdelete = \"".$templates->get("forumdisplay_inlinemoderation_softdelete")."\";");
}

if(is_moderator($fid, "canrestorethreads"))

		{

		{

			eval("\$inlinemodrestore = \"".$templates->get("forumdisplay_inlinemoderation_restore")."\";");

			eval("\$inlinemodrestore = \"".$templates->get("forumdisplay_inlinemoderation_restore")."\";");

		}


		}


		if(is_moderator($fid, "candeletethreads"))

		if(is_moderator($fid, "candeletethreads"))

		{

		{

			eval("\$inlinemoddelete = \"".$templates->get("forumdisplay_inlinemoderation_delete")."\";");

			eval("\$inlinemoddelete = \"".$templates->get("forumdisplay_inlinemoderation_delete")."\";");

		}


		}


		if(is_moderator($fid, "canmanagethreads"))

		if(is_moderator($fid, "canmanagethreads"))

		{

		{

			eval("\$inlinemodmanage = \"".$templates->get("forumdisplay_inlinemoderation_manage")."\";");

			eval("\$inlinemodmanage = \"".$templates->get("forumdisplay_inlinemoderation_manage")."\";");

		}


		}


		if(is_moderator($fid, "canapproveunapprovethreads"))
{
eval("\$inlinemodapproveunapprove = \"".$templates->get("forumdisplay_inlinemoderation_approveunapprove")."\";");
}

if(!empty($inlinemodopenclose) || !empty($inlinemodstickunstick) || !empty($inlinemodsoftdelete) || !empty($inlinemodrestore) || !empty($inlinemoddelete) || !empty($inlinemodmanage) || !empty($inlinemodapproveunapprove))

		if(is_moderator($fid, "canapproveunapprovethreads"))
{
eval("\$inlinemodapproveunapprove = \"".$templates->get("forumdisplay_inlinemoderation_approveunapprove")."\";");
}

if(!empty($inlinemodopenclose) || !empty($inlinemodstickunstick) || !empty($inlinemodsoftdelete) || !empty($inlinemodrestore) || !empty($inlinemoddelete) || !empty($inlinemodmanage) || !empty($inlinemodapproveunapprove))

		{

		{

			eval("\$standardthreadtools = \"".$templates->get("forumdisplay_inlinemoderation_standard")."\";");

			eval("\$standardthreadtools = \"".$templates->get("forumdisplay_inlinemoderation_standard")."\";");

		}

		}


// Only show inline mod menu if there's options to show
if(!empty($standardthreadtools) || !empty($customthreadtools))


// Only show inline mod menu if there's options to show
if(!empty($standardthreadtools) || !empty($customthreadtools))

Zeile 1435Zeile 1474
			eval("\$inlinemod = \"".$templates->get("forumdisplay_inlinemoderation")."\";");
}
}

			eval("\$inlinemod = \"".$templates->get("forumdisplay_inlinemoderation")."\";");
}
}

}


}


// If there are no unread threads in this forum and no unread child forums - mark it as read
require_once MYBB_ROOT."inc/functions_indicators.php";

// If there are no unread threads in this forum and no unread child forums - mark it as read
require_once MYBB_ROOT."inc/functions_indicators.php";





$unread_threads = fetch_unread_count($fid);
if($unread_threads !== false && $unread_threads == 0 && empty($unread_forums))
{
mark_forum_read($fid);

$unread_threads = fetch_unread_count($fid);
if($unread_threads !== false && $unread_threads == 0 && empty($unread_forums))
{
mark_forum_read($fid);

}


}


// Subscription status
$add_remove_subscription = 'add';
$add_remove_subscription_text = $lang->subscribe_forum;

// Subscription status
$add_remove_subscription = 'add';
$add_remove_subscription_text = $lang->subscribe_forum;

Zeile 1455Zeile 1494
{
$query = $db->simple_select("forumsubscriptions", "fid", "fid='".$fid."' AND uid='{$mybb->user['uid']}'", array('limit' => 1));


{
$query = $db->simple_select("forumsubscriptions", "fid", "fid='".$fid."' AND uid='{$mybb->user['uid']}'", array('limit' => 1));


	if($db->fetch_field($query, 'fid'))

	if($db->num_rows($query) > 0)

	{
$add_remove_subscription = 'remove';
$add_remove_subscription_text = $lang->unsubscribe_forum;

	{
$add_remove_subscription = 'remove';
$add_remove_subscription_text = $lang->unsubscribe_forum;

Zeile 1486Zeile 1525
	}

$prefixselect = build_forum_prefix_select($fid, $tprefix);

	}

$prefixselect = build_forum_prefix_select($fid, $tprefix);

 

// Populate Forumsort
$forumsort = '';
eval("\$forumsort = \"".$templates->get("forumdisplay_forumsort")."\";");


$plugins->run_hooks("forumdisplay_threadlist");



$plugins->run_hooks("forumdisplay_threadlist");