Vergleich forumdisplay.php - 1.8.24 - 1.8.38

  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 95Zeile 95
	$forumsread = array();
if(isset($mybb->cookies['mybb']['forumread']))
{

	$forumsread = array();
if(isset($mybb->cookies['mybb']['forumread']))
{

		$forumsread = my_unserialize($mybb->cookies['mybb']['forumread']);

		$forumsread = my_unserialize($mybb->cookies['mybb']['forumread'], false);

	}

if(is_array($forumsread) && empty($forumsread))

	}

if(is_array($forumsread) && empty($forumsread))

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 172Zeile 172
}

// Make forum jump...

}

// Make forum jump...

 
$forumjump = '';

if($mybb->settings['enableforumjump'] != 0)
{
$forumjump = build_forum_jump("", $fid, 1);
}


if($mybb->settings['enableforumjump'] != 0)
{
$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 216

$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 272Zeile 276
}

// Get the users browsing this forum.

}

// Get the users browsing this forum.

 
$usersbrowsing = '';

if($mybb->settings['browsingthisforum'] != 0)
{
$timecut = TIME_NOW - $mybb->settings['wolcutoff'];

if($mybb->settings['browsingthisforum'] != 0)
{
$timecut = TIME_NOW - $mybb->settings['wolcutoff'];

Zeile 607Zeile 612
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 629Zeile 665
	{
$start = 0;
$page = 1;

	{
$start = 0;
$page = 1;

	}

	}

}
else
{

}
else
{

Zeile 657Zeile 693
		$and = '';
}
else

		$and = '';
}
else

	{
$q = '';
$and = "&";

	{
$q = '';
$and = "&";

	}

if((!empty($foruminfo['defaultsortby']) && $sortby != $foruminfo['defaultsortby']) || (empty($foruminfo['defaultsortby']) && $sortby != "lastpost"))

	}

if((!empty($foruminfo['defaultsortby']) && $sortby != $foruminfo['defaultsortby']) || (empty($foruminfo['defaultsortby']) && $sortby != "lastpost"))

Zeile 686Zeile 722
	if($tprefix != 0)
{
$page_url .= "{$q}{$and}prefix={$tprefix}";

	if($tprefix != 0)
{
$page_url .= "{$q}{$and}prefix={$tprefix}";

	}
}
else
{

	}
}
else
{

	$page_url = str_replace("{fid}", $fid, FORUM_URL_PAGED);
}
$multipage = multipage($threadcount, $perpage, $page, $page_url);


	$page_url = str_replace("{fid}", $fid, FORUM_URL_PAGED);
}
$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 754Zeile 791
	$cookie = array();
if(isset($mybb->cookies['mybb']['announcements']))
{

	$cookie = array();
if(isset($mybb->cookies['mybb']['announcements']))
{

		$cookie = my_unserialize(stripslashes($mybb->cookies['mybb']['announcements']));

		$cookie = my_unserialize(stripslashes($mybb->cookies['mybb']['announcements']), false);

	}

$announcementlist = '';

	}

$announcementlist = '';

Zeile 954Zeile 991

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);

if(isset($mybb->cookies['mybb']['readallforums']) && !$forum_read)

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

if(isset($mybb->cookies['mybb']['readallforums']) && !$forum_read)

	{

	{

		$forum_read = $mybb->cookies['mybb']['lastvisit'];
}
}

		$forum_read = $mybb->cookies['mybb']['lastvisit'];
}
}

Zeile 980Zeile 1021
	if(!$mybb->settings['maxmultipagelinks'])
{
$mybb->settings['maxmultipagelinks'] = 5;

	if(!$mybb->settings['maxmultipagelinks'])
{
$mybb->settings['maxmultipagelinks'] = 5;

	}


	}


	if(!$mybb->settings['postsperpage'] || (int)$mybb->settings['postsperpage'] < 1)
{
$mybb->settings['postsperpage'] = 20;

	if(!$mybb->settings['postsperpage'] || (int)$mybb->settings['postsperpage'] < 1)
{
$mybb->settings['postsperpage'] = 20;

Zeile 994Zeile 1035
		$moved = explode("|", $thread['closed']);

if($thread['visible'] == 0)

		$moved = explode("|", $thread['closed']);

if($thread['visible'] == 0)

		{

		{

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

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

Zeile 1007Zeile 1048
		}

if($thread['sticky'] == 1)

		}

if($thread['sticky'] == 1)

		{

		{

			$thread_type_class = " forumdisplay_sticky";
}
else

			$thread_type_class = " forumdisplay_sticky";
}
else

Zeile 1050Zeile 1091
		$thread['subject'] = $parser->parse_badwords($thread['subject']);
$thread['subject'] = htmlspecialchars_uni($thread['subject']);


		$thread['subject'] = $parser->parse_badwords($thread['subject']);
$thread['subject'] = htmlspecialchars_uni($thread['subject']);


		if($thread['icon'] > 0 && $icon_cache[$thread['icon']])

		if($thread['icon'] > 0 && isset($icon_cache[$thread['icon']]))

		{
$icon = $icon_cache[$thread['icon']];
$icon['path'] = str_replace("{theme}", $theme['imgdir'], $icon['path']);

		{
$icon = $icon_cache[$thread['icon']];
$icon['path'] = str_replace("{theme}", $theme['imgdir'], $icon['path']);

Zeile 1067Zeile 1108
		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 1117
			$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 1128
			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
{

			else
{

				$thread['averagerating'] = (float)round($thread['averagerating'], 2);
$thread['width'] = (int)round($thread['averagerating'])*20;

 
				$thread['numratings'] = (int)$thread['numratings'];

				$thread['numratings'] = (int)$thread['numratings'];

 

if($thread['numratings'] == 0)
{
$thread['averagerating'] = 0;
$thread['width'] = 0;
}
else
{
$thread['averagerating'] = (float)round($thread['averagerating'], 2);
$thread['width'] = (int)round($thread['averagerating']) * 20;
}


$not_rated = '';
if(!isset($thread['rated']) || empty($thread['rated']))


$not_rated = '';
if(!isset($thread['rated']) || empty($thread['rated']))

Zeile 1149Zeile 1199
			}

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

			}

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

		}

		}

		else

		else

		{

		{

			$threadpages = '';
$morelink = '';
$thread['multipage'] = '';

			$threadpages = '';
$morelink = '';
$thread['multipage'] = '';

Zeile 1160Zeile 1210
		if($ismod)
{
if(isset($mybb->cookies[$inlinecookie]) && my_strpos($mybb->cookies[$inlinecookie], "|{$thread['tid']}|") !== false)

		if($ismod)
{
if(isset($mybb->cookies[$inlinecookie]) && my_strpos($mybb->cookies[$inlinecookie], "|{$thread['tid']}|") !== false)

			{

			{

				$inlinecheck = "checked=\"checked\"";
++$inlinecount;
}
else
{
$inlinecheck = '';

				$inlinecheck = "checked=\"checked\"";
++$inlinecount;
}
else
{
$inlinecheck = '';

			}


			}


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

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

Zeile 1207Zeile 1257
			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 1315
		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 1337
		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 1375
			}

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 1396

$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 1435
			{
eval("\$customthreadtools = \"".$templates->get("forumdisplay_inlinemoderation_custom")."\";");
}

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

		}

		}


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


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





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

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

		{

		{

			eval("\$inlinemodopenclose = \"".$templates->get("forumdisplay_inlinemoderation_openclose")."\";");

			eval("\$inlinemodopenclose = \"".$templates->get("forumdisplay_inlinemoderation_openclose")."\";");

		}


		}


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

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

		{

		{

			eval("\$inlinemodstickunstick = \"".$templates->get("forumdisplay_inlinemoderation_stickunstick")."\";");

			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 1444Zeile 1494
if($unread_threads !== false && $unread_threads == 0 && empty($unread_forums))
{
mark_forum_read($fid);

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

}

}


// Subscription status
$add_remove_subscription = 'add';


// Subscription status
$add_remove_subscription = 'add';

Zeile 1455Zeile 1505
{
$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 1463Zeile 1513

eval("\$addremovesubscription = \"".$templates->get("forumdisplay_threadlist_subscription")."\";");
}


eval("\$addremovesubscription = \"".$templates->get("forumdisplay_threadlist_subscription")."\";");
}


$inline_edit_js = $clearstoredpass = '';

 

// Is this a real forum with threads?
if($foruminfo['type'] != "c")


// Is this a real forum with threads?
if($foruminfo['type'] != "c")

Zeile 1486Zeile 1534
	}

$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");